[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gambas3.desktop install idea to detect installed toolkits...


On Wed, 5 Nov 2025 at 19:11, Bruce Steers <bsteers4@xxxxxxxxx> wrote:

>
>
> On Wed, 5 Nov 2025 at 18:34, Bruce Steers <bsteers4@xxxxxxxxx> wrote:
>
>> The suggestion of a menu item in the IDE that re-configures the icon was
>> a good one.
>>
>> My script was bash but could also easily be gambas code.
>>
>
> Et voila..
>
> https://gitlab.com/bsteers4/gambas/-/commit/d29faec3dbd45f022b117d474bf1d9cd83b06bd0
> My IDE now has a button to rebuild and re-install the desktop menu icon.
> :)
>
> Respects
> BruceS
>

I have modified it now to to use DesktopFile.class and pre-load the
existing icon and modify it to preserve any other Actions a use may have
set.
I think i got the hierarchy correct

  "~/.local/share/applications/gambas3.desktop"
"/usr/local/share/applications/gambas3.desktop"
"/usr/share/applications/gambas3.desktop"
It will use what ever one it finds first in that order.
https://gitlab.com/bsteers4/gambas/-/blob/e7dc14a4f695e9b464338fc33cfe14d142d16478/app/src/gambas3/.src/Options/FOption.class#L1970

Respects
BruceS

Follow-Ups:
Re: gambas3.desktop install idea to detect installed toolkits...Bruce Steers <bsteers4@xxxxxxxxx>