Author Topic: LXDE-How to run PCManFM as root  (Read 2134 times)

Offline Aradalf

  • Sr. Member
  • ****
  • Posts: 474
LXDE-How to run PCManFM as root
« on: October 11, 2010, 04:06:32 PM »
How do you run PCManFM in superuser mode in LXDE?

skyhawk

  • Guest
Re: LXDE-How to run PCManFM as root
« Reply #1 on: October 11, 2010, 04:31:36 PM »

Configure Your LXDesktop (task bar) > Control Center > System > File Manager Superuser Mode

Offline Aradalf

  • Sr. Member
  • ****
  • Posts: 474
Re: LXDE-How to run PCManFM as root
« Reply #2 on: October 11, 2010, 05:27:43 PM »
Ok, thanks. Any way to add that to the file tools menu in the start menu, or create a shortcut to it on my desktop?

Offline longtom

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3342
  • Satellite Station Africa
Re: LXDE-How to run PCManFM as root
« Reply #3 on: October 12, 2010, 12:42:07 AM »
Ok, thanks. Any way to add that to the file tools menu in the start menu, or create a shortcut to it on my desktop?

To create a shortcut use as command

Code: [Select]
gksu pcmanfm
Not sure how to add it - but the config files are under /home/user/.config .


Regards longtom

PCLinuxOS KDE 32bit
Intel Core 2 Duo E2200 / 2.2 GHz
2GB Ram
Nvidia GT610

Offline OMSkates

  • Hero Member
  • *****
  • Posts: 2388
Re: LXDE-How to run PCManFM as root
« Reply #4 on: October 12, 2010, 02:05:23 AM »
with PCManFM open  >> Tools >> 'open current folder as root'    That's not available?

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15845
  • LXDE! Coffee, Bacon and Cheesecake!
Re: LXDE-How to run PCManFM as root
« Reply #5 on: October 12, 2010, 02:07:39 AM »
Ok, thanks. Any way to add that to the file tools menu in the start menu, or create a shortcut to it on my desktop?

Right click your desktop. Choose New > Blank file. When the dialog opens, enter the name
Quote
pcmanfm-root.desktop

and click OK.

Open the file with leafpad and enter the following (use copy and paste)
Code: [Select]
[Desktop Entry]
Type=Application
Icon=system-file-manager
Name=PCManFM Super User
Comment=Browse the file system and manage the files
Categories=FileManager;FileManager;X-MandrivaLinux-System-FileTools;
Exec=gksu -l pcmanfm /root
StartupNotify=truegksu pcmanfm /root
Terminal=false
MimeType=x-directory/normal;inode/directory;
Encoding=UTF-8
X-Desktop-File-Install-Version=0.11

Save and exit. This will create an icon on your desktop.
To create a menu entry, copy the file into /usr/share/applications. This must be done as root > lxdecc > System tab > File Manager Superuser. Copy the file on your desktop and paste it into the applications directory.

« Last Edit: October 12, 2010, 04:42:46 AM by Neal »

Offline Aradalf

  • Sr. Member
  • ****
  • Posts: 474
Re: LXDE-How to run PCManFM as root
« Reply #6 on: October 12, 2010, 01:44:29 PM »
Ok, thanks. Any way to add that to the file tools menu in the start menu, or create a shortcut to it on my desktop?

Right click your desktop. Choose New > Blank file. When the dialog opens, enter the name
Quote
pcmanfm-root.desktop

and click OK.

Open the file with leafpad and enter the following (use copy and paste)
Code: [Select]
[Desktop Entry]
Type=Application
Icon=system-file-manager
Name=PCManFM Super User
Comment=Browse the file system and manage the files
Categories=FileManager;FileManager;X-MandrivaLinux-System-FileTools;
Exec=gksu -l pcmanfm /root
StartupNotify=truegksu pcmanfm /root
Terminal=false
MimeType=x-directory/normal;inode/directory;
Encoding=UTF-8
X-Desktop-File-Install-Version=0.11

Save and exit. This will create an icon on your desktop.
To create a menu entry, copy the file into /usr/share/applications. This must be done as root > lxdecc > System tab > File Manager Superuser. Copy the file on your desktop and paste it into the applications directory.


Thanks, Neal. That's what I wanted.