From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Vaidheeswaran C Newsgroups: gmane.emacs.help Subject: Re: emacsclient not integrated into modern window systems Date: Sun, 12 Jul 2015 00:29:56 +0530 Message-ID: <55A167AC.9070904@gmail.com> References: <61e558ef-6edb-4fd5-af12-7fa0d470c9c4@googlegroups.com> Reply-To: vaidheeswaran.chinnaraju@gmail.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1436641212 819 80.91.229.3 (11 Jul 2015 19:00:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 11 Jul 2015 19:00:12 +0000 (UTC) To: Rusi , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jul 11 21:00:09 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZE00O-0003LM-Co for geh-help-gnu-emacs@m.gmane.org; Sat, 11 Jul 2015 21:00:08 +0200 Original-Received: from localhost ([::1]:48830 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZE00N-0004Ax-IN for geh-help-gnu-emacs@m.gmane.org; Sat, 11 Jul 2015 15:00:07 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41250) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZE009-0004As-LJ for help-gnu-emacs@gnu.org; Sat, 11 Jul 2015 14:59:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZE006-0005Jo-Eh for help-gnu-emacs@gnu.org; Sat, 11 Jul 2015 14:59:53 -0400 Original-Received: from mail-pa0-x22d.google.com ([2607:f8b0:400e:c03::22d]:34059) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZE006-0005JZ-6V for help-gnu-emacs@gnu.org; Sat, 11 Jul 2015 14:59:50 -0400 Original-Received: by pabvl15 with SMTP id vl15so184459989pab.1 for ; Sat, 11 Jul 2015 11:59:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:reply-to:user-agent:mime-version:newsgroups:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=3DQNHX5FzOGyn6LN5KxEen4/Q+HTccTuQ/9Do2EbcMQ=; b=teoG/Tf8Dd+dzaLvb4OyBZ86yPhWfot+iHDk8S1BqKqkDNwS/Ze3XHyz83+Y6LMTv6 IrLR2ccOOkdNLWi272khzpy/lzTSUAwfcxPTSTsKyu0KDMR4SpsNTi5zLwV6FSjJxxC9 +HZ/Pz6eX8qpVMbbrWYiISbRY0wJitdPc5xC10JcSZA8I9tdMYjHxI6zRc+OuN8dm4Ko BbH94alYhaX/UWdanJ8RbbdnUB/4lHpja++725JCgSBPDz14EEsMPjQmhLzDUOMcPqOk wFtv66ymMJn51zstFnZtwEvrWFUMDCCzZB9BC8dVvVmaDds8tYUAQC9Vk2BNzkx6oi6c AlVw== X-Received: by 10.70.36.234 with SMTP id t10mr54125074pdj.145.1436641189349; Sat, 11 Jul 2015 11:59:49 -0700 (PDT) Original-Received: from [192.168.43.83] ([106.206.138.177]) by smtp.gmail.com with ESMTPSA id bx8sm13697723pab.38.2015.07.11.11.59.46 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 11 Jul 2015 11:59:48 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Icedove/31.3.0 Original-Newsgroups: gmane.emacs.help In-Reply-To: <61e558ef-6edb-4fd5-af12-7fa0d470c9c4@googlegroups.com> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400e:c03::22d X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:105607 Archived-At: On Saturday 11 July 2015 08:54 AM, Rusi wrote: > [Desktop Entry] > Name=EmacsClient > 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=emacsclient -n -a emacs %F > Icon=emacs > Type=Application > Terminal=false > Categories=Development;TextEditor; > StartupWMClass=Emacs There is __already__ an emacs.desktop file in emacs repo. If emacsclient.desktop gets in to repo and in the NEWS file, it will induce packagers to bundle emacsclient.desktop as well. Why not file a bug report and see what happens... ~/src/emacs.git/etc$ cat emacs.desktop [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 Type=Application Terminal=false Categories=Development;TextEditor; StartupWMClass=Emacs Keywords=Text;Editor; ---------------------------------------------------------------- This is the diff between the repo version and the debian version. I feel the debian version is built on top of the repo version. [Desktop Entry] -Name=Emacs +Version=1.0 +Name=GNU Emacs 23 GenericName=Text Editor -Comment=Edit text +Comment=View and edit files 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 +Exec=/usr/bin/emacs23 %F +TryExec=emacs23 +Icon=/usr/share/icons/hicolor/scalable/apps/emacs23.svg Type=Application Terminal=false -Categories=Development;TextEditor; -StartupWMClass=Emacs -Keywords=Text;Editor; +Categories=Utility;Development;TextEditor; ---------------------------------------------------------------- Btw, once I open *.txt file with emacsclient any susbsequent opens on that file happens with emacsclient. $ xdg-mime query default text/plain userapp-emacsclient.emacs23-00DX1X.desktop $ cat ~/.local/share/applications/userapp-emacsclient.emacs23-00DX1X.desktop [Desktop Entry] Encoding=UTF-8 Version=1.0 Type=Application NoDisplay=true Exec=/usr/bin/emacsclient.emacs23 %f Name=emacsclient.emacs23 Comment=Custom definition for emacsclient.emacs23 The above desktop files are created automatically by my XFCE desktop.