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

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


On Wednesday, November 5th, 2025 at 14:46, Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx> wrote:
> Sorry, but this is rather wrong.
> 
> The 'gambas3.desktop' is installed with the 'gambas3-ide' package, which
> is the package for the Gambas3 IDE (obviously).
> 
> This package depends on 'gb.gui', that has a dependency on ONE of the
> actual GUI package, not ALL.

Have you looked at the dependencies of the package named gambas3 in the control file, as that is the package that installs the IDE and all needed components?
They (the dependencies in the control for gambas3) differ from distro to distro. Debian12 is not the same as Debian13 for example. Why? Because of available toolkits withing the distro.

On Debian12 the package gambas3 will install gambas3-gtk3 , gambas3-qt5 (and related gambas3-<toolkit>-<whateverelse>)
On Debian13 the package gambas3 will install gambas3-gtk3, gambas3-qt5, gambas3-qt6 (and related gambas3-<toolkit>-<whateverelse>)

This is because these packages are components you can select in the IDE and they are thus installed, if the toolkit is available on the specific distro.
If they would not be installed, you would not be able to select them as component and would be forced using gb.gui or the toolkit of the underlying desktop.
Or you would have to explicitly install it as a separate package instead of having available what the distro supports, so there is freedom of choice in what to use.

Removing one of the installed toolkits will remove gambas3 AND gambas3.desktop.

Anyone on Debian or Ubuntu running either OSB gambas or official Debian/Ubuntu gambas AND with an installed Gambas3 IDE, just open Synaptic, search for packages with name gambas3 and tell me if I'm wrong. About the number of toolkits installed.


> So you have no guarantee that if GTK3, QT5 and QT6 exist on the distro,
> they will be installed. Hopefully I would add.

You do have the guarantee as stated above.

> So the post-install script should recreate the 'gambas3.desktop' file
> each time any Gambas package is installed or removed, only if the Gambas
> 3 IDE is installed, by checking if 'gb.XXX.webview' component is
> installed for XXX among 'gtk3','qt5' and 'qt6'.

gambas3 ide will be removed if you remove an installed gambas3-<toolkitname> package and so will gambas3.desktop as it is created from the gambas3 package and thus removed.
Since the gambas3 packages created the gambas3.desktop and the postinst script is IN the gambas3 package it will recreate the gambas3.desktop on reinstall. 

gbWilly