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.
Can't Rename desktop shortcuts
Re: Can't Rename desktop shortcuts
You need to specify that inside the .desktop file. like :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.
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
But the filename is: trine2.desktop

Hope that helped you with that part of the issue.
Re: Can't Rename desktop shortcuts
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.
[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.
Re: Can't Rename desktop shortcuts
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.
Re: Can't Rename desktop shortcuts
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.
-
- Posts: 1109
- Joined: Sat Aug 27, 2011 5:44 pm
- Location: Sierra Vista, Arizona USA
- Contact:
Re: Can't Rename desktop shortcuts
Don't feel bad. I can't seem to find .desktop file either and I am looking at the hidden files.
Rex
Re: Can't Rename desktop shortcuts
Makes any difference if you go to that folder with terminal, where desktop file is, and then use
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 
Code: Select all
ls
