-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with xdg-desktop-portal #44
Comments
And yes, the panel uses it for choosing the backend, although there are only 2 Wayland backends for now.
Join the club ;) See lxqt/lxqt#2586. I use this in a startup script for my 3 Wayland sessions: if ! pidof "xdg-desktop-portal-lxqt" 1 > /dev/null; then
systemctl --user restart xdg-desktop-portal.service &
fi For me, LXQt portal is started correctly only in Labwc (although I haven't checked it since its previous version, working under LXQt+kwin_wayland). |
Thanks, I tried to search for a separator but found nothing. So I don't need an override, I will just add what you did. And I guess I will file some issues for a few apps I am using that don't seem to handle |
Let's reopen this with a new title — a Discussion page isn't enough for keeping track of it. |
Can this be related to the lxqt/xdg-desktop-portal-lxqt#47 I filed? IMO it is much nicer to have a systemd and user service that can be controlled. |
I doubt it. My questions:
|
Well, while you mentioned the X11 session, I first upgraded to 2.1.0, after using it for years on Gentoo and it all just worked. Gentoo still doesn't have This is all off-topic for this issue, if I can collect something that makes sense I will open one. I like to collect and have |
That's very strange because |
I don't have any display manager, I use |
My wild guess is that, for some reason, Wayland is running when you log into an X11 session, and X11 is running when you log into a Wayland session. |
Here I use SDDM and have no issue about switching between three Wayland sessions and the X11 session. I use SDDM's default settings. EDIT: SDDM is not bug-free, but most of the time (99%), it lets me change the session without problem. |
I will try to find out more about this. I don't like that sometimes if I wait it works. What is it waiting for, will try to get more info. I prefer to have |
When you say that, after logging into LXQt+Labwc, your problem disappears, it means that now lxqt-session ends the session correctly on logging out, such that you could log into LXQt+X11 without problem — and the same there. So, something should be wrong before logging into an LXQt session |
Very strange is that something is affecting the X11 session, that never happened before. I once saw for X session in logs, something like |
I will try to get more info, but I will need to reboot several times, when I find the time I will do it. |
X11 isn't running then. That confirms my guess. |
Well, X is running and is showing the black screen (until I |
I had a look at my config dir and I've no config file for portals at all in my home... |
It isn't needed anymore, after lxqt/xdg-desktop-portal-lxqt@2f26908. I don't have it either. |
Ok, I have much more info, I have found what is going on. It is related to Attached are the collected logs, they are similar to the X session, but the Wayland session doesn't have so much noise so is easier to debug. I have this in my script, From the DBus log, and at that time when the panel was waiting to start I could see that it requested something about portals. I also noticed that sometimes when I Now I need to debug more what is going on with |
Some more info. I added systemd service for Anyway, there are more issues, like flatpak/xdg-desktop-portal#1032, or flatpak/xdg-desktop-portal#801, then there is https://gitlab.gnome.org/GNOME/xdg-desktop-portal-gnome/-/issues/74, and also, what I experience currently, when I kill the X or W session, the |
Yes. These are my installed
|
BTW, this problem doesn't seem to happen for me with However, I prefer to keep that simple workaround, because the problem may be random. |
To me it looks like you are even not allowed anymore to have both Gnome and KDE on the same system because both come with XDP, there are a gazillion issues if you dare to have both. This is just silly, but let's give it some time. |
I have LXQt, KDE, GNOME and Enlightenment on my old laptop, and there's no problem. On this one (the laptop I use), I only have LXQt and KDE. |
I only started having problems when I wanted to try the Wayland session and I installed a couple of Flatpak apps, which implies you must have all that portal stuff etc. Everything was boring for years up until I wanted to try new XDG "standards". |
Frankly, I disliked the idea of "portal" before, because it caused troubles for me in X11, a year ago. However, it works fine now, under both Wayland and X11. My theory is that there was a transition period, when things didn't work properly. As for Flatpak, I avoid it like the plague ;) |
The
startlxqtwayland
script setsXDG_CURRENT_DESKTOP="LXQt:$COMPOSITOR:wlroots"
, in my case compositor islabwc
. Does:
mean something or this is just a custom thing to allow you to initialize the right backend? I think that is what broke portals loading in my case for the Wayland session as they all haveUseIn
, i.e.UseIn=LXQt
.I used the
systemctl --user edit xdg-desktop-portal.service
and I override this:And I have this in
~/.config/xdg-desktop-portal/portals.conf
:So now the situation is better, but I still have to do
systemctl --user restart xdg-desktop-portal
once before I have all the portals loaded, the service is initially started but without any portal implementation loaded.The text was updated successfully, but these errors were encountered: