Author Topic: How Do I Edit Menu Entry?  (Read 2215 times)

Offline bcat23

  • Jr. Member
  • **
  • Posts: 36
Re: How Do I Edit Menu Entry?
« Reply #15 on: January 17, 2011, 01:11:45 PM »
Thanks for the help! It looks like the permission issue is fixed. However, the LXDE menu entry does not seem to be working.

If I type spiderfix; SpiderOak in a terminal, the file is copied and SpiderOak launches. However, if I select SpiderOak from the menu, nothing happens. Is there something wrong with my .desktop file? See the file contents below. Thanks.

Code: [Select]
[Desktop Entry]
Version=1.0
Encoding=UTF-8
Type=Application
Name=SpiderOak Backup
Comment=SpiderOak Secure Backup and File Sharing Client
Terminal=false
Categories=SpiderOak;Network;X-MandrivaLinux-Internet-WebBrowsers;
Icon=/usr/share/pixmaps/spideroak/spideroak.png
Exec=spiderfix; SpiderOak

Offline Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11581
  • ----IOFLU----
Re: How Do I Edit Menu Entry?
« Reply #16 on: January 17, 2011, 01:29:40 PM »
Thanks for the help! It looks like the permission issue is fixed. However, the LXDE menu entry does not seem to be working.

If I type spiderfix; SpiderOak in a terminal, the file is copied and SpiderOak launches. However, if I select SpiderOak from the menu, nothing happens. Is there something wrong with my .desktop file? See the file contents below. Thanks.

Code: [Select]
[Desktop Entry]
Version=1.0
Encoding=UTF-8
Type=Application
Name=SpiderOak Backup
Comment=SpiderOak Secure Backup and File Sharing Client
Terminal=false
Categories=SpiderOak;Network;X-MandrivaLinux-Internet-WebBrowsers;
Icon=/usr/share/pixmaps/spideroak/spideroak.png
Exec=spiderfix; SpiderOak

Try another edit, and add /usr/bin/ in front of SpiderOak.

Exec=spiderfix; /usr/bin/SpiderOak

This really shouldn't be necessary, but there may be some quirk causing the need for the full path, when executed from a .desktop file. Another thing to check is that the .desktop file itself is executable. That could have gotten changed accidentally, with all this messing around.
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

Offline bcat23

  • Jr. Member
  • **
  • Posts: 36
Re: How Do I Edit Menu Entry?
« Reply #17 on: January 17, 2011, 03:09:02 PM »
I tried adding the full path in front of both spiderfix and SpiderOak so the last line of the .desktop file reads:

Code: [Select]
Exec=/usr/local/bin/spiderfix; /usr/bin/SpiderOak


SpiderOak still does not start from the menu. If I browse to the .desktop file using Thunar and try to execute it (right click/Execute in Thunar), I get an error message that says


Failed to execute child process "/usr/local/bin/spiderfix;" (No such file or directory).

Is there some type of permissions issue with running from a .desktop file versus running from a terminal? Thanks.

Offline Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11581
  • ----IOFLU----
Re: How Do I Edit Menu Entry?
« Reply #18 on: January 17, 2011, 03:22:09 PM »
I tried adding the full path in front of both spiderfix and SpiderOak so the last line of the .desktop file reads:

Code: [Select]
Exec=/usr/local/bin/spiderfix; /usr/bin/SpiderOak


SpiderOak still does not start from the menu. If I browse to the .desktop file using Thunar and try to execute it (right click/Execute in Thunar), I get an error message that says


Failed to execute child process "/usr/local/bin/spiderfix;" (No such file or directory).

Is there some type of permissions issue with running from a .desktop file versus running from a terminal? Thanks.

Check the permissions of the spiderfix script.

[root@fatman ~]# ls -l /usr/local/bin/spiderfix
-rwxrwxr-x 1 root root 196 Jan 14 22:39 /usr/local/bin/spiderfix*

