[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: Fri, 7 Nov 2025 17:10:14 +0000
- To: user@xxxxxxxxxxxxxxxxxxxxxx
On Thu, 6 Nov 2025 at 21:38, Bruce Steers <bsteers4@xxxxxxxxx> wrote: > > > On Wed, 5 Nov 2025 at 19:11, Bruce Steers <bsteers4@xxxxxxxxx> wrote: > >> >> >> On Wed, 5 Nov 2025 at 18:34, Bruce Steers <bsteers4@xxxxxxxxx> wrote: >> >>> The suggestion of a menu item in the IDE that re-configures the icon was >>> a good one. >>> >>> My script was bash but could also easily be gambas code. >>> >> >> Et voila.. >> >> https://gitlab.com/bsteers4/gambas/-/commit/d29faec3dbd45f022b117d474bf1d9cd83b06bd0 >> My IDE now has a button to rebuild and re-install the desktop menu icon. >> :) >> >> Respects >> BruceS >> > > I have modified it now to to use DesktopFile.class and pre-load the > existing icon and modify it to preserve any other Actions a use may have > set. > I think i got the hierarchy correct > > "~/.local/share/applications/gambas3.desktop" "/usr/local/share/applications/gambas3.desktop" "/usr/share/applications/gambas3.desktop" > It will use what ever one it finds first in that order. > https://gitlab.com/bsteers4/gambas/-/blob/e7dc14a4f695e9b464338fc33cfe14d142d16478/app/src/gambas3/.src/Options/FOption.class#L1970 > > I have now converted that gambas code to "update" not "renew" the menu icon into a minimal project (8.8k compressed) now make install will unpack the project to /tmp and run it using gbx3 I initially thought a gbs script would do the job but thought there is no guarantee scripting has been installed.. so I did it this way so it does not require gambas scripting just gbc3 and gbx3 (and gb.desktop that should be installed) also this method could be used in the postinst scripts https://gitlab.com/bsteers4/gambas/-/commit/1e60a16060ad5d4114847687f3433f3a0e746859 Respects BruceS
| Re: gambas3.desktop install idea to detect installed toolkits... | Bruce Steers <bsteers4@xxxxxxxxx> |