From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rustom Mody Newsgroups: gmane.emacs.help Subject: Re: resending... desktop files not working for recent ubuntu? Date: Wed, 1 Jun 2016 21:19:21 +0530 Message-ID: References: <87pos2ree1.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1464796227 15528 80.91.229.3 (1 Jun 2016 15:50:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 1 Jun 2016 15:50:27 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Alexis Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 01 17:50:26 2016 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 1b88Pa-00010g-2J for geh-help-gnu-emacs@m.gmane.org; Wed, 01 Jun 2016 17:50:26 +0200 Original-Received: from localhost ([::1]:42843 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b88PZ-0007qx-5A for geh-help-gnu-emacs@m.gmane.org; Wed, 01 Jun 2016 11:50:25 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40721) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b88Ot-0007pG-Uq for help-gnu-emacs@gnu.org; Wed, 01 Jun 2016 11:49:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b88Or-0005gr-NQ for help-gnu-emacs@gnu.org; Wed, 01 Jun 2016 11:49:42 -0400 Original-Received: from mail-vk0-x22f.google.com ([2607:f8b0:400c:c05::22f]:34650) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b88Or-0005gk-G4 for help-gnu-emacs@gnu.org; Wed, 01 Jun 2016 11:49:41 -0400 Original-Received: by mail-vk0-x22f.google.com with SMTP id c189so32787965vkb.1 for ; Wed, 01 Jun 2016 08:49:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=+HNjnxoL2kXpza/subLWrJH2zk58Tqrf/HnFTP+MVPw=; b=a2iFXMBzkLfmAImuaHzjbL9H5HAYozYphygBWZtM68aoT0LGUBT7u6MlooXg/dze2+ 2pYjOLido3wAjhk35wxfDxCY568pUHen2dvD7grnTecQYjdhbb+tHrd1Woy5/HhdoK0j rvHMNcqH6FYTCpLjknq75TBgRVLmjzOeay8g4a4hq/zacfwNbbj6Mqjbgn3K9TpJDXoh rNckg4XKOluoVwEN6hx3JI16EsKr3zoIETnJLTwVotUjH3Oq9z1drttwSCnKkzSrPx7i xBkcd98JPfCD3fmqLtt8y9ilwYaTxz5PLJokIScG+HR9BfU1ruYh0hlkTh+PwlbtF2yV Xf6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=+HNjnxoL2kXpza/subLWrJH2zk58Tqrf/HnFTP+MVPw=; b=crYxi61f8KS/o7habjKaNc2L7X6ZBL6XoSOCaWTvPFAq/9IHsfLudXDesTW5FmxcGv 1bU3PDaUyVP1Xqtkz0q3ZC5eivvk0OqXKUUrgJxz8SjI9v/heXCcRyURBEZkS6uktQpU i+XKkTwDypPwVp85b1HlHUT3U0gaMvgSkUwCz8n14Old49wtGfQoHwMylWq+jbkKPSca oMz9sK2EKiS6IbDZpqkHaWbb7hAUCFHQM8ymQA7aXP/yiXcsSkryCQz4UFz1U8wcbXxD VtAOXs0cMgyB9VTNTpZG8YCWuNyr42MRqP8Wf/EQa1BSVjtVogNHwk2jtIba9N0hfFnk rPLg== X-Gm-Message-State: ALyK8tIaFMISkDIupT7uccoyxcTYfg0V44JE0PO7i1rvWodELORvcxv9+3PZzNIm1eyCeXHw5MJbip13JOnePg== X-Received: by 10.31.60.142 with SMTP id j136mr1895709vka.16.1464796180712; Wed, 01 Jun 2016 08:49:40 -0700 (PDT) Original-Received: by 10.176.69.137 with HTTP; Wed, 1 Jun 2016 08:49:21 -0700 (PDT) In-Reply-To: <87pos2ree1.fsf@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400c:c05::22f X-Content-Filtered-By: Mailman/MimeDel 2.1.21 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.help:110164 Archived-At: On Tue, May 31, 2016 at 10:51 AM, Alexis wrote: > > Rustom Mody writes: > > Apologies for second copy 1st doesnt seem to have appeared >> >> --------------------------------------------- I have this emacs.desktop >> file put in ~/.local/share/applications >> >> --------------- [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=python Type=Application >> Terminal=false Categories=Development;TextEditor; StartupWMClass=Emacs >> >> --------------- Currently this laptop is on ubuntu 16.4 (xenial) -- >> vanilla unity desktop It used to work ok in earlier ubuntus Now on 16.4 it >> shows 2 emacs icons when editing a file via emacsclient Clicking the second >> icon shows no effect After about 10 seconds it disappears >> >> Dont know when it stopped working because frankly I am not much of a >> nautilus -> click -> emacsclient type of user >> >> Current generation -- my students -- however default to this kind of >> usage And so they default to one or both of - gedit by default - dozens of >> emacses open for each file they clicked >> > > Shouldn't you specify '' (i.e. the empty string) as the -a argument in the > Exec option? From the man page for emacsclient(1): > > -a, --alternate-editor=EDITOR > if the Emacs server is not running, run the specified editor > instead. This can also be specified via the `ALTERNATE_EDITOR' > environment variable. If the value of EDITOR is the empty string, run > `emacs --daemon' to start Emacs in daemon mode, and try to connect to it. > > Tried changing it... Same behavior It would be nice if people with other ubuntu versions and other linux desktops could try it and inform. If it works then its a bug specific to this ubuntu If not its a more general emacs bug