LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   antiX / MX Linux (https://www.linuxquestions.org/questions/antix-mx-linux-127/)
-   -   Making a starter on the desktop (https://www.linuxquestions.org/questions/antix-mx-linux-127/making-a-starter-on-the-desktop-4175674266/)

saturn1955 04-30-2020 04:34 AM

Making a starter on the desktop
 
I want to start jstock from the desktop. At the moment, I ve to start the prog from the folder jstock with jstock.sh. How can I make a starter which starts the prog. from the desktop with clicking an icon, making a file like jstock.desktop?

saturn1955 04-30-2020 05:08 AM

I got it runnung with creating the file jstock.desktop

Code:

[Desktop Entry]
Name=Jstock
Exec=/home/madmax/jstock/jstock.sh
Icon=/home/madmax/jstock/jstock-icon.png
Terminal=false
Type=Application

which I saved in the folder /usr/share/applications.

from the roxpanel I drew it to the desktop. I only would like to know how I can make my own symbols.

shruggy 04-30-2020 07:59 AM

I'd say ~/.local/share/applications is a better place for something started from your home directory.

ondoho 04-30-2020 02:09 PM

Quote:

Originally Posted by saturn1955 (Post 6117548)
I only would like to know how I can make my own symbols.

You mean the icon?
Referenced as "Icon=..." in that .desktop file?
Are you asking how to make icons?

saturn1955 06-26-2020 04:23 AM

I asked how to make a shortcut on the desktop for progs, that aren t in local/share/applications. But I could solve that prob..

shruggy 06-26-2020 04:36 AM

Quote:

Originally Posted by saturn1955 (Post 6138113)
I asked how to make a shortcut on the desktop for progs, that aren t in local/share/applications.

You misunderstood. To put it simply:

~/.local/share/applications/*.desktop are .desktop files for apps in your home directory such as /home/madmax/jstock/jstock.sh.

/usr/share/applications/*.desktop are .desktop files for apps in default system locations such as /usr/bin/firefox.

/usr/local/share/applications/*.desktop are .desktop files for apps installed to /usr/local/bin. Local system administrators may also put there custom .desktop files that override those in /usr/share/applications.

More correctly, those are the default values for $XDG_DATA_HOME and $XDG_DATA_DIRS. See the XDG Base Directory Specification.

ondoho 06-27-2020 02:22 AM

Quote:

Originally Posted by saturn1955 (Post 6138113)
I asked how to make a shortcut on the desktop for progs, that aren t in local/share/applications.

Likely your desktop already has a GUI for that: right-click empty part of desktop => Create new Launcher (or some such)
If not, just copy any .desktop file to your desktop, open it in a text editor, and make the desired changes.
Quote:

Originally Posted by saturn1955 (Post 6138113)
But I could solve that prob..

That's the spirit!


All times are GMT -5. The time now is 04:44 AM.