Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: SOLVED - PCManFM desktop file "run as root"  (Read 3036 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

SOLVED - PCManFM desktop file "run as root"

Greetings!

New to Artix - running Artix (with runit) in a VirtualBox. Really like it so far, even though Arch-related distros are new to me.

I'm trying to create a desktop configuration (pcmanfm-root.desktop) file to allow me to  open pcmanfm as root. Am having no luck.

In a terminal, I can 'sudo pcmanfm', provide my password, and pcmanfm opens as root, so I know the functionality is there and works.

I can't figure out the correct  EXEC= line for the desktop file. I've tried various flavors of EXEC= lines beginning with "gksu" "gksudo" "sudo" and "pkexec pcmanfm", but no luck. When I used "pkexec pcmanfm", at least I get a message box showing my username and asking for my password. Whether I enter  my user password or root password, I get an "incorrect password" message, and will get locked out after a couple more attempts.

If pkexec is the right way to go, I suspect there are more files and scripts I need to create to make it work, but I have only found online help for this process for Ubuntu-style distros.

Can anyone please point me in the right direction? Thanks.


 

Re: SOLVED - PCManFM desktop file "run as root"

Reply #2
Thanks Rayburn - that did the trick! I had seen the instructions on the lxde page before, but the supplementary info on the Archlabs forum thread got me through the confusing bits.

Now on to experiment with Artix some more.