[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 22:55:58 +0000
- To: user@xxxxxxxxxxxxxxxxxxxxxx
On Tue, 4 Nov 2025 at 22:11, Benoît Minisini < benoit.minisini@xxxxxxxxxxxxxxxx> wrote: > Le 04/11/2025 à 22:07, Bruce Steers a écrit : > > > > > > On Mon, 3 Nov 2025 at 19:58, gbWilly <gbWilly@xxxxxxxxxxxxxx > > <mailto: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. > > > > 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. > > > > 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. > > > > > > Looping back here then :) > > > > Any interest in this Benoit? > > I've tested it with autotools install on debian13, mint22(ubuntu24.04), > > fedora42, Manjaro. all working okay :) > > > > Willy has tested it as the postinst script for debian12 and 13 and > > ubuntu24.04 (Mint22) and it's all working there too :) > > > > Forum discussion: https://gambas.one/forum/index.php? > > page=topicview&id=the-gambas-ide%2Fthe-gambas-desktop-icon <https:// > > gambas.one/forum/index.php?page=topicview&id=the-gambas-ide%2Fthe- > > gambas-desktop-icon> > > > > Respects > > BruceS > > Maybe I didn't understand, but I don't see the point here. > > Desktop files are static, and when you click on them, there is no way to > tell the desktop to detect which library is actually installed and > dynamically define the menus associated with the desktop file. > > Did I miss something? > > -- > Benoît Minisini 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 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
| Re: gambas3.desktop install idea to detect installed toolkits... | Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx> |
| gambas3.desktop install idea to detect installed toolkits... | Bruce Steers <bsteers4@xxxxxxxxx> |
| Re: gambas3.desktop install idea to detect installed toolkits... | Bruce Steers <bsteers4@xxxxxxxxx> |
| Re: gambas3.desktop install idea to detect installed toolkits... | Bruce Steers <bsteers4@xxxxxxxxx> |
| Re: gambas3.desktop install idea to detect installed toolkits... | Bruce Steers <bsteers4@xxxxxxxxx> |
| Re: gambas3.desktop install idea to detect installed toolkits... | gbWilly <gbWilly@xxxxxxxxxxxxxx> |
| Re: gambas3.desktop install idea to detect installed toolkits... | Bruce Steers <bsteers4@xxxxxxxxx> |
| Re: gambas3.desktop install idea to detect installed toolkits... | gbWilly <gbWilly@xxxxxxxxxxxxxx> |
| Re: gambas3.desktop install idea to detect installed toolkits... | Bruce Steers <bsteers4@xxxxxxxxx> |
| Re: gambas3.desktop install idea to detect installed toolkits... | Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx> |