[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:46, gbWilly a écrit :
Bruce made a script for Autotools that after install detects what toolkits are actually installed and replaced the gambas3.desktop file.
So, above is one side of the story.

When it comes to packaging gambas, the second part of the story, Debian/Ubuntu allows for post install scripts to run, an I presume other distro's do as well.

I slightly modified Bruce's script to become a post install script in my Debian recipe and did a test build, installed gambas3 on a virgin system and it worked.
See attached screenshot on a Mint 22, that shows no QT4 as there is none. This was a fresh install from packages made with a post install script added to the debian recipe.

So the installer just installs the regular desktop file, uses the freshly installed gbx3 to figure out what toolkits are installed and creates a new gambas.desktop file to replace the installed one. Simple as that.

If you're interested I'll do a merge request with the change.

Yes, thanks, make a merge request.

It should be possible for OpenSuSe and Arch Linux as well, but you'll have to ask the experts on those distro's.

I don't know them enough to be able to do that! If someone can help he will be welcome.

Regards,

--
Benoît Minisini.