From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,29ae1e3233992947 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,UTF8 Received: by 10.68.232.42 with SMTP id tl10mr2071057pbc.7.1335341689936; Wed, 25 Apr 2012 01:14:49 -0700 (PDT) Path: r9ni96147pbh.0!nntp.google.com!news1.google.com!volia.net!news2.volia.net!feed-A.news.volia.net!news.ecp.fr!aioe.org!.POSTED!not-for-mail From: =?utf-8?Q?Yannick_Duch=C3=AAne_=28Hibou57?= =?utf-8?Q?=29?= Newsgroups: comp.lang.ada Subject: Re: Integration issues with GNAT GPS in Ubuntu Date: Wed, 25 Apr 2012 10:14:48 +0200 Organization: Ada @ Home Message-ID: References: NNTP-Posting-Host: CATbxVllKO9mIHjZc+lTYw.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: Opera Mail/11.62 (Linux) X-Notice: Filtered by postfilter v. 0.8.2 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: Quoted-Printable Date: 2012-04-25T10:14:48+02:00 List-Id: Le Wed, 11 Apr 2012 18:49:34 +0200, Yannick Duch=C3=AAne (Hibou57) = a =C3=A9crit: > Le Wed, 11 Apr 2012 18:31:14 +0200, Yannick Duch=C3=AAne (Hibou57) = > a =C3=A9crit: > >> From a console, run the following commands: >> >> update-mime-database ~/.local/share/mime >> update-menus > > Sorry, one was missing: > > update-desktop-database ~/.local > > Without this one, GPS won't be invoked when you click on a project fil= e. Still not perfect, as you may have noticed. Create a file named =E2=80=9Copen-gnat-project=E2=80=9D, and give it thi= s content: #!/bin/sh gnat-gps "-P$1" & move it in you =E2=80=9C~/bin=E2=80=9D directory and give it the executa= ble attribute. In the previously suggested =E2=80=9Cgnat-gps.desktop=E2=80=9D file, cha= nge Exec=3D/usr/bin/gnat-gps into Exec=3Dopen-gnat-project Then run again from a terminal update-desktop-database ~/.local update-menus Now GPS will open on you project when you click on a project file, inste= ad = of opening with a dialog requesting you to browse for a project file. Mo= re = handy. -- = =E2=80=9CSyntactic sugar causes cancer of the semi-colons.=E2=80=9D [1] =E2=80=9CStructured Programming supports the law of the excluded muddle.= =E2=80=9D [1] [1]: Epigrams on Programming =E2=80=94 Alan J. =E2=80=94 P. Yale Univers= ity