You are not logged in.

#1 2021-08-29 23:59:35

aleksF
Member
Registered: 2019-03-09
Posts: 19

After installing gnome/wayland, gnome apps stopped working in i3/xorg

[bold]

EDIT: SOLVED by actually adding

if [ -d /etc/X11/xinit/xinitrc.d ] ; then
 for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
  [ -x "$f" ] && . "$f"
 done
 unset f
fi

BEFORE any "exec" commands in my .xinitrc

[/bold]

-----------------------------------------------------------------------------------------------

ORIGINAL:

I have no idea how to troubleshoot this.

Many gnome applications, for instance gnome-screenshot, used to work perfectly on xorg/i3.

I wanted to try gnome 40, so I installed it along with the its login manager and weyland.

Now, magically, some of these gnome applications do not work anymore if I log into i3/xorg, but they work in gnome.

If I try to call gnome-screenshot from a terminal, I get:

** Message: 19:57:24.516: Unable to use GNOME Shell's builtin screenshot interface, resorting to fallback X11.

What is happening? Where are the config files being read? Is it in dconf? This is very opaque and frustrating.
Also, resorting to fallback X11 seems to not be working either, because gnome-screenshot pops up 20 seconds later, super sluggish and unusable.

Last edited by aleksF (2021-09-03 18:22:22)

Offline

#2 2021-08-30 06:45:46

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,342

Re: After installing gnome/wayland, gnome apps stopped working in i3/xorg

Many gnome applications

Any beyond gnome-screenshot?

** Message: 19:57:24.516: Unable to use GNOME Shell's builtin screenshot interface, resorting to fallback X11.

Gnome screenshot probably wants to use mutter to dump the scrot out of the compositor, which doesn't work.
20 seconds later sounds a lot like a dbus timeout (25s default) and that sounds as if your session is broken - assuming you're using xinit/startx: see the last link below.

Perfectly nice screenshot tools:
https://archlinux.org/packages/community/x86_64/scrot/
https://archlinux.org/packages/communit … 4/shotgun/
https://archlinux.org/packages/community/any/shutter/
https://archlinux.org/packages/communit … flameshot/

Offline

#3 2021-08-30 07:20:10

progandy
Member
Registered: 2012-05-17
Posts: 5,321

Re: After installing gnome/wayland, gnome apps stopped working in i3/xorg

The 20 second delay might be caused by having xdg-desktop-portal installed and failing to properly start in i3,  see seth's comment about dbus timeout and fixing xinitrc.

Last edited by progandy (2021-08-30 07:25:59)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#4 2021-08-30 17:11:03

aleksF
Member
Registered: 2019-03-09
Posts: 19

Re: After installing gnome/wayland, gnome apps stopped working in i3/xorg

Thank you for the alternatives for screenshots, but I would like to get gnome-screenshot running again, and in general I would like to understand what is the problem, and if something is broken on my system.

If I call from terminal

gnome-mahjongg

