2

While messing around with Lubuntu 19.04, running lxqt-sudo to launch Pluma text editor as root so that I could edit the /var/www PHP projects I had, I noticed when rightclicking the file browser pane and choosing View Folder, that it opened up, at first, PCManFM-Qt. However, when it did so, it used a very ugly theme. (That's another question I have posted.) Then, I installed Nautilus. When I did, now when I open Pluma as root, it uses some file manager called Files, which I assume is Nautilus because it shows up when I do ps -ef | grep -i nautilus.

How do I tell Pluma to use PCManFM-Qt instead of Nautilus? What config file do I edit?

Volomike
  • 2,305

1 Answers1

2

Setting the default is done with:

xdg-mime default pcmanfm-qt.desktop inode/directory application/x-gnome-saved-search

(I assumed it is pcmanfm-qt.desktop so do check for the actual .desktop file inside /usr/share/applications folder.)

  • nautilus.desktop for Nautilus.
  • nemo.desktop for nemo.
  • etc.

when I open Pluma as root

Please stop this behaviour. Use pkexec instead.

But even then don't! If you need root to edit files in /var/www/ your files are set incorrectly. Check the group of those files and add your user to that group. The group is going to be either www-data or apache if you use apache. Then you can edit the files from your user.

Volomike
  • 2,305
Rinzwind
  • 309,379