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

Re: gb.desktop trouble


Le 27/08/2025 à 12:54, gbWilly a écrit :
Not long ago I migrated my projects from 3.18.4 to 3.19.6 in a production environment. I have a piece of code that created a pdf (using gb.cairo) and nexts opens is using:
Desktop.Open(sPathPdf)

This has always worked, but now it gave an error asking for gb.dbus, so I installed it.
Next, no more error but this:

DesktopOpen.png

I don't want this crap appearing for users, just want to open pdf and show.
Now, none of above suggestions shows me a pdf viewer although my system should know what to use.

Desktop2.png

How to I solve this that user just get's what always was, no dialogs, just an opened pdf.

gbWilly

GambOS <https://gambos.gambas.one/>
Gambas3 for Debian/Ubuntu <https://gitlab.com/gbWilly/gambas3-debian- repository>
<https://gambos.gambas.one/>

*...there is always a Catch if things go wrong!*

Sent with Proton Mail <https://proton.me/mail/home> secure email.

This comes from the desktop portals, created for Flatpak and Wayland.

Set 'Desktop.UsePortal = False' to not use this "crap" (lol).

https://gambaswiki.org/wiki/comp/gb.desktop/desktop/useportal

This will be the default in the next stable version, as these desktop portals are annoying and not reliable.

Regards,

--
Benoît Minisini.


Follow-Ups:
Re: gb.desktop troublegbWilly <gbWilly@xxxxxxxxxxxxxx>
References:
gb.desktop troublegbWilly <gbWilly@xxxxxxxxxxxxxx>