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

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


It's now down do 3k as it now creates a project on the fly by making a
..project file and copying a module to it's directories .src folder.
much faster than unpacking a whole project archive.
the bash script...
https://gitlab.com/bsteers4/gambas/-/blob/bruces-patched/app/desktop/make.gambas3desktop?ref_type=heads

the module...
https://gitlab.com/bsteers4/gambas/-/blob/bruces-patched/app/desktop/GambasDesktop.module?ref_type=heads

it now faster and better because if it finds an existing writable desktop
menu it edits that instead of making a temp one to reinstall.
also changed multiple Exec Wait commands to be one shell Wait command that
has also sped things up.

the bash script runs during 'make install' on my fork and has been tested
working on ubuntu, debian, manjaro, fedora and opensuse.
I've also changed to the new and improved code in the "Update icon"
function i added to the IDE prefs.
https://gitlab.com/bsteers4/gambas/-/blob/bruces-patched/app/src/gambas3/.src/Options/FOption.class?ref_type=heads#L1970

Want me to merge any of this Benoit?

Respects
BruceS


On Fri, 7 Nov 2025 at 17:10, Bruce Steers <bsteers4@xxxxxxxxx> wrote:

>
>
> On Thu, 6 Nov 2025 at 21:38, Bruce Steers <bsteers4@xxxxxxxxx> wrote:
>
>>
>>
>> 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
>>
>>
> I have now converted that gambas code to "update" not "renew" the menu
> icon into a minimal project (8.8k compressed)
>
> now make install will unpack the project to /tmp and run it using gbx3
> I initially thought a gbs script would do the job but thought there is no
> guarantee scripting has been installed..
> so I did it this way so it does not require gambas scripting just gbc3 and
> gbx3 (and gb.desktop that should be installed)
>
> also this method could be used in the postinst scripts
>
>
> https://gitlab.com/bsteers4/gambas/-/commit/1e60a16060ad5d4114847687f3433f3a0e746859
>
> Respects
> BruceS
>
>

References:
gambas3.desktop install idea to detect installed toolkits...Bruce Steers <bsteers4@xxxxxxxxx>
Re: gambas3.desktop install idea to detect installed toolkits...Bruce Steers <bsteers4@xxxxxxxxx>
Re: gambas3.desktop install idea to detect installed toolkits...Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: gambas3.desktop install idea to detect installed toolkits...Bruce Steers <bsteers4@xxxxxxxxx>
Re: gambas3.desktop install idea to detect installed toolkits...Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: gambas3.desktop install idea to detect installed toolkits...Tim Dickson <dickson.tim@xxxxxxxxxxxxxx>
Re: gambas3.desktop install idea to detect installed toolkits...gbWilly <gbWilly@xxxxxxxxxxxxxx>
Re: gambas3.desktop install idea to detect installed toolkits...Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: gambas3.desktop install idea to detect installed toolkits...Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: gambas3.desktop install idea to detect installed toolkits...gbWilly <gbWilly@xxxxxxxxxxxxxx>
Re: gambas3.desktop install idea to detect installed toolkits...Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: gambas3.desktop install idea to detect installed toolkits...Bruce Steers <bsteers4@xxxxxxxxx>
Re: gambas3.desktop install idea to detect installed toolkits...Bruce Steers <bsteers4@xxxxxxxxx>
Re: gambas3.desktop install idea to detect installed toolkits...Bruce Steers <bsteers4@xxxxxxxxx>
Re: gambas3.desktop install idea to detect installed toolkits...Bruce Steers <bsteers4@xxxxxxxxx>