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: Sat, 11 Jul 2015 17:50:02 +0530 Message-ID: <55A109F2.7070901@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 1436617228 11611 80.91.229.3 (11 Jul 2015 12:20:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 11 Jul 2015 12:20:28 +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 14:20:24 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 1ZDtlW-0000tV-N6 for geh-help-gnu-emacs@m.gmane.org; Sat, 11 Jul 2015 14:20:22 +0200 Original-Received: from localhost ([::1]:47849 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZDtlV-0002SM-Uf for geh-help-gnu-emacs@m.gmane.org; Sat, 11 Jul 2015 08:20:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39564) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZDtlF-0002QU-0j for help-gnu-emacs@gnu.org; Sat, 11 Jul 2015 08:20:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZDtl9-0005Dz-Su for help-gnu-emacs@gnu.org; Sat, 11 Jul 2015 08:20:04 -0400 Original-Received: from mail-pa0-x231.google.com ([2607:f8b0:400e:c03::231]:36422) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZDtl9-0005DS-L2 for help-gnu-emacs@gnu.org; Sat, 11 Jul 2015 08:19:59 -0400 Original-Received: by pachj5 with SMTP id hj5so6545187pac.3 for ; Sat, 11 Jul 2015 05:19:57 -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=bAY190o8+FDIa0sl3SBhaYDhwpH0C8nuJ+KHp2UlBuQ=; b=YLQkuBBNCS8A9ygCZXuu4EbkY4C+MV5xL2+udEtx2J3tUUmA2MXVWSSupsguno8aum wZIl/N+G9cCLPK6xweHTM4+dWtyYAUpMbicaovtktbjOkFaeUO/pKMOlnpWt8oXsFeHa +58xUt9F9L9miX7jkZnLfjUaBKjF04YmZJ9m/nW/mu4lhLcEb8q5piXwSr5lvPsvFsq6 ho5vPhcHaAQAHfO6e9GkieiIvDp2zUy1Zs4i0i/k+MMC2m3F0wTvI8TkSczJZtPZfe85 42sWk8++XzbjDp62sH5XJ2HNrLaOy/jtorvPE3aodA1/2HdSorH2W1/HbZA6UBmvO8Cs y30Q== X-Received: by 10.68.209.196 with SMTP id mo4mr8078961pbc.148.1436617197272; Sat, 11 Jul 2015 05:19:57 -0700 (PDT) Original-Received: from [192.168.43.83] ([106.206.138.177]) by smtp.gmail.com with ESMTPSA id fl6sm8288699pab.12.2015.07.11.05.19.54 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 11 Jul 2015 05:19:56 -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::231 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:105597 Archived-At: I am on Debian Wheezy and I can "Open With" both emacs or gnuclient. /usr/share/applications/gnuserv.desktop /usr/share/applications/emacs23.desktop I also remember playing around with text editor alternatives sometime back. https://wiki.debian.org/DebianAlternatives Shouldn't you raise the issue with your specific distribution? On Saturday 11 July 2015 08:54 AM, Rusi wrote: > Student of mine asked me if its possible to have emacs open from the file browser. [By default it opens with gedit] > For 1/2 hour we tried to find properties/open-with etc to make it emacsclient > but to no avail > > After a lot of struggle the best I came up with was the below steps. > So... If installing emacs (using say apt) makes emacs an established app to open > (some) mimetypes, why is emacsclient not setup similarly? > > [I realize that this question may be more suitable for ubuntu/gnome/ etc folks... > Still thought I'd ask] > > ------------------------- > 0. Put (server-start) into init.el > Check that now 'emacsclient somefile' from a shell starts the same emacs > > 1. Put the following (between the --------- and ------------- ) > into the file ~/.local/share/applications/emacs.desktop > --------- > [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 > --------- > > 2. Now in file browser, click on a file you want opened in emacs and > click properties -> open-with > Here you should find 'EmacsClient' somewhere down. > You can make it default > > Note: Between 1 and 2 you may need to reboot (actually logout of X-windows is enough) >