[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gambas3.desktop install idea to detect installed toolkits...
[Thread Prev] | [Thread Next]
- Subject: Re: gambas3.desktop install idea to detect installed toolkits...
- From: Bruce Steers <bsteers4@xxxxxxxxx>
- Date: Tue, 4 Nov 2025 23:46:31 +0000
- To: user@xxxxxxxxxxxxxxxxxxxxxx
On Tue, 4 Nov 2025 at 23:04, Benoît Minisini < benoit.minisini@xxxxxxxxxxxxxxxx> wrote: > 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 Then you'll have to make a way that gb.gui can ask what toolkit to use before running a program Then all the current static desktop actions of gambas3.desktop can be replaced by one that uses the method that asks first. Dynamic at install is the best I could do, it's good enough for my fork as i think it's still an improvement :) Respects BruceS