kwrite plik_uzytkownika
su -c 'kwrite plik_konfiguracyjny_globalny_edytowalny_zz_poziomu_roota'
linux-n7at:/ # kwrite
kwrite(20036): Session bus not found
KCrash: Application 'kwrite' crashing...
sock_file=/root/.kde4/socket-linux-n7at/kdeinit4__0
Warning: connect() failed: : Połączenie odrzucone
KCrash cannot reach kdeinit, launching directly.
drkonqi(20037): Session bus not found
linux-n7at:/ # su -c "kwrite /mnt/menu.cfg"
kwrite(20041): Session bus not found
KCrash: Application 'kwrite' crashing...
sock_file=/root/.kde4/socket-linux-n7at/kdeinit4__0
Warning: connect() failed: : Połączenie odrzucone
KCrash cannot reach kdeinit, launching directly.
drkonqi(20042): Session bus not found
linux-n7at:/ #
Alt+F2:
Albo z konsoli:
$ xhost +local:root
$ su -
# export DISPLAY=:0
# kwrite
Pierwsza metoda działa jak złoto dzięki wielkie.
Druga niestety powoduje błąd krytyczny.
starach@linux-n7at:~> xhost +local:root
non-network local connections being added to access control list
starach@linux-n7at:~> su
Hasło:
linux-n7at:/home/starach # export DISPLAY=:0
linux-n7at:/home/starach # echo $DISPLAY
:0
linux-n7at:/home/starach # kwrite
kwrite(26384): Session bus not found
KCrash: Application 'kwrite' crashing...
sock_file=/root/.kde4/socket-linux-n7at/kdeinit4__0
[1]+ Stopped kwrite