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

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


On Mon, 3 Nov 2025 at 15:48, gbWilly <gbWilly@xxxxxxxxxxxxxx> wrote:

> people who know how the packager install works may be able to answer that.
> (and if it can somehow be made dynamic during install like i've done with
> the makefile)
>
> You can run scripts postinstall as part of a debian package. It's not that
> hard, but your script has to meet some requirements (at least on
> Debian/Ubuntu, see: Package maintainer scripts
> <https://www.debian.org/doc/debian-policy/ch-maintainerscripts.html> and
> Scripts <https://www.debian.org/doc/debian-policy/ch-files.html#s-scripts>
> )
>
> gbWilly
>

Hmm, it seems like it could be fairly easy.
all done in the postinst maybe?

what the script does...
* uses 'gbx3 -e Component.Path' to find the libs dir
* Checks what toolkit components are in libs.
* builds the dynamic gambas3.desktop file in /tmp/
* uses xdg-desktop-menu to install it.

The script can be run standalone at any time to update the icon after
install so i think postinst should work?

Maybe you could get it working in your repository?
I don't have a repository so cannot really test anything.

Respects
BruceS

Follow-Ups:
Re: gambas3.desktop install idea to detect installed toolkits...gbWilly <gbWilly@xxxxxxxxxxxxxx>