Mine are set to 775, the same as the library.zip and library.zip-backup. On the other hand your error says the script wasn't found at all. (No such file or directory)
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

Offline bcat23

  • Jr. Member
  • **
  • Posts: 36
Re: How Do I Edit Menu Entry?
« Reply #19 on: January 17, 2011, 06:15:29 PM »
I changed the permissions of the spideroak script and the .desktop file to 775. I am still getting the same error when I try to run the .desktop file.

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: How Do I Edit Menu Entry?
« Reply #20 on: January 17, 2011, 06:22:18 PM »
I changed the permissions of the spideroak script and the .desktop file to 775. I am still getting the same error when I try to run the .desktop file.

It is the spiderfix file that needs to be changed / checked on.
Quote
Failed to execute child process "/usr/local/bin/spiderfix;" (No such file or directory).


Offline Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11581
  • ----IOFLU----
Re: How Do I Edit Menu Entry?
« Reply #21 on: January 17, 2011, 08:25:37 PM »
I changed the permissions of the spideroak script and the .desktop file to 775. I am still getting the same error when I try to run the .desktop file.

I hope that's a typo. (spideroak) The name of the script has to match what you have in the menu .desktop file Exec= line.
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

Offline bcat23

  • Jr. Member
  • **
  • Posts: 36
Re: How Do I Edit Menu Entry?
« Reply #22 on: January 18, 2011, 01:29:33 PM »
Yes, it's just a typo.

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: How Do I Edit Menu Entry?
« Reply #23 on: January 18, 2011, 01:48:28 PM »
Yes, it's just a typo.

So is it working now?


Offline bcat23

  • Jr. Member
  • **
  • Posts: 36
Re: How Do I Edit Menu Entry?
« Reply #24 on: January 18, 2011, 03:21:13 PM »
No, I am still getting the same error about the script not being found.

The typo was in my post. Sorry for the confusion.

Let me know if anyone has any other thoughts. If not, I can just run the script from a terminal and not worry about the menu entry. Thanks.

Offline Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11581
  • ----IOFLU----
Re: How Do I Edit Menu Entry?
« Reply #25 on: January 18, 2011, 03:38:23 PM »
No, I am still getting the same error about the script not being found.

The typo was in my post. Sorry for the confusion.

Let me know if anyone has any other thoughts. If not, I can just run the script from a terminal and not worry about the menu entry. Thanks.

I'm just puzzled as to why the spiderfix script can't be found, even with the full path given. That is incredibly strange. Even more strange when the same command from a terminal has no problem with finding and executing it.  ???
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

uncleV

  • Guest
Re: How Do I Edit Menu Entry?
« Reply #26 on: January 21, 2011, 07:43:41 AM »
I'm just puzzled as to why the spiderfix script can't be found, even with the full path given. That is incredibly strange. Even more strange when the same command from a terminal has no problem with finding and executing it.  ???

old-polack,
I had a similar problem trying to help here: http://www.pclinuxos.com/forum/index.php/topic,85134.msg708161.html#msg708161
Quote
As we saw LD_PRELOAD works in Terminal but not in *.desktop file in Xfce.
I was doing this in LXDE.

DDZ

  • Guest
Re: How Do I Edit Menu Entry?
« Reply #27 on: March 30, 2011, 08:52:18 AM »
Quote from: bcat23
How Do I Edit Menu Entry?

LXMenuEditor

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: How Do I Edit Menu Entry?
« Reply #28 on: March 30, 2011, 09:10:50 AM »

Offline Hawkeye_52

  • Full Member
  • ***
  • Posts: 160
Re: How Do I Edit Menu Entry?
« Reply #29 on: April 02, 2011, 09:16:35 AM »
Neal may be referring to this:

http://www.pclinuxos.com/forum/index.php/topic,88665.0.html

The PCLinuxOS crew is pretty quick on implementing new ideas!  ;D

Hawkeye