Create a desktop launcher?
In the past...previous Fedora Core, I was able to create a desktop launcher (shortcut) via shell script below, but can no longer. Now I am running Fedora 21 Desktop (Classic mode) and wonder if there is a way to revive this shell script to work again from my desktop?
Code:
gnome-desktop-item-edit ~/Desktop/launcher.desktop --create-new |
You could make use of a desktop file from /usr/share/applications/. If you wanted to turn it into a script then you could take one of those desktop files and create a template out of it.
Alternatively, install the mlocate package and as root run the following commands. Code:
updatedb |
Thank you. I will look into it.
|
Quote:
the LAST "core" was Fedora core 6 the "core" was dropped in Fedora 7 as to a *.desktop file just wright one they are very simple text files for example one i wrote for a game ( kiki the nanobot) Code:
[Desktop Entry] Code:
[Desktop Entry] Code:
#!/usr/bin/env xdg-open |
Thanks John. In the two files you wrote, it appears you put the path to the application following the Exec= parameter. In the file for Gimp, do you happen to know what the Path= parameter might be used for? It seems to me it would be similar, or the same, as the Exec= parameter.
|
i install all software that i build in a second tree
not in /usr but on a different disk and partition /DATA/SUSE ( i have 4 operating systems ) IF the install location is in the system $PATH there is no need to include the FULL path to it /DATA/SUSE/bin /DATA/SUSE/lib64 /DATA/SUSE/share are in my system $PATH i also tend to be very lazy and repurpose old files the "/usr/bin/ " is just a edit in posting |
Just FYI
In case there were others who had some issues with the stuff from this thread...
I'm using Fedora 23, and at least in this distro you can place the .desktop files discussed in this thread ON YOUR DESKTOP, meaning in ~/Desktop. Also the .desktop files have to start with a first line like this: #!/usr/bin/env xdg-open [Desktop Entry] which makes sense when you think about it. Don't know if the people here just glossed over this issue, or the older versions didn't require it or what... |
All times are GMT -5. The time now is 07:26 AM. |