Can't Rename desktop shortcuts

Please post all general support questions for LXDE here.
Locked
paul1149
Posts: 5
Joined: Fri Jul 13, 2012 1:31 am

Can't Rename desktop shortcuts

Post by paul1149 »

I have created a desktop shortcut pointing to an xml configuration file that I've been accessing a lot. It opens in gedit.

Two strange things have occurred. First, when I named the shortcut with the target file's name, gedit would open the shortcut itself rather than the intended target. This, despite me speccing the target's path correctly. LXDE was ignoring my spec and opening the shortcut instead. When I changed the name of the shortcut, everything worked fine.

Secondly, in changing the name of the shortcut, I find I cannot change the display name. Currently there is no display name, just an icon. I have tried via the desktop context menu/properties, from within pcman, and in pcman as root. And still no changes stick.

I had this same problem earlier with another shortcut.
TForsman
Posts: 3
Joined: Sat Jul 14, 2012 11:16 am

Re: Can't Rename desktop shortcuts

Post by TForsman »

paul1149 wrote: Secondly, in changing the name of the shortcut, I find I cannot change the display name. Currently there is no display name, just an icon. I have tried via the desktop context menu/properties, from within pcman, and in pcman as root. And still no changes stick.

I had this same problem earlier with another shortcut.
You need to specify that inside the .desktop file. like :

Code: Select all

[Desktop Entry]
Encoding=UTF-8
Name=Trine 2
Comment=Launch the Trine 2 game
Terminal=false
Type=Application
StartupNotify=true
Categories=Game;
MimeType=application/x-trine2;
Exec=/home/tforsman/Trine2/trine2.sh
Icon=/home/tforsman/Trine2/trine2.png
The name you see in PCManFM is: Name=Trine 2
But the filename is: trine2.desktop

Image


Hope that helped you with that part of the issue.
paul1149
Posts: 5
Joined: Fri Jul 13, 2012 1:31 am

Re: Can't Rename desktop shortcuts

Post by paul1149 »

Thanks for your reply. I was unable to find the .desktop folder, but I was able to edit the shortcut via the context menu and selecting notepad. The Name field was blank, so I changed it to test. I reopened the shortcut in notepad and verified that the change had stuck:

[Desktop Entry]
Encoding=UTF-8
Type=Application
Name=test
Name[en_US]=
Exec=gedit /home/paul/.config/openbox/lxde-rc.xml
Comment[en_US]=lxde config
StartupNotify=true

But still the name shows up neither on the desktop nor in PCManFM. It's still blank.
TForsman
Posts: 3
Joined: Sat Jul 14, 2012 11:16 am

Re: Can't Rename desktop shortcuts

Post by TForsman »

Doesn't work just to rightclick on the file and rename it to test.desktop ? might be hidden, as it didn't had any name, so the name might be .desktop That makes it hidden.
paul1149
Posts: 5
Joined: Fri Jul 13, 2012 1:31 am

Re: Can't Rename desktop shortcuts

Post by paul1149 »

No, 'test.desktop' made no difference. The properties sheet also still shows it as blank after the attempt. Also, I have full permissions on this shortcut.
Rex Bouwense
Posts: 1109
Joined: Sat Aug 27, 2011 5:44 pm
Location: Sierra Vista, Arizona USA
Contact:

Re: Can't Rename desktop shortcuts

Post by Rex Bouwense »

Don't feel bad. I can't seem to find .desktop file either and I am looking at the hidden files.
Rex
TForsman
Posts: 3
Joined: Sat Jul 14, 2012 11:16 am

Re: Can't Rename desktop shortcuts

Post by TForsman »

Makes any difference if you go to that folder with terminal, where desktop file is, and then use

Code: Select all

ls
to see what's the name of it, then open that one and save as: and use a name that you want to save it with. That must work 8-)
Locked