flet-dev / flet

Flet enables developers to easily build realtime web, mobile and desktop apps in Python. No frontend experience required.
https://flet.dev
Apache License 2.0
11.23k stars 432 forks source link

Failed to read XDG desktop portal settings #1134

Open JittoJoseph opened 1 year ago

JittoJoseph commented 1 year ago

Getting this error when i try to run a gui application i found i github i am running Ubuntu 20 with gnome desktop

(flet:28502): CRITICAL : 18:02:42.072: Failed to read XDG desktop portal settings: GDBus.Error:org.freedesktop.portal.Error.NotFound: Requested setting not found

(flet:28502): CRITICAL : 18:02:42.075: Failed to read XDG desktop portal settings: GDBus.Error:org.freedesktop.portal.Error.NotFound: Requested setting not found Screenshot from 2023-03-03 18-02-46

iron3oxide commented 1 year ago

This might very well be an issue with the application and not with Flet, especially since it seems to assume a Windows environment (as indicated by the .pyw extension). It would help if you could link the application here.

farshadz1997 commented 1 year ago

@iron3oxide Hello,

The app he mentioned is here that I'm the author of it. I created this mainly for Windows but I have tested it on Ubuntu and it worked fine.

JittoJoseph commented 1 year ago

@iron3oxide Hello,

The app he mentioned is here that I'm the author of it. I created this mainly for Windows but I have tested it on Ubuntu and it worked fine.

which version of ubuntu did you test it on ? also which desktop enviornment did you use, maybe it will work if i install the same DE

farshadz1997 commented 1 year ago

@iron3oxide Hello,

The app he mentioned is here that I'm the author of it. I created this mainly for Windows but I have tested it on Ubuntu and it worked fine.

which version of ubuntu did you test it on ? also which desktop enviornment did you use, maybe it will work if i install the same DE

Ubuntu 22.04, Windows 10, 11

xylix commented 1 year ago

Happens on my ARM ubuntu 20.04 VM as well, with a minimum flet app that opens an UI and adds some buttons and texts. The application seems to be behaving fine, would like either more information on the CRITICAL logging about what sort of problem this points to or figuring out if this value from XDG desktop portal settings is truly needed by flet.

sanmiyom commented 1 year ago

happens on Ubuntu 20.04 image

rocandante commented 7 months ago

I have the same issue with a minimal flet code: hello world. My system is Endeavours OS with Cinnamon desktop and I use Flet 0.20.2. However, when I run in web mode it doesn't print any errors on console. So this issue is specific to a linux desktop?

affarilinux commented 6 months ago

No tambem tem o mesmo erro.mas algo em relacao a media. uso linux mint 20.3 Captura de tela de 2024-04-07 21-28-55

bogen85 commented 2 months ago

I get this as well.

** (flet:373747): CRITICAL **: 17:38:17.759: Failed to read XDG desktop portal settings: GDBus.Error:org.freedesktop.portal.Error.NotFound: Requested setting not found
package:media_kit_libs_linux registered.

This is on AlmaLinux 9.4 with Xfce4

$ flet --version
0.23.2
$ uname -s -r -o
Linux 5.14.0-427.28.1.el9_4.x86_64 GNU/Linux
(source /etc/os-release; echo $PRETTY_NAME)
AlmaLinux 9.4 (Seafoam Ocelot)
$ xfce4-about --version
xfce4-about 4.18.4 (Xfce 4.18)