Install package with the context menu using .desktop

General talk about packaging procedures and packages.
Post Reply
User avatar
zAchAry
Posts: 804
Joined: 11. May 2010, 09:02
Location: Israel

Install package with the context menu using .desktop

Post by zAchAry » 9. Oct 2012, 11:17

I have discovered this interesting .desktop file, of XfMedia, which adds Custom Action entries in the Thunar context menu.

Code: Select all

[Desktop Entry]
Version=1.0
Type=Application
Encoding=UTF-8
Name=Xfmedia
Comment=Lightweight Media Player
Exec=xfmedia %F
TryExec=xfmedia
Icon=xfmedia
Terminal=false
Categories=X-XFCE;Application;AudioVideo;AudioPlayer;VideoPlayer;
StartupNotify=true
MimeType=application/x-annodex;audio/x-ogg;audio/x-speex;application/x-ogg;video/ ...truncated... /x-flac;audio/x-flac;
Actions=Enqueue;Enqueue and Play;

[Desktop Action Enqueue]
Exec=xfmedia-remote -a %f
Name=Enqueue in Xfmedia

[Desktop Action Enqueue and Play]
Exec=xfmedia-remote -p -a %f
Name=Enqueue and play with Xfmedia
I have made my own with Liferea (notice custom icon) and SMPlayer

Code: Select all

[Desktop Entry]
Name=Liferea
GenericName=Feed Reader
Comment=Download and view feeds
Exec=liferea
Icon=liferea
Terminal=false
Type=Application
Categories=Network;News;
StartupNotify=true
Encoding=UTF-8
NoDisplay=false
Actions=View;

[Desktop Action View]
Name=View with Liferea
Exec=liferea-add-feed %U
MimeType=application/atom+xml/rdf+xml/rss+xml
Icon=application-rss+xml
StartupNotify=false

Code: Select all

[Desktop Entry]
Categories=Qt;AudioVideo;Player;Video;
Comment=A great MPlayer front-end
Exec=smplayer %U
GenericName=Media Player
Icon=smplayer
MimeType=...truncated.../x-ogm;video/x-theora;
Name=SMPlayer
Type=Application
X-KDE-StartupNotify=false
Actions=Enqueue;

[Desktop Action Enqueue]
Exec=smplayer -add-to-playlist %U
Name=Enqueue in SMPlayer
You may like to do this with Install Salix/Slackware package or with "install" option on right click under thunar.


Edit: It would also be nice for .iso file to be integrated with a CD burner.
Image
Help to make Slackware easier Donate to Salix

Post Reply