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

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


On Mon, 3 Nov 2025 at 19:58, gbWilly <gbWilly@xxxxxxxxxxxxxx> wrote:

> I created a topic on gambas.one forum, so we can discuss the details of
> first creating and testing this. Once there is a use able and working
> (means build and tested) format for the Debian/Ubuntu recipe, we can loop
> back here and see if it can be a useful addition to the OSB recipe.
>

Did you make a new topic that i've missed or are you talking about my post?



> The persons aware of the magic of recipe making for Arch and OpenSuSe will
> need to do some form of post-install script addition to the recipe as well,
> to make it all the same.
>

We can but hope :)

It should be possible on all distro's as many big installs fire up a CLI
> interface during updates, asking to keep your modified configuration files
> or replace them when updating for example. These are post install scripts
> fired from the installed packages.
>
> gbWilly
>

Sounds good.
Well lets get the script perfected (if it needs anything, it could already
be perfect :) )

Respects
BruceS




> Sent with Proton Mail <https://proton.me/mail/home> secure email.
>
> On Monday, November 3rd, 2025 at 18:32, Bruce Steers <bsteers4@xxxxxxxxx>
> wrote:
>
>
>
> 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: Fwd: gambas3.desktop install idea to detect installed toolkits...gbWilly <gbWilly@xxxxxxxxxxxxxx>