From: Ulrich Mueller <ulm@gentoo.org>
To: Dan Nicolaescu <dann@ics.uci.edu>
Cc: rms@gnu.org, emacs-devel@gnu.org
Subject: Re: .desktop file for emacs
Date: Sat, 8 Dec 2007 09:36:14 +0100 [thread overview]
Message-ID: <18266.22398.668409.861308@a1ihome1.kph.uni-mainz.de> (raw)
In-Reply-To: <200712080141.lB81fnIm005167@oogie-boogie.ics.uci.edu>
[-- Attachment #1: message body text --]
[-- Type: text/plain, Size: 1623 bytes --]
>>>>> On Fri, 07 Dec 2007, Dan Nicolaescu wrote:
> I added an emacs.desktop file.
> Reviewing for correctness would be greatly appreciated
Checking the file with "desktop-file-validate" (available at
<http://www.freedesktop.org/software/desktop-file-utils/>) results in
the following output:
$ desktop-file-validate emacs.desktop
emacs.desktop: error: value "emacs_32.png" for key "Icon" in group
"Desktop Entry" is an icon name with an extension, but there
should be no extension as described in the Icon Theme
Specification if the value is not an absolute path
emacs.desktop: warning: value "Application;Development;TextEditor;"
for key "Categories" in group "Desktop Entry" contains a
deprecated value "Application"
emacs.desktop: warning: key "Encoding" in group "Desktop Entry" is
deprecated
Also, the argument given to the "Exec" command should probably be "%F"
instead of "%f" since more than one filename argument is allowed.
Patch for the above is attached.
One could also change the tooltip to say "Emacs is the extensible,
customizable, self-documenting real-time display editor" instead of
"Edit text", but this is of course a matter of taste.
> as would figuring out how to install it correctly.
Basically, the desktop entry should go to /usr/share/applications/ and
the icon(s) either to /usr/share/pixmaps/emacs_32.png or (preferred)
to $XDG_DATA_DIRS/icons/hicolor/{16x16,24x24,32x32,48x48}/emacs.png
(where XDG_DATA_DIRS is most likely just /usr/share), as described in
<http://standards.freedesktop.org/icon-theme-spec/latest/ar01s03.html>.
Ulrich
[-- Attachment #2: emacs.desktop.patch --]
[-- Type: text/plain, Size: 636 bytes --]
--- etc/emacs.desktop~ 2007-12-08 02:39:15.000000000 +0100
+++ etc/emacs.desktop 2007-12-08 09:03:31.000000000 +0100
@@ -1,12 +1,11 @@
[Desktop Entry]
Name=Emacs
GenericName=Text Editor
Comment=Edit text
MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++;
-Exec=emacs %f
-Icon=emacs_32.png
+Exec=emacs %F
+Icon=emacs_32
Type=Application
Terminal=false
-Categories=Application;Development;TextEditor;
-Encoding=UTF-8
+Categories=Development;TextEditor;
StartupWMClass=Emacs
[-- Attachment #3: Type: text/plain, Size: 142 bytes --]
_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel
next prev parent reply other threads:[~2007-12-08 8:36 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-04 7:15 .desktop file for emacs Dan Nicolaescu
2007-12-04 7:32 ` Ulrich Mueller
[not found] ` <E1IzkSJ-0005ZR-Mv@fencepost.gnu.org>
[not found] ` <200712050447.lB54lJFP014573@oogie-boogie.ics.uci.edu>
2007-12-06 2:12 ` Richard Stallman
2007-12-08 1:41 ` Dan Nicolaescu
2007-12-08 8:36 ` Ulrich Mueller [this message]
2007-12-08 21:38 ` Dan Nicolaescu
2007-12-09 1:53 ` Glenn Morris
2007-12-09 10:56 ` Jan Djärv
2007-12-09 17:24 ` Dan Nicolaescu
2007-12-08 11:49 ` Eli Zaretskii
2007-12-09 12:37 ` Richard Stallman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=18266.22398.668409.861308@a1ihome1.kph.uni-mainz.de \
--to=ulm@gentoo.org \
--cc=dann@ics.uci.edu \
--cc=emacs-devel@gnu.org \
--cc=rms@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.