Hi guys
I am using 3.0
I have written a script 'sumplay' whiuch plays video as I need (fullscreen with x11 expanded & autodetect subtitles).
Only I want to associate an icon with it . So that it looks nice .
Currently it is like this.

modify context menu
(5 posts) (2 voices)-
Posted 12 years ago #
-
okay I found out solution
I would like to share.
I created a 16x16 PNG image (named whatever.png) as icon for my 'script' & copied it to /usr/share/pixmaps
Then I created a sumplay.desktop file containing
[Desktop Entry]
Encoding=UTF-8
Name=sumplay
Exec=sumplay
MimeType=video/x-msvideo
Icon=whatever.png
NoDisplay=true
which I placed in /usr/share/applications
Now I edited ~/.local/share/applications/defaults.list
and added
video/x-msvideo=sumplay.desktop
video/x-flv=sumplay.desktop
video/mp4=sumplay.desktop
video/x-matroska=sumplay.desktop
application/vnd.rn-realmedia=sumplay.desktop
to play mkv,rmvb,flv,avi,mp4 files default with 'sumplay'.Posted 12 years ago # -
Fixed your code tags. With bbPress, tags are in <> and not [].
Posted 12 years ago # -
Posted 12 years ago #
-
Currently I am stuck in opening text file (without extension) of ntfs partition with gvim by default.
Actually it gets saved as
$ls -l /media/FreeAgent\ GoFlex\ Drive/sum/sum/txt/linux/slitaz/config
-rwxrwxrwx 1 root root 94 Jun 14 20:38 config
from
$ls -l ~/.mplayer/config
-rw-r--r-- 1 tux tux 94 Jun 14 20:38 config
Thus default option in pcmanfm is execute
Though
'$file config' says
config: ASCII textPlease suggest ?
Posted 12 years ago #
Reply
You must log in to post.