[MPlayer-dev-eng] [PATCH] Install pixmap and mplayer.desktop for GUI builds

Michael Terry mterry at fastmail.fm
Sun Apr 27 22:11:02 CEST 2003


This is my first attempt at an MPlayer patch, so forgive me if I messed up.

The attached patch to Makefile will install the also attached 
mplayer.desktop when building with a GUI.  It also installs logo.xpm 
into the global pixmaps directory so that the .desktop can find it 
(again, only when building with a GUI -- maybe this would want to be 
done anyway?).  I put mplayer.desktop in the source subdirectory 'etc'.

.desktop files allow programs to show up correctly in GNOME/KDE/etc. 
menus and give the desktop environment an idea of how to interact with 
the program (for more info on the spec, see 
http://www.freedesktop.org/standards/desktop-entry-spec/desktop-entry-spec.html).

The reason it only installs when building a GUI (and why the .desktop 
file refers to gmplayer) is that often mplayer will be selected by the 
user without a filename (like it would be when selected from an 
application menu), and without the GUI version, mplayer would just exit.

If you accept this patch, note that translating the comments in the 
.desktop file is easy -- just add a line like "Comment[hu]=Hungarian 
translation of comment" in UTF-8.

-mt
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: mplayer.desktop
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20030427/bfc7a928/attachment.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: desktop.patch
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20030427/bfc7a928/attachment.asc>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 252 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20030427/bfc7a928/attachment.pgp>


More information about the MPlayer-dev-eng mailing list