You are not logged in.
If I start gnome by typing
XDG_SESSION_TYPE=wayland dbus-run-session gnome-session, then every single app will start fast in gnome. However, there is one problem: if I start gnome-terminal after launching gnome from the bare console, it will start fast, but if I click on Preferences in gnome-terminal, I will have to wait for a long time for the Preferences window to appear. Journalctl shows me this:
Jul 23 07:03:28 fedora systemd[1263]: Started xdg-document-portal.service - flatpak document portal service.
Jul 23 07:03:28 fedora xdg-document-portal[2738]: fusermount3: failed to access mountpoint /run/user/1000/doc: Permission denied
Jul 23 07:03:28 fedora xdg-document-portal[2726]: error: fuse init failed: Can't mount path /run/user/1000/doc
Jul 23 07:03:28 fedora systemd[1263]: xdg-document-portal.service: Main process exited, code=exited, status=6/NOTCONFIGURED
Jul 23 07:03:28 fedora systemd[1263]: xdg-document-portal.service: Failed with result 'exit-code'.
Jul 23 07:03:28 fedora systemd[1263]: graphical-session.target - Current graphical user session is inactive.
Jul 23 07:03:28 fedora systemd[1263]: Dependency failed for xdg-desktop-portal-gnome.service - Portal service (GNOME implementation).
Jul 23 07:03:28 fedora systemd[1263]: xdg-desktop-portal-gnome.service: Job xdg-desktop-portal-gnome.service/start failed with result 'dependency'.
Jul 23 07:03:28 fedora systemd[1263]: graphical-session.target - Current graphical user session is inactive.
Jul 23 07:03:28 fedora systemd[1263]: Dependency failed for xdg-desktop-portal-gnome.service - Portal service (GNOME implementation).
Jul 23 07:03:28 fedora systemd[1263]: xdg-desktop-portal-gnome.service: Job xdg-desktop-portal-gnome.service/start failed with result 'dependency'.
Jul 23 07:03:28 fedora systemd[1263]: Starting xdg-desktop-portal-gtk.service - Portal service (GTK/GNOME implementation)...
Jul 23 07:03:28 fedora systemd[1263]: Started dbus-:1.11-org.a11y.atspi.Registry@0.service.
Jul 23 07:03:28 fedora systemd[1263]: Started xdg-desktop-portal-gtk.service - Portal service (GTK/GNOME implementation).
Jul 23 07:03:28 fedora systemd[1263]: graphical-session.target - Current graphical user session is inactive.
Jul 23 07:03:28 fedora systemd[1263]: Dependency failed for xdg-desktop-portal-gnome.service - Portal service (GNOME implementation).
Jul 23 07:03:28 fedora systemd[1263]: xdg-desktop-portal-gnome.service: Job xdg-desktop-portal-gnome.service/start failed with result 'dependency'.
Jul 23 07:03:28 fedora at-spi2-registryd[2747]: SpiRegistry daemon is running with well-known name - org.a11y.atspi.Registry
Jul 23 07:03:28 fedora systemd[1263]: graphical-session.target - Current graphical user session is inactive.
Jul 23 07:03:28 fedora systemd[1263]: Dependency failed for xdg-desktop-portal-gnome.service - Portal service (GNOME implementation).
Jul 23 07:03:28 fedora systemd[1263]: xdg-desktop-portal-gnome.service: Job xdg-desktop-portal-gnome.service/start failed with result 'dependency'.
Jul 23 07:03:28 fedora systemd[1263]: graphical-session.target - Current graphical user session is inactive.
Jul 23 07:03:28 fedora systemd[1263]: Dependency failed for xdg-desktop-portal-gnome.service - Portal service (GNOME implementation).
Jul 23 07:03:28 fedora systemd[1263]: xdg-desktop-portal-gnome.service: Job xdg-desktop-portal-gnome.service/start failed with result 'dependency'.
Jul 23 07:03:28 fedora systemd[1263]: graphical-session.target - Current graphical user session is inactive.
Jul 23 07:03:28 fedora systemd[1263]: Dependency failed for xdg-desktop-portal-gnome.service - Portal service (GNOME implementation).
Jul 23 07:03:28 fedora systemd[1263]: xdg-desktop-portal-gnome.service: Job xdg-desktop-portal-gnome.service/start failed with result 'dependency'.
Jul 23 07:03:28 fedora systemd[1263]: xdg-desktop-portal-wlr.service - Portal service (wlroots implementation) was skipped because of an unmet condition check (ConditionEnvironment=WAYLAND_DISPLAY).
Jul 23 07:03:28 fedora systemd[1263]: graphical-session.target - Current graphical user session is inactive.
Jul 23 07:03:28 fedora systemd[1263]: Dependency failed for xdg-desktop-portal-gnome.service - Portal service (GNOME implementation).
Jul 23 07:03:28 fedora systemd[1263]: xdg-desktop-portal-gnome.service: Job xdg-desktop-portal-gnome.service/start failed with result 'dependency'.
Jul 23 07:03:28 fedora systemd[1263]: graphical-session.target - Current graphical user session is inactive.
Jul 23 07:03:28 fedora systemd[1263]: Dependency failed for xdg-desktop-portal-gnome.service - Portal service (GNOME implementation).
Jul 23 07:03:28 fedora systemd[1263]: xdg-desktop-portal-gnome.service: Job xdg-desktop-portal-gnome.service/start failed with result 'dependency'.
Jul 23 07:03:28 fedora systemd[1263]: graphical-session.target - Current graphical user session is inactive.
Jul 23 07:03:28 fedora systemd[1263]: Dependency failed for xdg-desktop-portal-gnome.service - Portal service (GNOME implementation).
Jul 23 07:03:28 fedora systemd[1263]: xdg-desktop-portal-gnome.service: Job xdg-desktop-portal-gnome.service/start failed with result 'dependency'.If I use gdm to start gnome, then I won't experience this kind of problem. I also find the "fusermount3: failed to access mountpoint /run/user/1000/doc: Permission denied" thing mysterious. If I start gnome from gdm, there will be no "permission denied" problem... Please help me resolve this issue.
Last edited by Oleg_NYC (2023-07-24 06:55:00)
Offline
Offline
That approach worked! Now the Preferences window opens immediately when I click on it in gnome-terminal. I also disabled the Xwayland-on-demand feature by adding the --no-x11 flag to gnome-shell in org.gnome.Shell-Wayland.desktop and removing the mention of "org.gnome.SettingsDaemon.XSettings;" from gnome-wayland.session. Thank you!
Offline
\o/
Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.
Offline
On Fedora, I had a problem which seems to be unrelated to this one. After I enabled the dash-to-panel extension, typing "gnome-session --session=gnome-wayland" could cause some gnome component to crash, so, the only way I could regain the control of the computer was by logging into it through ssh and killing gnome-shell. I uninstalled Fedora, installed Arch, and could no longer reproduce this crash situation after installing the dash-to-panel extension. I will never go back to Fedora or Ubuntu. Maybe those distros install too much bloatware, and that leads to these types of crashes.
Offline
I am sorry for bumping this topic yet again, but isn't it time to edit the Arch wiki and enter new information about the way gnome is supposed to be started from the tty console? "XDG_SESSION_TYPE=wayland dbus-run-session gnome-session" definitely seems wrong. If the need arises, systemd creates a dbus-daemon session for a home user when dbus-daemon is already running system-wide; that's why "dbus-run-session" seems redundant in this case. It also seems to me that xdg-desktop-portal-gnome causes problems for gnome when gnome is started from the tty console. I think xdg-desktop-portal-gnome loves gdm too much, so it becomes a redundant app when gnome is started from the bare console. xdg-desktop-portal-gnome caused problems for non-gnome compositors, but it will cause problems for gnome itself when gnome isn't started via gdm. It remains to be the case even with the version of xdg-desktop-portal-gnome that is currently available in the extra repository. It looks like gnome developers believe everyone should use gdm to start gnome; that's why they haven't written official documentation for those people who don't want to use gdm. Maybe in the official Arch wiki we could write something like this: "Edit /usr/share/applications/org.gnome.Shell.desktop and add --display-server or --wayland to Exec=/usr/bin/gnome-shell . Those people who want to disable Xwayland-on-demand can add --no-x11 to that line and remove org.gnome.SettingsDaemon.XSettings; from /usr/share/gnome-session/sessions/gnome.session. pacman -R xdg-desktop-portal-gnome is required too. Then gnome can be started by typing gnome-session on the command-line."
Last edited by Oleg_NYC (2023-08-06 18:58:14)
Offline
Fair question, wrong location.
=> https://wiki.archlinux.org/title/Talk:GNOME
The present paragraph is actually disputed since 2018 and dbus-run-session is the wrong approach in any event - you can bring this up again and if nobody responds just edit the wiki wrt your findings.
xdg-desktop-portal-gnome is supposed to be fixed w/ the just released 44.2-1, though.
Offline
xdg-desktop-portal-gnome is supposed to be fixed w/ the just released 44.2-1, though.
No, this version still causes problems when gnome is started from the bare console.
Edit: well, maybe xdg-desktop-portal-gnome wasn't the problem, but the fact that it failed to start was. I am just a n00b, but I did the following: /usr/lib/systemd/user/xdg-desktop-portal-gnome.service mentioned graphical-session.target, so, I replaced every single mention of it with multi-user.target, but it didn't work. "systemctl set-default multi-user" didn't help in this case. After I made the contents of xdg-desktop-portal-gnome.service very similar to the contents of xdg-desktop-portal-gtk.service (I replaced all instances of "gtk" with "gnome"), xdg-desktop-portal-gnome was able to start, but journalctl showed me the message "xdg-desktop-portal-gnome[1313]: Non-compatible display server, exposing settings only". I don't know what it means, but according to "pgrep -fal", xdg-desktop-portal-gnome is running. All apps start fast and there are no slowdowns. Everything is fine.
Last edited by Oleg_NYC (2023-08-06 22:46:51)
Offline