Hello Friends
For the following IDES
In their directories exist their respective .sh
files to execute the IDE itself as follows respectively
Well I can execute them in peace and the IDE open as expected and in the Dock
appears by default a kind of engine as icon
Now, in each directory for each IDE exists an icon.xpm
file too
I want to know if is possible execute the same script file in the terminal but using the icon.xpm
file available to be used/applied/reflected in the Dock
.
Something as follows:
./eclipse --icon=./icon.xpm
SpringToolSuite4 --icon=./icon.xpm
Is possible in some way?.
I need this approach for Debian, Ubuntu and Fedora
Thank you
1 Like
you probably need to make a *.desktop file…
Look for them on your hard-drive - those icons in the application menus and on your dock are generated by *.desktop files…
Some will be in /usr/share/applications
, some will be in $HOME/.local/share/applications
… and there might be others - example my Synergy autostart in $HOME/.config/autostart
:
â•─x@titan ~
╰─➤ cat ./.config/autostart/synergy.desktop 130 ↵
[Desktop Entry]
Type=Application
Exec=synergy
Hidden=false
NoDisplay=false
X-GNOME-Autostart-enabled=true
Name[en_AU]=synergy
Name=synergy
Comment[en_AU]=synergy
Comment=synergy
The “key” above is the “Exec=synergy
” entry - that assumes synergy is on the $PATH… if your desired binary / executable is not on the path - you might have to Exec=/full/path/to/exectable
8 Likes
Thanks for the reply
I will try it soon as I can …
I’ve confirmed
$:~/.local/share/applications$ ls
mimeapps.list
and
Has a lot of .desktop
files
I am going to do a research about Desktop Entry
Thanks again!
2 Likes