From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ulrich Mueller Newsgroups: gmane.emacs.devel Subject: Re: .desktop file for emacs Date: Sat, 8 Dec 2007 09:36:14 +0100 Message-ID: <18266.22398.668409.861308@a1ihome1.kph.uni-mainz.de> References: <200712040715.lB47FVGB024963@oogie-boogie.ics.uci.edu> <200712050447.lB54lJFP014573@oogie-boogie.ics.uci.edu> <200712080141.lB81fnIm005167@oogie-boogie.ics.uci.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----cutting-here-may-damage-your-screen-surface----32880501----" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1197103007 27046 80.91.229.12 (8 Dec 2007 08:36:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 8 Dec 2007 08:36:47 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org To: Dan Nicolaescu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Dec 08 09:36:56 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1J0vB9-0003YM-SA for ged-emacs-devel@m.gmane.org; Sat, 08 Dec 2007 09:36:56 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J0vAs-0000DD-Ax for ged-emacs-devel@m.gmane.org; Sat, 08 Dec 2007 03:36:38 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J0vAn-0000D8-NF for emacs-devel@gnu.org; Sat, 08 Dec 2007 03:36:33 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J0vAl-0000B8-Uq for emacs-devel@gnu.org; Sat, 08 Dec 2007 03:36:33 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J0vAl-0000B0-Pw for emacs-devel@gnu.org; Sat, 08 Dec 2007 03:36:31 -0500 Original-Received: from mx20.gnu.org ([199.232.41.8]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1J0vAg-0003JI-Pj; Sat, 08 Dec 2007 03:36:26 -0500 Original-Received: from a1iwww1.kph.uni-mainz.de ([134.93.134.1]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1J0vAe-0006dG-21; Sat, 08 Dec 2007 03:36:24 -0500 Original-Received: from a1ihome1.kph.uni-mainz.de (a1ihome1.kph.uni-mainz.de [134.93.134.75]) by a1iwww1.kph.uni-mainz.de (8.14.1/8.13.4) with ESMTP id lB88aEvZ024868; Sat, 8 Dec 2007 09:36:15 +0100 Original-Received: from a1ihome1.kph.uni-mainz.de (localhost [127.0.0.1]) by a1ihome1.kph.uni-mainz.de (8.14.2/8.14.1) with ESMTP id lB88aEdw008982; Sat, 8 Dec 2007 09:36:14 +0100 Original-Received: (from ulm@localhost) by a1ihome1.kph.uni-mainz.de (8.14.2/8.14.2/Submit) id lB88aE4h008977; Sat, 8 Dec 2007 09:36:14 +0100 In-Reply-To: <200712080141.lB81fnIm005167@oogie-boogie.ics.uci.edu> X-Mailer: VM 8.0.5-504 under Emacs 22.1.1 (i686-pc-linux-gnu) X-detected-kernel: by mx20.gnu.org: Linux 2.6 (newer, 1) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:84863 Archived-At: ------cutting-here-may-damage-your-screen-surface----32880501---- Content-Type: text/plain; charset=us-ascii Content-Description: message body text Content-Transfer-Encoding: 7bit >>>>> 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 ) 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 . Ulrich ------cutting-here-may-damage-your-screen-surface----32880501---- Content-Type: text/plain; name="emacs.desktop.patch" Content-Disposition: inline; filename="emacs.desktop.patch" Content-Transfer-Encoding: 7bit --- 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 ------cutting-here-may-damage-your-screen-surface----32880501---- Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel ------cutting-here-may-damage-your-screen-surface----32880501------