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

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
User avatar
electrovalent
Posts: 41
Joined: 2011-10-21 18:45

PCMANFM-QT as root

#1 Post by electrovalent »

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

lindi
Debian Developer
Debian Developer
Posts: 452
Joined: 2022-07-12 14:10
Has thanked: 1 time
Been thanked: 88 times

Re: PCMANFM-QT as root

#2 Post by lindi »

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.

User avatar
@ttila
Posts: 153
Joined: 2017-12-13 16:57
Has thanked: 2 times
Been thanked: 15 times

Re: PCMANFM-QT as root

#3 Post by @ttila »

One of main Lxqt devs suggests me this trick under wayland:

Code: Select all

#!/bin/bash
xhost +SI:localuser:root
lxsu pcmanfm-qt
xhost -SI:localuser:root
exit
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 8)

User avatar
electrovalent
Posts: 41
Joined: 2011-10-21 18:45

Re: PCMANFM-QT as root

#4 Post by electrovalent »

@ttila wrote: 2024-02-21 16:35 One of main Lxqt devs suggests me this trick under wayland:

Code: Select all

#!/bin/bash
xhost +SI:localuser:root
lxsu pcmanfm-qt
xhost -SI:localuser:root
exit
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 8)
Thanks @ttila,

Unfortunately this doesn't work under X.

porschemad911
Posts: 18
Joined: 2006-03-20 00:19
Been thanked: 2 times

Re: PCMANFM-QT as root

#5 Post by porschemad911 »

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
Try the following:

Code: Select all

apt install lxqt-sudo dbus-x11
lxqt-sudo pcmanfm-qt
I didn't have dbus-x11 installed on my Debian Bookworm system, think that was the missing bit.

Post Reply