Friday, January 24, 2014

fedora: add script launcher to favorites bar

i recently installed viber on my fedora 20 box. i initially made it to start when i log into my account but i realized i rather want to manually launch it.

first you have to make your script an application launcher:
create a file in /usr/share/applications/<app_name>.desktop with the ff contents:
[Desktop Entry]
Type=Application
Name=<app_name>
Comment= "<comment>"
Icon=<path_to_image>
Exec=<script_to_execute>
Terminal=false
Categories=<category>


here's what's in my /usr/share/applications/viber.desktop file:
[Desktop Entry]
Type=Application
Name=Viber
Comment= ""
Icon=/home/user/Viber/Viber_icon.png
Exec=/home/user/Viber/Viber.sh
Terminal=false
Categories=Communication


then search your app in your desktop's search field (point mouse to upper left corner then type name); your launcher should now appear and you can do a right click on it and select "Add to Favorites"

(src: https://ask.fedoraproject.org/en/question/24832/how-to-add-an-application-to-the-favorites-bar-in-gnome-in-fedora-18/)

No comments:

Post a Comment

SSH : No matching host key type found. Their offer: ssh-rsa,ssh-dss

Got this while connecting to my mikrotik router via ssh   Unable to negotiate with <ip address> port <ssh port>: no matching hos...