comp.lang.ada
 help / color / mirror / Atom feed
From: "Yannick Duchêne (Hibou57)" <yannick_duchene@yahoo.fr>
Subject: Re: Integration issues with GNAT GPS in Ubuntu
Date: Wed, 25 Apr 2012 10:14:48 +0200
Date: 2012-04-25T10:14:48+02:00	[thread overview]
Message-ID: <op.wdbaiytwule2fv@douda-yannick> (raw)
In-Reply-To: op.wcl00w0rule2fv@douda-yannick

Le Wed, 11 Apr 2012 18:49:34 +0200, Yannick Duchêne (Hibou57)  
<yannick_duchene@yahoo.fr> a écrit:

> Le Wed, 11 Apr 2012 18:31:14 +0200, Yannick Duchêne (Hibou57)  
> <yannick_duchene@yahoo.fr> a écrit:
>
>>  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 file.

Still not perfect, as you may have noticed.

Create a file named “open-gnat-project”, and give it this content:

    #!/bin/sh
    gnat-gps "-P$1" &

move it in you “~/bin” directory and give it the executable attribute.

In the previously suggested “gnat-gps.desktop” file, change

    Exec=/usr/bin/gnat-gps

into

    Exec=open-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, instead  
of opening with a dialog requesting you to browse for a project file. More  
handy.

-- 
“Syntactic sugar causes cancer of the semi-colons.” [1]
“Structured Programming supports the law of the excluded muddle.” [1]
[1]: Epigrams on Programming — Alan J. — P. Yale University



  reply	other threads:[~2012-04-25  8:14 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-11 16:31 Integration issues with GNAT GPS in Ubuntu Yannick Duchêne (Hibou57)
2012-04-11 16:49 ` Yannick Duchêne (Hibou57)
2012-04-25  8:14   ` Yannick Duchêne (Hibou57) [this message]
2012-04-26 11:09 ` Yannick Duchêne (Hibou57)
2012-05-04 14:34   ` Álex R. Mosteo
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox