Closed pietrodicaprio closed 1 year ago
Hello, I cannot reproduce this problem, links in Discord open just fine using org.freedesktop.portal.OpenURI, you don't need the GTK portal for that, the preinstalled KDE one is enough to have the service working.
Does this work if you try it from the command line?
gdbus call --session --dest org.freedesktop.portal.Desktop --object-path /org/freedesktop/portal/desktop --method org.freedesktop.portal.OpenURI.OpenURI '' https://github.com/ '[]'
Other examples are Lutris and Bottles, those can’t reach the file manager if that package is missing.
I don't see any problems with Lutris either, I click on the + icon => Scan a folder for games, and the file chooser appears, the KDE portal provides that functionality, do you have it installed?
Based on the tweet from the creator of Lutris (who firstly noticed this problem), it is not possible to launch the file manager to navigate the game's files (tweet in references), and the problem can be replicated in Bottles. Unfortunately neither me nor Pietro (Bottles developers) have a steam deck and we are reporting something that was reported to us by our users and lutris and that they solved by installing that package (one from reddit on references).
You can run the Steam Deck image in a VM using QEMU (make sure to extend it first, e.g. truncate -s 64G steamdeck-recovery.img
), then open a terminal and flatpak install lutris
.
I haven't been able to reproduce the problem, and again one shouldn't need to have both the KDE and GTK portals in order to open a link or a file manager.
Thanks! Having a vm helps a lot, we will do tests.
Hi, could not reproduce this behavior on my Steam Deck. @bertogg's command works and so does launching the file explorer from Bottles. I believe this is, thus, not caused due to a lack of xdg-desktop-portal-gtk
.
I have the same problem opening any folder from any flatpak app, but I have not clue what the cause or missing package could be.
I have the same issue and the following log (using journalctl -xef
) is being produced when a flatpak app is trying to open dolphin:
May 13 00:24:09 steamdeck xdg-desktop-portal[49107]: Authorization required, but no authorization protocol specified
May 13 00:24:09 steamdeck dolphin[49107]: qt.qpa.xcb: could not connect to display :0
May 13 00:24:09 steamdeck dolphin[49107]: qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
May 13 00:24:09 steamdeck dolphin[49107]: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.
May 13 00:24:09 steamdeck systemd[1]: Started Process Core Dump (PID 49109/UID 0).
░░ Subject: A start job for unit systemd-coredump@7-49109-0.service has finished successfully
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ A start job for unit systemd-coredump@7-49109-0.service has finished successfully.
░░
░░ The job identifier is 13530.
May 13 00:24:09 steamdeck systemd-coredump[49112]: [🡕] Process 49107 (dolphin) of user 1000 dumped core.
Module linux-vdso.so.1 with build-id 9ac365e1c015fdfa56ce058bb9c392935c747bf7
Module libuuid.so.1 with build-id 1366ec3008cfdbe45a226330754baeea46a2d7e6
Module libxcb-util.so.1 with build-id 4188ebc629b472b560849c5792a69c1803c3d1a4
Module libxkbcommon-x11.so.0 with build-id 821e1e75e92f3aaa96d19ed31fe98dbbd4d34627
Module libICE.so.6 with build-id af53458a64fe1e62a4d95606f7b03c210b2b098c
Module libSM.so.6 with build-id ac7b055fd3f16b4f29373285ab04ed52eebb632d
Module libxcb-xinput.so.0 with build-id 6403174c48f05f40cf7c168beb86f2886b9f09c1
Module libxcb-xkb.so.1 with build-id fce20d2101f3e5439923e9283c489c2cad4420c3
Module libxcb-xinerama.so.0 with build-id b328103ce7502d94fd3a4e2e8773978a9aa84adc
Module libxcb-xfixes.so.0 with build-id a6b197ace5b9b59f913f5969eb419a88d1194f47
Module libxcb-sync.so.1 with build-id dda14591103b01b1311906053bf1ca9e82ade35c
Module libxcb-shape.so.0 with build-id f1b3376c4534fab0469feb1cd19f022ff98df533
Module libxcb-render.so.0 with build-id a37bdb37744b508be9dd29fd9ccb9bb0170d43e5
Module libxcb-render-util.so.0 with build-id c64fb28ea20a320a9754273d9ea3af85f6f74b17
Module libxcb-randr.so.0 with build-id b6c1c7d4b28863b55ade251813db7f246b7ffe8b
Module libxcb-shm.so.0 with build-id fb797f299a446f559a95afcc168227482cc800d1
Module libxcb-image.so.0 with build-id ee7f8577926fe7c1d6972036c2f8e6f727e43b1b
Module libxcb-icccm.so.4 with build-id 73f1e12d76af383aa969a60279ed5ed922045f47
Module libX11-xcb.so.1 with build-id 0db4f94d8ae31b8dc9a83f825a9171656f1e532c
Module libQt5XcbQpa.so.5 with build-id 0d5a74f1ac974f0283de448900e6c1b913c1a294
Module libqxcb.so with build-id 7f5cb7bdf8ee32b69aba35f87336b3d16377a534
Module libbrotlicommon.so.1 with build-id a4ba3f4b4571c8272343b621da812a6e24a202a7
Module libopus.so.0 with build-id 649d3ddab8764d7caf73648004a35cb13e23a5e1
Module libFLAC.so.8 with build-id e568dc3d434723c72d6d302eb0b2559f27e91faa
Module libvorbisenc.so.2 with build-id 28ed815b8b1d322e6bf2bfdce4b0af2789b74335
Module libexpat.so.1 with build-id 64e977cfebfe7539f428dec3b388f5d0498b3108
Module libbrotlidec.so.1 with build-id 45defc036e918e0140a72f1fbce6e7692d38241d
Module libasyncns.so.0 with build-id 6acff139d56b5139ce5eb50a66c62b215e1d332d
Module libsndfile.so.1 with build-id 72d5531e74ed3e9afe49e95e449c40cb8984a258
Module libogg.so.0 with build-id ca0cae30a809f10db1f16e54a23b4e5ff7b2c54c
Module libvorbis.so.0 with build-id ad0a6c1af8f219b4e314090b6e8847223d424cbe
Module libgpg-error.so.0 with build-id 3801187d42c4955bd93c605451430cdf1b164e63
Module libgmp.so.10 with build-id e58d34ab389d1b649c24195c2d145e3ff2e58290
Module libhogweed.so.6 with build-id 2d70cff7b1841b4d9ca4e8e7726cd4b944c07fdc
Module libnettle.so.8 with build-id 9a878e513c02007598fcf1e2e286c2203f13536e
Module libunistring.so.2 with build-id 015ac6d6bcb60b7d8bea31a80d1941b06e8636ab
Module libidn2.so.0 with build-id 1ce2b50ad9f9821c2c629b521cf5a3c99593d332
Module libp11-kit.so.0 with build-id cc372ea3c28c4d3dfc633b4d2e933c8584d2af16
Module libffi.so.8 with build-id f90d8b734f6de9b25faedb8cbfab7054dafc0a42
Module libxkbcommon.so.0 with build-id 1f1bc7527e57c886c3df5803068122e1971d4724
Module libfontconfig.so.1 with build-id 1103a641395c7d3b42e49b793d3a9ea927c77bf6
Module libwayland-cursor.so.0 with build-id 79d7e67af210407c2afe92ba8c189c8648a6474c
Module libresolv.so.2 with build-id c915c72668282861a813f7ea3c0780f37b681dc0
Module libkeyutils.so.1 with build-id ac405ddd17be10ce538da3211415ee50c8f8df79
Module libkrb5support.so.0 with build-id adf65240a4d2aba772d7a0772b4d015469934113
Module libcom_err.so.2 with build-id be99503e12b86d78d6ede2f0d1ffb66408a37576
Module libk5crypto.so.3 with build-id eb8220b8f36675aac769450be4cb6bb7f97ec38a
Module libkrb5.so.3 with build-id 72d26767c5cb1097db75a5f5bff88860233c902b
Module libpcre.so.1 with build-id 845483dd0acba86de9f0313102bebbaf3ce52767
Module libicudata.so.70 with build-id e1dcc2a88cfaafed882d09c90c668af0eed4efed
Module libcap.so.2 with build-id c86eeb29471e24e4dcce8bdba133919582424cef
Module liblz4.so.1 with build-id e63600ab23b2f6997f42fac2fa56e1f02ce159a1
Module libgraphite2.so.3 with build-id 47761dc11e553f519cde97ed9ee985be12ccdae2
Module libfreetype.so.6 with build-id 26c5f833068ff72660d1975cbc2074c3eb47fad8
Module libGLX.so.0 with build-id 2a08836c6e6126ce9ff4496b6aacaf29ae9b4e7b
Module libGLdispatch.so.0 with build-id 501765b3a78d668860fa54229b18107473aeda4c
Module libpulsecommon-15.0.so with build-id a2e110b7a0b3bb46e42515afd55a61d78185835b
Module libXdmcp.so.6 with build-id 8ca0792d23c8b8b4c0864297512349292bea5955
Module libXau.so.6 with build-id 1c67764663e07bec24d8951e5fd93f4d165979ff
Module libXi.so.6 with build-id 16603be937a02a7e61b0b0395d064be7efd86f49
Module libXext.so.6 with build-id d70f24beb4fad748d6becffdcc13e51be0a2ebfa
Module libltdl.so.7 with build-id 64bc54a40a0b6e4209a2c712364b4ae653c3f5b2
Module libtdb.so.1 with build-id bec061530310665480ee91395b4eb0a937750a03
Module libvorbisfile.so.3 with build-id 0010b21da05e318b42e718d90738febf58028141
Module liblzma.so.5 with build-id 8b615460aa230708c5183f16bede67aa0437d95e
Module libbz2.so.1.0 with build-id 919597c477c9b2cb9cdbb7745ed6494ac0e6da60
Module libusbmuxd-2.0.so.6 with build-id fd9f05e7f5b0da4e15972f75b61fd9b4b9f06dbe
Module libgcrypt.so.20 with build-id db45f5d5e0f7af1e77324fea1885f974619ad268
Module libtasn1.so.6 with build-id ee3429ca5e94718aea4fe5249fc859e0cd88e4e9
Module libgnutls.so.30 with build-id 50f3a52ba3db67b822fd5888790238eb548b64aa
Module liblmdb.so with build-id 2b7a4c600c93825e729c1810a3d4a29e30cf55a1
Module librt.so.1 with build-id 75484da2d6f1515189eefa076e0a40328834cd16
Module libblkid.so.1 with build-id 023f6fa066e46c87041fac2d66df1069c901b015
Module libQt5QmlModels.so.5 with build-id 0caff8beb5f70b5cc77a2fd8644ef7476de7cf45
Module libKF5Syndication.so.5 with build-id 39d7e8b5bec58bc51660eee5390202407c285125
Module libKF5Package.so.5 with build-id 9492efb4542d5c57531a07c62991a149232b0a21
Module libKF5Attica.so.5 with build-id d57077e84f4ab3ca6b575a7eea021b8f24c88716
Module libwayland-client.so.0 with build-id 0a237f2fd096bada4ca381eec5d64474c4078be4
Module libQt5WaylandClient.so.5 with build-id 4f424ea126c05eeb7b071c67d7dad2a2b6a82481
Module libcrypto.so.1.1 with build-id 4c926b672d97886b123e03a008387aecf0786de4
Module libssl.so.1.1 with build-id 1024424ab33a3767da03f4fdb1fc1b02479f160f
Module libgssapi_krb5.so.2 with build-id e6e098ad51ce7bdd3dbe902d7b0f69a90f8a9e08
Module libKF5SonnetCore.so.5 with build-id d542d7fe1dbdb14323069c6b70ecc8b775592c24
Module libKF5SonnetUi.so.5 with build-id 8f3bbd53d25ac46395a5846f3cb5b7972527c8c9
Module libglib-2.0.so.0 with build-id bd949a4794ad959019499c6afcb8f416dcff9810
Module libzstd.so.1 with build-id ea8f70c7c6816cee97c9890081a80259ca44d397
Module libpcre2-16.so.0 with build-id 195fbccafbcff538ce13805ba687514fb614c5ed
Module libdl.so.2 with build-id 5abc547e7b0949f89f3c0e21ab0c8331a7440a8a
Module libicuuc.so.70 with build-id 2e245c2bf12f95fd8ab79b3a4be99524677cbd70
Module libicui18n.so.70 with build-id 95af755fca990df26753a7d720b8e3ae24270e42
Module libdouble-conversion.so.3 with build-id d162eb67b00f523a3f146b1077ae00fe04d5fb85
Module libsystemd.so.0 with build-id 6a2a26aa5fff87c1eb61137339bc55a53956c9ac
Module libmd4c.so.0 with build-id 2151dba72cdc9960097e6e960a58a2f03c8bb96e
Module libharfbuzz.so.0 with build-id 1d9dee49dd99162c3f83eb3259c3c88c6b4cd7fe
Module libz.so.1 with build-id 0c1459c56513efd5d53eb3868290e9afee6a6a26
Module libpng16.so.16 with build-id 2dc0bce07f199bf983c07a05fb95a6f4af83a9b3
Module libGL.so.1 with build-id 912ac4f37a9fa2d5abcf7a9088c9983cfe46f12a
Module libdbus-1.so.3 with build-id 74f2ab9c60512f3a93c932c3f627564d42e0b11e
Module libpulse-mainloop-glib.so.0 with build-id d9dc4a43a3739575dc1d789cc602d4e3a066979f
Module libpulse.so.0 with build-id 10bd0ce0cfbb9405cee189faa1830cf34cab61a8
Module libgcc_s.so.1 with build-id 7f8508bb914546ada778809b64b99d234337d835
Module libpthread.so.0 with build-id 07c8f95b4f3251d08550217ad8a1f31066229996
Module libxcb-keysyms.so.1 with build-id 333e5eb4075795f947c924a2085f17e2e2ae7147
Module libxcb.so.1 with build-id 0d1ef11740a5daad2ee331e812a51aa6574af222
Module libdbusmenu-qt5.so.2 with build-id 346cd54093968d3de9e61cc329e9512d248dce18
Module libXtst.so.6 with build-id 96411faea62997274e362f263e65082e601a787b
Module libQt5TextToSpeech.so.5 with build-id 99b56b543380180d6f5c8c984f01d80487672cff
Module libcanberra.so.0 with build-id 379ed64f9d1408a83806cd5d94dc5bb903765615
Module libKF5Archive.so.5 with build-id 1edf6dc1ca4d38f0ebf6113fb089778b93085676
Module libQt5Svg.so.5 with build-id 8032519f22f34473a8cfdae1d933f60042a40aa1
Module libQt5PrintSupport.so.5 with build-id 89ece42f40aab88fa952eb0a2f1534a8ad04f12b
Module libKF5GlobalAccel.so.5 with build-id 76523e2497f0431f013016b5230a674a9bb7aece
Module libKF5Auth.so.5 with build-id b9a7af1c6689fa1b21cf0d8150f3c5efe36d9d5b
Module libKF5Declarative.so.5 with build-id 83c0cde7ff07b1c9ec3f5142dd50076069949605
Module libKF5QuickAddons.so.5 with build-id fd00c054198847ab6d9e6c1142e512d53ec4cdbc
Module libQt5QuickWidgets.so.5 with build-id c88c2c5395de294aab4f94a23a2c7a4a717b177f
Module libplist-2.0.so.3 with build-id f16bdd42b3d750ba0a150d286248f5dc50cc76cb
Module libimobiledevice-1.0.so.6 with build-id bc258677480403cc2df4f0efcfc97e06af826ddc
Module libudev.so.1 with build-id e7bd18780bd5753c14f8561be78e4e78ae0266ee
Module libKF5BalooEngine.so.5 with build-id 776588aa8cb3fc2468c56401217a55fd105e4fd5
Module libX11.so.6 with build-id 5ba5798d193c0065014b8c6252a0678671c8d478
Module libmount.so.1 with build-id 00dfc43d6bddd183a4d8fa8508106cfd87159c62
Module libacl.so.1 with build-id 35319ea4baa70564deddffb113c0961002bc394c
Module libKF5AuthCore.so.5 with build-id d6c222c5566f4c7fc50695fdc36143a1b210bac0
Module libQt5X11Extras.so.5 with build-id e41614d2e35852f913bf00633d635cfbf5a90dce
Module ld-linux-x86-64.so.2 with build-id 040cc3dd10461562f177df39e3be2f3704258c3c
Module libQt5Qml.so.5 with build-id 212307572d9d92b0cb4d236fda1fe3f354b01093
Module libQt5Quick.so.5 with build-id 2dca83de5d1ef02b8ef03fef5f18b531a2457e42
Module libKF5NewStuffCore.so.5 with build-id 5e55979aaf8313817134f79850baeb37957f32c5
Module libKF5GuiAddons.so.5 with build-id 3f8ebbfcec6b33d97aeb5234522e8d0a0b4c6b22
Module libQt5Network.so.5 with build-id 5d5febbf1fc5bc522602a1f1751a9931fc05b78e
Module libm.so.6 with build-id 2b8fd1f869ecab4e0b55e92f2f151897f6818acf
Module libKF5FileMetaData.so.3 with build-id aaa5cb02e97aed380478515237f0cb8b0278403e
Module libKF5Codecs.so.5 with build-id 72a2a63e7416a55d354a4aff199a3b6a0bf03e3c
Module libKF5TextWidgets.so.5 with build-id 6cdbd7d02a73649e940a9d1808debf0cf12799b1
Module libdolphinvcs.so.5 with build-id 683e7d95debb4dc95855c0753f4762913eb625a8
Module libc.so.6 with build-id 4b406737057708c0e4c642345a703c47a61c73dc
Module libstdc++.so.6 with build-id 9b5eeeb149bf3c4efe787fb398b44f00507aec87
Module libQt5Core.so.5 with build-id b1ac453e8b3748ea2e73b0c967572c7554cb6aa7
Module libQt5Gui.so.5 with build-id 5b8c60ab05ea0f4e00a7562f3bdc2cbcbe4a9208
Module libQt5Widgets.so.5 with build-id 81df494250e82a872761420306c3f308d05b935b
Module libKUserFeedbackCore.so.1 with build-id 495f85a1827b1732a0dfa93532a4101dafc11ac1
Module libKUserFeedbackWidgets.so.1 with build-id c84cc678a433183b4554d4c06ff5f523616a7a8f
Module libQt5DBus.so.5 with build-id 2e76850f86958307f5d749c780f9f2587e14c9ff
Module libKF5Activities.so.5 with build-id b500ac9d9db8af60bf0d5223c830887b1503612c
Module libphonon4qt5.so.4 with build-id 24dc1b28326d22ceb9f214f98df5a007cb82e9f9
Module libKF5CoreAddons.so.5 with build-id 42164ce0f5987f623e5285b1ecd65ceeb0bfce2e
Module libKF5WindowSystem.so.5 with build-id 10d0f0de888eb46a1fddcb91ef4ea4dcb3f117f2
Module libKF5ConfigCore.so.5 with build-id c58e94e4adb85b1097f065447c2af4cc585906ff
Module libKF5Notifications.so.5 with build-id cf776e57e2e8be19d6ccaec217f91db22751d115
Module libKF5DBusAddons.so.5 with build-id 2d3ca02cc76d878e00280b05ec8728c677dbd6b1
Module libQt5Xml.so.5 with build-id 6cdf028838bdf9341b52d534475cd2ca774b4f00
Module libKF5ConfigGui.so.5 with build-id 82585efd4a6c6078d45ba753f17a9a7e3f3e45ff
Module libKF5WidgetsAddons.so.5 with build-id 1ecb6c8da7ea562d7aff1acbdd19c74a1f9d393f
Module libKF5I18n.so.5 with build-id 141662ef754d2d992a1a32082b2f2ddb830676b8
Module libKF5ConfigWidgets.so.5 with build-id 2152b99ad82c9be1096abfc4be7f9cc431114dd4
Module libKF5ItemViews.so.5 with build-id e4757fd171ae6c4275382d433ed3bb697638686e
Module libKF5IconThemes.so.5 with build-id a96c9d2a2b3585355c7efbb93eb6b74ffc9813fd
Module libKF5XmlGui.so.5 with build-id 3d58ac806211e72b35b32ed884b9b610fad1da41
Module libKF5Service.so.5 with build-id d1b849804483cf5e5d045fb60432203206c2ed38
Module libKF5KCMUtils.so.5 with build-id 95b6c83cb3ee8f37709f74f141cdb655dd862ce8
Module libKF5Solid.so.5 with build-id 662e79a4f3becf542fa4cda8ada6723bb78295e1
Module libKF5Baloo.so.5 with build-id e1119a40f6eccbe4bde6908e4cc85a5cdf75e44c
Module libKF5Crash.so.5 with build-id bb5c5cd905cfdd34bd246bed989f3989ec8bde08
Module libKF5KIOCore.so.5 with build-id 97b93006b6a35dead8be176937e30c1b75640ac9
Module libKF5BalooWidgets.so.5 with build-id c05c62f3e3073a08ae55f99f8f44b40b76990f1e
Module libKF5Completion.so.5 with build-id 1a0549c505fa36da417ea35e97883267ef76177e
Module libKF5JobWidgets.so.5 with build-id 0690aa6a286cc9e7f6122343c79faab444957bc4
Module libKF5KIOGui.so.5 with build-id 14950f98ef994c6b071d1444459d0ce69c79b008
Module libKF5KIOWidgets.so.5 with build-id 5ada62a44b5f4d375c9911d0cf27d836f966ee3c
Module libKF5Parts.so.5 with build-id e4abd82c625da138b87ea69b7afe2d930bef06e6
Module libKF5NewStuff.so.5 with build-id cd37d212c3e19fb1e79884b37a647d73f8b4dc73
Module libKF5Bookmarks.so.5 with build-id df102985b23ad32db0b0dd1eb13541377ac4ebeb
Module libKF5KIOFileWidgets.so.5 with build-id f4885b022b1e5569aa1ff09c47eb2c9480e54154
Module libdolphinprivate.so.5 with build-id 058a4d98f43c79b550a1600072410b06870209be
Module dolphin with build-id 7f7a77853cc0ebeecdfc05dfc918c8e611e4c9d2
Stack trace of thread 49107:
#0 0x00007f0ead820d22 raise (libc.so.6 + 0x3cd22)
#1 0x00007f0ead80a862 abort (libc.so.6 + 0x26862)
#2 0x00007f0eadc65ee4 _ZNK14QMessageLogger5fatalEPKcz (libQt5Core.so.5 + 0x9fee4)
#3 0x00007f0eae2209d5 _ZN22QGuiApplicationPrivate25createPlatformIntegrationEv (libQt5Gui.so.5 + 0x13a9d5)
#4 0x00007f0eae220ff9 _ZN22QGuiApplicationPrivate21createEventDispatcherEv (libQt5Gui.so.5 + 0x13aff9)
#5 0x00007f0eade57c5b _ZN23QCoreApplicationPrivate4initEv (libQt5Core.so.5 + 0x291c5b)
#6 0x00007f0eae2210b7 _ZN22QGuiApplicationPrivate4initEv (libQt5Gui.so.5 + 0x13b0b7)
#7 0x00007f0eae8c337e _ZN19QApplicationPrivate4initEv (libQt5Widgets.so.5 + 0x17637e)
#8 0x000055ca27cbe616 n/a (dolphin + 0x49616)
#9 0x00007f0ead80bb25 __libc_start_main (libc.so.6 + 0x27b25)
#10 0x000055ca27cc498e n/a (dolphin + 0x4f98e)
ELF object binary architecture: AMD x86-64
░░ Subject: Process 49107 (dolphin) dumped core
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ Documentation: man:core(5)
░░
░░ Process 49107 (dolphin) crashed and dumped core.
░░
░░ This usually indicates a programming error in the crashing program and
░░ should be reported to its vendor as a bug.
May 13 00:24:09 steamdeck systemd[1]: systemd-coredump@7-49109-0.service: Deactivated successfully.
░░ Subject: Unit succeeded
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ The unit systemd-coredump@7-49109-0.service has successfully entered the 'dead' state.
May 13 00:24:12 steamdeck steam[48160]: Local Device Found
May 13 00:24:12 steamdeck steam[48160]: type: 28de 1205
May 13 00:24:12 steamdeck steam[48160]: path: /dev/hidraw2
May 13 00:24:12 steamdeck steam[48160]: serial_number: 123456789ABCDEF - 1
May 13 00:24:12 steamdeck steam[48160]: Manufacturer: Valve Software
May 13 00:24:12 steamdeck steam[48160]: Product: Steam Controller
May 13 00:24:12 steamdeck steam[48160]: Release: 100
May 13 00:24:12 steamdeck steam[48160]: Interface: 0
May 13 00:24:12 steamdeck steam[48160]: Local Device Found
May 13 00:24:12 steamdeck steam[48160]: type: 28de 1205
May 13 00:24:12 steamdeck steam[48160]: path: /dev/hidraw1
May 13 00:24:12 steamdeck steam[48160]: serial_number: 123456789ABCDEF - 1
May 13 00:24:12 steamdeck steam[48160]: Manufacturer: Valve Software
May 13 00:24:12 steamdeck steam[48160]: Product: Steam Controller
May 13 00:24:12 steamdeck steam[48160]: Release: 100
May 13 00:24:12 steamdeck steam[48160]: Interface: 1
May 13 00:24:13 steamdeck org_kde_powerdevil[47822]: QObject::disconnect: Unexpected nullptr parameter
May 13 00:24:13 steamdeck org_kde_powerdevil[47822]: QObject::disconnect: Unexpected nullptr parameter
I have the same issue and the following log (using
journalctl -xef
) is being produced when a flatpak app is trying to open dolphin:May 13 00:24:09 steamdeck xdg-desktop-portal[49107]: Authorization required, but no authorization protocol specified May 13 00:24:09 steamdeck dolphin[49107]: qt.qpa.xcb: could not connect to display :0 May 13 00:24:09 steamdeck dolphin[49107]: qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was > May 13 00:24:13 steamdeck org_kde_powerdevil[47822]: QObject::disconnect: Unexpected nullptr parameter
Thanks for the logs. It looks like the xauth file is missing or the variable is unset (if you open a terminal and run e..g XAUTHORITY="" dolphin
you should see the same error).
Can you tell me the exact flatpak app and the steps you followed to hit this error?
Other things that you (and others having problems) can try:
gdbus call --session --dest org.freedesktop.portal.Desktop --object-path /org/freedesktop/portal/desktop --method org.freedesktop.portal.FileChooser.OpenFile '' 'Select file' '[]'
gdbus call --session --dest org.freedesktop.portal.Desktop --object-path /org/freedesktop/portal/desktop --method org.freedesktop.portal.OpenURI.OpenURI '' https://github.com '[]'
dbus-monitor
and see what happens there when you try to open a file chooser or click a link from a flatpak app.ps ax | grep xdg-
. Are the portal processes running? Which ones?systemctl --user status xdg-desktop-portal
, does it show anything strange?cat /proc/PID/environ | tr '\0' '\n'
where PID is the process id from xdg-desktop-portal
. Is the XAUTHORITY
variable set?Alright. I think I can reproduce it now.
systemctl restart --user xdg-desktop-portal
to fix thisTo answer your questions (I think the last one is the cause of the issue):
Can you tell me the exact flatpak app and the steps you followed to hit this error?
For example Yuzu.
if you open a terminal and run e..g
XAUTHORITY="" dolphin
you should see the same error
Yes.
Try to open a file chooser:
gdbus call --session --dest org.freedesktop.portal.Desktop --object-path /org/freedesktop/portal/desktop --method org.freedesktop.portal.FileChooser.OpenFile '' 'Select file' '[]'
That works
Try to open a link:
gdbus call --session --dest org.freedesktop.portal.Desktop --object-path /org/freedesktop/portal/desktop --method org.freedesktop.portal.OpenURI.OpenURI '' https://github.com '[]'
Nothing happens. No logs in stdout/stderr and exit code is 0
but journalctl
gives me this single line:
May 14 21:02:45 steamdeck xdg-desktop-portal[65640]: Invalid MIT-MAGIC-COOKIE-1 keyError: cannot open display: :0
ps ax | grep xdg-
. Are the portal processes running? Which ones?
$ ps ax | grep xdg-
2060 ? Ssl 0:11 /usr/lib/xdg-document-portal
2063 ? Ssl 0:00 /usr/lib/xdg-permission-store
2104 ? Ssl 0:00 /usr/lib/xdg-desktop-portal
63775 ? S 0:00 bwrap --args 38 xdg-dbus-proxy --args=40
63776 ? Sl 0:00 xdg-dbus-proxy --args=40
63816 ? Ssl 0:01 /usr/lib/xdg-desktop-portal-gtk
63843 ? Sl 0:00 /usr/lib/xdg-desktop-portal-kde
65679 pts/0 S+ 0:00 grep --color=auto xdg-
systemctl --user status xdg-desktop-portal
, does it show anything strange?
cat /proc/PID/environ | tr '\0' '\n'
where PID is the process id fromxdg-desktop-portal
. Is theXAUTHORITY
variable set?
Yes but it's different than the one from echo $XAUTHORITY
.
2. Go to Desktop Mode Flatpak Apps can actually open Dolphin 3. Return to Gaming Mode 4. Go back to Desktop Mode Flatpak Apps can't open Dolphin anymore 5. Reboot or `systemctl restart --user xdg-desktop-portal` to fix this
[...]
cat /proc/PID/environ | tr '\0' '\n'
where PID is the process id fromxdg-desktop-portal
. Is theXAUTHORITY
variable set?Yes but it's different than the one from
echo $XAUTHORITY
.
Ok, we found the problem then! If you restart the desktop session the xauth cookie changes but the xdg-desktop-portal process stays alive and keeps the old one.
This should fix the problem: https://github.com/flatpak/xdg-desktop-portal/commit/9de515017f3273b7ec6adf458e8d10dd2b61bb51
If you want to give it a try before the fix is available in SteamOS then open a terminal, type systemctl --user edit xdg-desktop-portal
and add these two lines:
### Anything between here and the comment below will become the new contents of the file
[Unit]
PartOf=graphical-session.target
### Lines below this comment will be discarded
(that creates $HOME/.config/systemd/user/xdg-desktop-portal.service.d/override.conf
)
If you are still having issues after this let me know. Thanks everyone!
I did the workaround as described here but still have the Issue that I cant open the File Explorer or Web Browser from inside of Flatpak App if I switch to the Desktop a Second Time.
I reboot and switch to Desktop: It works. I switch from Desktop to DeckUI and then to Desktop again: Does not work.
Only a reboot or a restart of xdg-desktop-portal gets it running again.
@NightHammer1000 can you provide the following info?
1) Value of BUILD_ID
from /etc/os-release
2) Full output of systemctl --user cat xdg-desktop-portal
3) The Flatpak app that is causing problems and the exact steps you are following to open a file explorer or web browser
Thanks!
1.) BUILD_ID=20220526.1000
2.)
# /usr/lib/systemd/user/xdg-desktop-portal.service
[Unit]
Description=Portal service
PartOf=graphical-session.target
[Service]
Type=dbus
BusName=org.freedesktop.portal.Desktop
ExecStart=/usr/lib/xdg-desktop-portal
Slice=session.slice
# /home/deck/.config/systemd/user/xdg-desktop-portal.service.d/override.conf
[Unit]
PartOf=graphical-session.target
3.) All the flatpaks. ATLauncher, Lutris, Heroic, Bottles, PCSX2, Dolphin and so on. Every Button that should open a File Dialog, File Manager or the Web Browser simply does nothing.
ATManager for example. Downloading an Instance that needs you to Manually Download Mods does not work because you cant open the Webpage throug the ATLauncher Flatpak. Clicking the "Open Folder" Button of a Instance does simply nothing. After a reboot everything works again until I enter the Desktop a second time.
Output of systemctl --user status xdg-desktop-portal
:
Jun 26 23:11:24 steamdeck systemd[1028]: Starting Portal service...
Jun 26 23:11:24 steamdeck xdg-desktop-por[9824]: Failed to create settings proxy: Error calling StartServiceByName for org.freedesktop.impl.portal.desktop.>
Jun 26 23:11:24 steamdeck xdg-desktop-por[9824]: No skeleton to export
Jun 26 23:11:25 steamdeck systemd[1028]: Started Portal service.
Ok I just gave Lutris a quick try. After it is installed I run it, click on the + icon and then "Scan a folder for games". The KDE file selector appears correctly and I see that the portal is running:
xdg-desktop-portal-kde[3573]: xdp-kde-file-chooser: OpenFile called with parameters:
xdg-desktop-portal-kde[3573]: xdp-kde-file-chooser: handle: "/org/freedesktop/portal/desktop/request/1_134/gtk1708728409"
xdg-desktop-portal-kde[3573]: xdp-kde-file-chooser: parent_window: ""
xdg-desktop-portal-kde[3573]: xdp-kde-file-chooser: title: "Select folder to scan"
Then I close Lutris and restart the session:
systemd[851]: Stopping Portal service...
systemd[851]: Stopped Portal service.
xdg-desktop-portal-kde[3573]: The X11 connection broke (error 1). Did the X11 server die?
Then I open Lutris again, follow the same steps and the file dialog appears correctly.
I also tried PCSX2, CDVD -> Iso Selector -> Browse and it also works fine, in this case it doesn't even seem to be using any portal to browse files.
Tomorrow I'll try again, other apps and with more time.
I'm interested in this line of yours:
Jun 26 23:11:24 steamdeck xdg-desktop-por[9824]: Failed to create settings proxy: Error calling StartServiceByName for org.freedesktop.impl.portal.desktop.
but it is truncated in your logs, can you get the complete output?
Error calling StartServiceByName for org.freedesktop.impl.portal.desktop.kde: Process org.freedesktop.impl.portal.desktop.kde received signal 6
Its more often a call to the File Browser and Web Browser that does not work. That the Filepicker stops working happens only sometimes. Best to try it with ATLauncher. It has Buttons to their Social Network Accounts and a "Open Folder" Button in the Programm. It easy to test with those.
I was unable to Reproduce it 4 Times in a row now. 4 Times switching to DeckUI and back to Desktop. No Issue. On the 5th try it stopped working again. So this is something sporatical. Which makes it even worst. Hope someone can fix this. Flatpak really starts to get on my nerve.
I still cannot reproduce the problem. Let's try this:
/usr/lib/xdg-desktop-portal -v
(leave the terminal open)(I was by the way using the latest image from the main branch, 20220624.1001
)
I tried around 10 Times now with that Methode. Works every time.
I added the -v argument to the Service File itself and tried again.
After 5 Times I had the Issue again. But was not able to capture the output of systemctl status because the Service restarted.
It was a Crash. From what I could read a Issue with opening DISPLAY:0
This Reminds me of a Issue with Wine I have very Rarely. Non of my Wine Applications will start in Desktop until I reboot. Also failing with a pointer to DISPLAY:0 not being availible.
Will try further to catch the output if it happens again.
Looks like the same thing Maykin-99 posted above.
The latest beta images come with the fixed portal packages, you can remove $HOME/.config/systemd/user/xdg-desktop-portal.service.d/override.conf
if you had created it.
@NightHammer1000 I still haven't been able to reproduce your problem, hopefully next week!
I'm also experiencing issues clicking into links from within flatpaks like Heroic and BoilR
Caught it a few times again. Its always these kind of Message:
Error calling StartServiceByName for org.freedesktop.impl.portal.desktop.kde: Process org.freedesktop.impl.portal.desktop.kde received signal 6
A restart of the Services fixes the Issue.
The problem from the last log that you posted is this one:
xdg-desktop-portal[42143]: Invalid MIT-MAGIC-COOKIE-1 key
which seems to be the same one described in a previous comment here: https://github.com/ValveSoftware/SteamOS/issues/775#issuecomment-1126816887 and that is that the portal process has an invalid cookie for the X server. But that shouldn't happen because after the fix the old portal should be restarted when you leave the desktop session and the new one should have the correct cookie.
Signal 6 is SIGABRT
, probably the kde portal process aborts after failing to connect to the X server for the same reason.
Does coredumpctl list
show something? Can you find a core dump from that process, and get a stack trace?
Another alternative is: try to see if the kde portal process is already running before you run Methode, Lutris, or whatever, connect to it with gdb -p <pid>
, type continue
on the prompt and then trigger the bug and see if it crashes.
Hi,
I've been trying to reproduce this problem without success.
Here are my exact steps:
I did this a lot of times in a row, using the latest beta (f20220707.100). I didn't need to apply the solution from this comment because this beta already comes with the fix.
In addition to ATLauncher I also tried Heroic ("External log in" -> "Epic Store here") and Unity Hub ("Sign in").
Everything worked fine in all cases.
Still happend quite alot. But I don't have a possibility to test anymore because I switched to Windows.
The only thing I can say is that every single Time I had this in the systemd log:
Error calling StartServiceByName for org.freedesktop.impl.portal.desktop.kde: Process org.freedesktop.impl.portal.desktop.kde received signal 6
The latest stable image comes with the fixed xdg-desktop-portal
package.
I still haven't been able to reproduce the problem that people are experiencing with Heroic, ATLauncher and others, is this still happening with the latest stable image?
Thanks!
Havent had it for a while now. I am mostly on the main channel. I think this somehow fixed itself.
Well, there's been many more changes to the image so perhaps something else solved this problem.
If no one else can reproduce it I'd close this issue, we can reopen it or open a new one if it happens again.
I am currently facing this issue. I have to manaully stop the desktop portal and run KDE by itself and then it works. Currently on preview. I can open external links after doing this.
(130)(deck@steamdeck ~)$ systemctl --user stop xdg-desktop-portal.service
(deck@steamdeck ~)$ killall xdg-desktop-portal-kde
(deck@steamdeck ~)$ killall xdg-document-portal
(deck@steamdeck ~)$ /usr/lib/xdg-desktop-portal-kde
xdp-kde: Desktop portal registered successfully
(deck@steamdeck ~)$ pacman -Q xdg-desktop-portal xdg-desktop-portal-kde
xdg-desktop-portal 1.12.1-1.1
xdg-desktop-portal-kde 5.23.5-1
EDIT: What prompted me to try stopping the main service and doing it manually was getting this from xdg-desktop-portal in journalctl
Aug 24 17:39:44 steamdeck xdg-desktop-por[6435]: Failed to get application states: GDBus.Error:org.freedesktop.DBus.Error.Spawn.ChildExited: Process org.freedesktop.impl.portal.desktop.kde exited with status 1
No other info sadly.
Portals are started automatically when needed so the last step is probably not necessary.
Anyway, I haven't checked this in a while, I still haven't been able to reproduce the problem using the steps that I described above :-(
If you find another way to do it please let me know, the main issue for me at the moment is that I cannot reproduce the problem.
I ran into what I think is the same issue, but through slightly different steps. I'm trying to use Pegasus to launch some emulators, where the emulator is also a flatpak. I have a metadata.pegasus.txt
file like this:
collection: test
launch: flatpak run org.polymc.PolyMC
extension: txt
This will pretty much just run flatpak-spawn --host flatpak run org.polymc.PolyMC
inside of the Pegasus container.
(PolyMC is just what I have at hand, this should work with anything else.)
If I do:
PolyMC successfully starts.
But if I:
Every subsequent attempt to start PolyMC will now fail with Invalid MIT-MAGIC-COOKIE-1 keyqt.qpa.xcb: could not connect to display :99.0
And trying to open Dolphin from any other app doesn't work either.
Well, I did more testing, and now I'm also not sure what triggers the problem exactly. It looks like just doing anything in gaming mode for a longer period of time messes up the cookie. Weirdly, after messing it up now, I did manage to launch Dolphin from other apps, but the cookie is definitely wrong.
(1)(deck@steamdeck ~)$ echo $XAUTHORITY
/run/user/1000/097b256e-620b-49c2-a93b-32b6619d077f
(deck@steamdeck ~)$ flatpak enter org.pegasus_frontend.Pegasus bash
bash-5.1$ flatpak-spawn --host /bin/bash -c 'echo $XAUTHORITY'
/run/user/1000/a79e8555-f5df-43b9-bff4-7f988822c4f9
bash-5.1$ flatpak-spawn --host flatpak run org.polymc.PolyMC
Authorization required, but no authorization protocol specified
qt.qpa.xcb: could not connect to display :99.0
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.
Its consistently broken now since the last two Updates on the Main Branch. I have to restart the portal service manually each time I switch to Desktop.
I ran into what I think is the same issue, but through slightly different steps. I'm trying to use Pegasus to launch some emulators
Hi, thanks for this information. I can reproduce that problem easily with these steps:
The problem here is that when you go back to the gamescope mode the flatpak-session-helper
process stays alive and keeps the old cookie. This can be fixed if you kill the helper. I haven't seen any problem with the portal process itself.
Something like this probably solves the problem (but editing flatpak-session-helper
instead, of course), but I need to test this a bit more.
This issue is happening to me again after the last SteamOS update on my deck. I don't even need to toggle between gamescope and desktop and back - the first switch to desktop and no links open in anything. Restarting xdg-desktop-portal
fixes it right away.
Can you try doing this for flatpak-session-helper
and flatpak-portal
and see if it makes a difference?
Can you try doing this for
flatpak-session-helper
andflatpak-portal
and see if it makes a difference?
Just doing it for flatpak-session-helper and flatpak-portal didn't seem to work
Do I need to also try the xdg-desktop-portal as mentioned in your earlier comment?
EDIT: Tried all three. Seemingly no change after a fresh reboot and loading into desktop.
(deck@steamdeck ~)$ ps aux | grep xdg
deck 1734 0.1 0.1 625252 15344 ? Ssl 14:05 0:00 /usr/lib/xdg-desktop-portal
deck 1744 0.0 0.0 453864 6060 ? Ssl 14:05 0:00 /usr/lib/xdg-document-portal
deck 1748 0.0 0.0 232008 6048 ? Ssl 14:05 0:00 /usr/lib/xdg-permission-store
deck 2737 0.2 0.3 281740 46920 ? Sl 14:06 0:00 /usr/lib/xdg-desktop-portal-kde
deck 3136 0.0 0.0 2464 716 ? S 14:06 0:00 bwrap --args 40 xdg-dbus-proxy --args=43
deck 3137 0.0 0.0 155052 4968 ? Sl 14:06 0:00 xdg-dbus-proxy --args=43
Can confirm. Need to manually restart xdg-desktop-portal every time I switch to desktop. The Changes to the three Services does nothing.
@NightHammer1000 are you running any non-Steam games when in game mode, before switching to desktop? If you are able to reproduce it reliably I would appreciate a detailed list of steps, e.g.
etc.
Also, if you have ssh enabled, can try to log in before you switch to desktop and see if xdg-desktop-portal
(or any other portal) is already running?
I do nothing Special. I boot. I switch to Desktop and everything that requires xdg-desktop-portal does not work.
I noticed it especially with Lutris over the last few days while trying to start an .exe inside a games Prefix. The Selection Window for the .exe just never opens unless I restart xdg-desktop-portal first.
I do nothing Special. I boot. I switch to Desktop and everything that requires xdg-desktop-portal does not work.
I noticed it especially with Lutris over the last few days while trying to start an .exe inside a games Prefix. The Selection Window for the .exe just never opens unless I restart xdg-desktop-portal first.
Same here too
@bertogg
Edit: this is on the beta channel, OS version: 3.3.1/build: 20220810.100 ; steam version 1663718922
With the help of the nheko community I've just been troubleshooting this problem as well (links not opening from within flatpak apps + flatpak firefox not being able to open it's downloaded files)
Also, if you have ssh enabled, can try to log in before you switch to desktop and see if xdg-desktop-portal (or any other portal) is already running?
Yes, the portal gets started before switching to desktop mode. This results in XAUTHORITY
env var not being set for the process and the failure modes described above.
Stopping the portal once after reaching the desktop mode (it will get auto-restarted again when needed) makes everything work.
I don't think the portal serves any function in game mode? So startup should probably be inhibited until graphical-session is running. (then the stop from PartOf
will work)
I'm currently struggling to put this into systemd terms though.
Meanwhile I implemented a somewhat hacky workaround on my deck:
$ cat ~/.config/systemd/user/portal-restart.service
[Unit]
Description=Restart xdg-desktop-portal to fix unset XAUTHORITY
After=plasma-workspace@x11.target
[Service]
Type=oneshot
ExecStart=/usr/bin/systemctl --user restart xdg-desktop-portal.service
[Install]
WantedBy=graphical-session.target
And then systemctl --user enable portal-restart.service
This ensures the portal is restarted (stopping would work as well) when we reach the desktop, so it picks up the XAUTHORITY
env var.
Your system information
Please describe your issue in as much detail as possible:
I expect to be able, for example, to drag and drop files into flatpaks and open links (to browser) from flatpak apps.
Steps for reproducing this issue:
Solution
Provide
xdg-desktop-portal-gtk
by default, as many apps use it nevertheless the current DE, to avoid manual installation by the usersReferences
https://www.reddit.com/r/SteamDeck/comments/u2wofv/steamos_doesnt_come_with_xdgdesktopportalgtk/ https://twitter.com/MComandon/status/1521738318358011904