Hi,
When i try to run sudo pcmanfm-qt or lxqt-sudo pcmanfm-qt i get the following error.
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
I have debian 12 with LXQT.
Thanks in advance
Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
PCMANFM-QT as root
-
- Debian Developer
- Posts: 452
- Joined: 2022-07-12 14:10
- Has thanked: 1 time
- Been thanked: 88 times
Re: PCMANFM-QT as root
You should not run X or Wayland applications as root. They can create files in your home directory that are owned by root. This will cause problems when you have normal applications that try to modify the same files and now suddenly cannot.
Re: PCMANFM-QT as root
One of main Lxqt devs suggests me this trick under wayland:
i use lxsu but you can replace with lxsudo, it allows me to launch root session under wayland like pcmanfm-qt or synaptic. Save it, make executable and launch it
Code: Select all
#!/bin/bash
xhost +SI:localuser:root
lxsu pcmanfm-qt
xhost -SI:localuser:root
exit
- electrovalent
- Posts: 41
- Joined: 2011-10-21 18:45
Re: PCMANFM-QT as root
Thanks @ttila,@ttila wrote: ↑2024-02-21 16:35 One of main Lxqt devs suggests me this trick under wayland:
i use lxsu but you can replace with lxsudo, it allows me to launch root session under wayland like pcmanfm-qt or synaptic. Save it, make executable and launch itCode: Select all
#!/bin/bash xhost +SI:localuser:root lxsu pcmanfm-qt xhost -SI:localuser:root exit
Unfortunately this doesn't work under X.
-
- Posts: 18
- Joined: 2006-03-20 00:19
- Been thanked: 2 times
Re: PCMANFM-QT as root
Try the following:electrovalent wrote: ↑2024-02-21 16:16 Hi,
When i try to run sudo pcmanfm-qt or lxqt-sudo pcmanfm-qt i get the following error.
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
I have debian 12 with LXQT.
Thanks in advance
Code: Select all
apt install lxqt-sudo dbus-x11
lxqt-sudo pcmanfm-qt