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

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


Le 04/11/2025 à 23:55, Bruce Steers a écrit :

Yes I think you did miss something , I found a way it can be dynamic. :)

For the autotools install we have line 35 of app/Makefile.am that installs the gambas3.desktop menu file...
  xdg-desktop-menu install --novendor $(srcdir)/desktop/gambas3.desktop; \

I replaced that line for a line that runs a script instead that dynamically makes a gambas3.desktop file in /tmp and installs that one.
  sh -c $(srcdir)/desktop/make.gambas3desktop; \

the script is fairly simple...
https://gitlab.com/bsteers4/gambas/-/blob/bruces-patched/app/desktop/ make.gambas3desktop?ref_type=heads <https://gitlab.com/bsteers4/ gambas/-/blob/bruces-patched/app/desktop/make.gambas3desktop?ref_type=heads>

and Willy has tested using the make.gambas3desktop script as the postinst script of the deb based repositories (deb12, deb13 and ubuntu24) and it works that way too.

so it's not static for us now, it's dynamically correct :)

Respects
BruceS


Not really. When I say "dynamic", I mean "when you click on the Gambas desktop icon", not "when you install Gambas".

--
Benoît Minisini.


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