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

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


On Sun, 2 Nov 2025 at 11:19, Bruce Steers <bsteers4@xxxxxxxxx> wrote:

> forgot to attach the script...
>
> PS. running the script will remove and re-install the installed desktop
> file (in ~/.local/share/applications/)
> comment out the last 2 lines to make a /tmp/gambas3.desktop for your
> examination but not install it.
>
> #echo "$ENTRY$ACTIONS"
> echo "$ENTRY$ACTIONS" >/tmp/gambas3.desktop
> #xdg-desktop-menu uninstall /tmp/gambas3.desktop # remove old before
> installing new.
> #xdg-desktop-menu install --novendor /tmp/gambas3.desktop
>
> BruceS
>
> On Sun, 2 Nov 2025 at 11:10, Bruce Steers <bsteers4@xxxxxxxxx> wrote:
>
>> I've made a little script (attached) that will create a gambas3.desktop
>> icon and set only the available toolkits not all of them.
>>
>> I added the script the the /app/desktop folder and edited makefile.am
>> (line 35) so instead of installing the existing gambas3.desktop icon it
>> installs the newly created one.
>>
>> caveats.
>> is uses bash syntax not sh so bash must be installed.
>> it has to be run after the install has installed gbx3 and all toolkit
>> components
>>
>> See the commit here
>> https://gitlab.com/bsteers4/gambas/-/commit/4b838ef897fcffaf75d5fc1da32ccb949794a2f2
>>
>> Any thoughts Benoit?
>>
>> Respects
>> BruceS
>>
>
I made some compatibility changes.
It now uses tr to convert names to lower case not bash ${WORD,,} syntax so
no longer requires bash. (tr is a POSIX command)

I also commented out the second to last command to remove the old icon.
this means it will only install the icon if it is not already installed.
(in case you have already customized your icon actions)
if you want to renew icon then uncomment that line.

currently tested and working (via the gambas make install) on Mint22
(ubuntu noble) and debian trixie

Respects
BruceS

Attachment: make.gambas3desktop
Description: Binary data


Follow-Ups:
Re: gambas3.desktop install idea to detect installed toolkits...Bruce Steers <bsteers4@xxxxxxxxx>