[Gambas-user] Making an app gtk/qt switchable

Bruce Steers bsteers4 at gmail.com
Sun Nov 15 02:35:14 CET 2020


oooh , yes thank you i think i could possibly work with that :)

could get the app to restart itself with prefix.

Thanks again :)
BruceS


On Sat, 14 Nov 2020 at 23:28, Gianluigi <bagonergi at gmail.com> wrote:

>
>
> Il giorno dom 15 nov 2020 alle ore 00:07 Gianluigi <bagonergi at gmail.com>
> ha scritto:
>
>>
>>
>> Il giorno sab 14 nov 2020 alle ore 20:35 Bruce Steers <bsteers4 at gmail.com>
>> ha scritto:
>>
>>> Greetings all.
>>> I'm trying to set an arg/option in my app to choose gui system.
>>>
>>> I've added an arg --gui with options gtk gtk3 qt4 or qt5.
>>> ...
>>>
>>
>> Hi BruceS,
>>
>> I don't know if this can be useful...
>> as you can see from the attached image I have two launchers that I
>> created like this (I don't know if this is a correct procedure, but in
>> Ubuntu 20.04 it works):
>>
>> First I created the launcher in my home>
>> .local/share/appications/gambas3.desktop with written:
>>
>> [Desktop Entry]
>> Version=1.6
>> Encoding=UTF-8
>> Name=Gambas3
>> Type=Application
>> Exec=/home/gian/gambasdevel/app/src/gambas3/gambas3.gambas
>> Terminal=false
>> Icon=/home/gian/gambasdevel/app/src/gambas3/img/logo/logo-ide.png
>> Comment=Applicazione
>> NoDisplay=false
>>
>> Then I changed it like this:
>>
>> [Desktop Entry]
>> Version=1.6
>> Encoding=UTF-8
>> Name=GambasQT
>> Type=Application
>> Exec=env GB_GUI=gb.qt5
>> /home/gian/gambasdevel/app/src/gambas3/gambas3.gambas
>> Terminal=false
>> Icon=/home/gian/gambasdevel/app/src/gambas3/img/logo/logo-ide.png
>> Comment=Applicazione
>> NoDisplay=false
>>
>> I ended up with two launchers that I added to favorites.
>>
>> That's all
>>
>> Regards
>> Gianluigi
>>
>
> I forgot to point out that I also renamed the file gambas3.desktop to
> gambasQT.desktop
>
> Good night
> Gianluigi
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20201115/4485b214/attachment.htm>


More information about the User mailing list