that also takes about 7-8 seconds to fire up in xorg/i3 (I have a very fast machine and it does not makes sense, it's immediate in a gnome session).

I'm not familiar with dbus.

Can I troubleshoot/debug/log dbus?

I visited the last link about .xinitrc, it's the wiki page about .xinitrc. I have read that in the past and I am currently using my .xinitrc, on different machines actually. My laptop can handle gnome/weyland and i3/xorg interchangeably well. My desktop (with a Nvidia 2080 Ti), and similar dotfiles (synced), has this issues with gnome apps since I installed gnome-weyland.

This is my .xinitrc:

#!/bin/sh
#export MONITOR="HDMI-1"
if [[ $HOSTNAME = "BiggusDiccus" ]]
then
# 	sudo cpupower frequency-set -g powersave && sudo cpupower frequency-set -u 3.9Ghz && echo 'CPU set to powersave,3.9Ghz max'
	export MONITOR="HDMI-0"
	xrandr --output HDMI-0 --dpi 192 --mode 5120x1440
	#xrandr --output HDMI-0 --scale 2x2
	xrandr --output HDMI-0 --scale 1.5x1.5
	# start BT
	bluetoothctl power on
else
	xrandr --dpi 300
	xrandr --output eDP-1 --scale 3x3

fi

[ -f ~/.Xmodmap ] && xmodmap ~/.Xmodmap
[ -f ~/.Xresources ] && xrdb -merge ~/.Xresources

xsetroot -xcf /usr/share/icons/whiteglass/cursors/left_ptr 48

exec i3

I apologize in advance if I am missing something major here

EDIT:
I realize there is an option to have gtk-debug flags. In the pastebin below is the output of

gnome-mahjongg --gdk-debug=all

https://pastebin.com/0UFyAE2V

Why is it so slow to start up?

Last edited by aleksF (2021-08-30 17:17:53)

Offline

#5 2021-08-30 17:19:49

progandy
Member
Registered: 2012-05-17
Posts: 5,321

Re: After installing gnome/wayland, gnome apps stopped working in i3/xorg

So you are missing the code block for sourcing the files in /etc/X11/xinit/xinitrc.d. The link in seth's signature shows where to get it from.
One of those files tells the systemd-user session and therefore xsg-desktop-portal the X11 display.


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#6 2021-09-03 02:00:07

aleksF
Member
Registered: 2019-03-09
Posts: 19

Re: After installing gnome/wayland, gnome apps stopped working in i3/xorg


EDIT: I added the block suggested and the problem was NOT SOLVED.
Please advise.


ORIGINAL RESPONSE:

Should I add the code below to my .xinitrc?

# start some nice programs

if [ -d /etc/X11/xinit/xinitrc.d ] ; then
 for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
  [ -x "$f" ] && . "$f"
 done
 unset f
fi

Why?
I have been perusing the wiki and the link suggested and the only relevant paragraph I found is the short:

Note: At the very least, ensure that the last if block in /etc/X11/xinit/xinitrc is present in your ~/.xinitrc file to ensure that the scripts in /etc/X11/xinit/xinitrc.d are sourced.

Could you briefly explain what that does? What does it mean "-d /etc/x11/xinit/xinitrc.d"? Is it launching all *.sh? Why does it say "sourcing" if the *.sh are actually launched in background (&&) and why do I need them all? More importantly, why everything works except gnome, what do they have to do with gnome!!? And finally, why those same dot files work perfectly on another machine (with synced dot files)?

Am I missing a page that explains this anywhere in the arch wiki?

I am approaching arch trying to learn as much as I can but I find these holes of knowledge in the documentation.

Last edited by aleksF (2021-09-03 02:05:25)

Offline

#7 2021-09-03 06:39:22

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,342

Re: After installing gnome/wayland, gnome apps stopped working in i3/xorg

Should I add the code below to my .xinitrc?

Yes.

Could you briefly explain what that does?

progandy wrote:

One of those files tells the systemd-user session and therefore xsg-desktop-portal the X11 display.

The important bit itr. is /etc/X11/xinit/xinitrc.d/50-systemd-user.sh which imports the environment into the active session, otherwise your access to the session dbus is broken.

I added the block suggested and the problem was NOT SOLVED

Please post the updated xinitrc - did you re-login?

Offline

#8 2021-09-03 18:15:30

aleksF
Member
Registered: 2019-03-09
Posts: 19

Re: After installing gnome/wayland, gnome apps stopped working in i3/xorg

Interesting. I know very little about dbus and that specific script you mention. It is not mentioned in the arch wiki.
This is the only page I could find that is relevant:

https://wiki.archlinux.org/title/D-Bus

It's only a couple of paragraphs, very little information. Can you point to where I could learn more about dbus?


seth wrote:

Please post the updated xinitrc - did you re-login?

Yes, I did that. Also rebooted later, still same exact issue.

Thank you for looking into this. Here's my unabridged .xinitrc (sorry for the length and extra IFs but I manage 3 different machines with the same dotfiles):

https://pastiebin.com/6132653d59397

Again, I am skeptical about the problem being in the xinitrc because the other machines with same dotfiles can launch gnome apps with no problems from xorg/i3. I installed wayland/gnome in the other machines as well, but only on one machine launching gnome apps became sluggish/buggy. This happens to be the machine that has an Nvidia card.

Are there any commands to directly troubleshoot dbus in what you think is broken?

Last edited by aleksF (2021-09-03 18:18:19)

Offline

#9 2021-09-03 18:17:48

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,342

Re: After installing gnome/wayland, gnome apps stopped working in i3/xorg

The stuff after the first line that says "exec something" isn't executed, ie. you did effectively not include the scripts in /etc/X11/xinit/xinitrc.d
Fix that and try it again.

Offline

#10 2021-09-03 18:19:16

aleksF
Member
Registered: 2019-03-09
Posts: 19

Re: After installing gnome/wayland, gnome apps stopped working in i3/xorg

seth wrote:

The stuff after the first line that says "exec something" isn't executed, ie. you did effectively not include the scripts in /etc/X11/xinit/xinitrc.d
Fix that and try it again.

/shame

EDIT: SOLVED by actually adding

if [ -d /etc/X11/xinit/xinitrc.d ] ; then
 for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
  [ -x "$f" ] && . "$f"
 done
 unset f
fi

BEFORE any "exec" commands in my .xinitrc

Thanks a ton, marking it as solved

Last edited by aleksF (2021-09-03 18:22:38)

Offline

#11 2021-09-03 22:59:17

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,342

Re: After installing gnome/wayland, gnome apps stopped working in i3/xorg

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

Board footer

Powered by FluxBB