Author Topic: Struggling to add root gnome-commander to menu [Solved]  (Read 844 times)

Offline longtom

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3342
  • Satellite Station Africa
Struggling to add root gnome-commander to menu [Solved]
« on: May 09, 2012, 01:12:37 PM »
Hi,

I am trying to add a root gnome-commander to my LXDE menu > File Tools.

All helper programs failed and my manual approach looks like this in /usr/share/applications

Code: [Select]
[Desktop Entry]
Name=GNOME Commander Root
GenericName=File Manager
Exec=gksu gnome-commander
Icon=gnome-commander
Encoding=UTF-8
Terminal=false
Type=Application
StartupNotify=true
Categories=Utility;X-MandrivaLinux-System-FileTools;

Above is pretty much a copy of a working shortcut (4pane) with the decisive items exchanged.  4pane is in the menu.

Clicking on the icon in /usr/share/applications starts the program as root all right.  I just don't have it in the LXDE-panel menu and therefore can not add it to the LXDE-menu Application Launch Bar.  Where am I going wrong?
« Last Edit: May 09, 2012, 02:16:30 PM by longtom »
Regards longtom

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

Offline djohnston

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6227
  • I don't do Windows
Re: Struggling to add root gnome-commander to menu
« Reply #1 on: May 09, 2012, 01:31:16 PM »
The original desktop file shows here in the LXDE menu under File Tools. Below is what I have now to run it as user root.

[Desktop Entry]
Encoding=UTF-8
Name=GNOME Commander root
Exec=gksu gnome-commander
Icon=gnome-commander
Terminal=false
Type=Application
Categories=GNOME;GTK;Utility;FileManager;X-MandrivaLinux-System-FileTools;
StartupNotify=true
X-GNOME-Bugzilla-Bugzilla=GNOME
X-GNOME-Bugzilla-Product=gnome-commander
X-GNOME-Bugzilla-Component=application
X-GNOME-Bugzilla-Version=1.2.8.10
X-Desktop-File-Install-Version=0.11


Ya gotta stop testing these file managers. My menu is getting full!  :D ;D
Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378

Offline longtom

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3342
  • Satellite Station Africa
Re: Struggling to add root gnome-commander to menu
« Reply #2 on: May 09, 2012, 01:46:53 PM »
The original desktop file shows here in the LXDE menu under File Tools. Below is what I have now to run it as user root.

[Desktop Entry]
Encoding=UTF-8
Name=GNOME Commander root
Exec=gksu gnome-commander
Icon=gnome-commander
Terminal=false
Type=Application
Categories=GNOME;GTK;Utility;FileManager;X-MandrivaLinux-System-FileTools;
StartupNotify=true
X-GNOME-Bugzilla-Bugzilla=GNOME
X-GNOME-Bugzilla-Product=gnome-commander
X-GNOME-Bugzilla-Component=application
X-GNOME-Bugzilla-Version=1.2.8.10
X-Desktop-File-Install-Version=0.11


Ya gotta stop testing these file managers. My menu is getting full!  :D ;D


lol ... I had that before following your logic.  However my menu doesn't get full and Gnome Commander root is not added to the menu even after a brisk lxpanelctl restart.

I have been at it for some time and made my peace with it not working.  I also had a look at pcmanfm root trying to get a clue from there ... nothing doin' .

Where is it all going pear shaped?
Regards longtom

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

Offline djohnston

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6227
  • I don't do Windows
Re: Struggling to add root gnome-commander to menu
« Reply #3 on: May 09, 2012, 01:58:41 PM »

lol ... I had that before following your logic.  However my menu doesn't get full and Gnome Commander root is not added to the menu even after a brisk lxpanelctl restart.



I was kidding about the full menu. Here it is again. This is a verbatim copy.


cat /usr/share/applications/gnome-commander.desktop

[Desktop Entry]
Encoding=UTF-8
Name=GNOME Commander root
Exec=gksu gnome-commander
Icon=gnome-commander
Terminal=false
Type=Application
Categories=GNOME;GTK;Utility;FileManager;X-MandrivaLinux-System-FileTools;
StartupNotify=true
X-GNOME-Bugzilla-Bugzilla=GNOME
X-GNOME-Bugzilla-Product=gnome-commander
X-GNOME-Bugzilla-Component=application
X-GNOME-Bugzilla-Version=1.2.8.10
X-Desktop-File-Install-Version=0.11





All I can suggest is to rename your old desktop file. Copy and paste what's shown here. Save it as the new desktop file.
Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378

Offline longtom

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3342
  • Satellite Station Africa
Re: Struggling to add root gnome-commander to menu
« Reply #4 on: May 09, 2012, 02:15:42 PM »
Thanks for staying with me on that one.

Found the "error".  My shortcut was named gnome-commander-root.desktop.  I renamed into gnome-commander_root.desktop and there she was.  1.5mm on a - .....

Solved!
Regards longtom

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

Offline djohnston

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6227
  • I don't do Windows
Re: Struggling to add root gnome-commander to menu
« Reply #5 on: May 09, 2012, 02:23:29 PM »

Solved!


Cool. Kudos. Accolades.  :D ;D
Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378

Offline longtom

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3342
  • Satellite Station Africa
Re: Struggling to add root gnome-commander to menu
« Reply #6 on: May 09, 2012, 02:30:02 PM »

Solved!


Cool. Kudos. Accolades.  :D ;D


I just asked another expert:  WHY??? ???  The answer was:  naming syntax is a pita

You have something better on offer?   ;D ;D

Still would like to know what's wrong with that second hyphen ....  ???
Regards longtom

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