Skip to content
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

VM: configure_gnome.sh problem on Ubuntu 22.04 #777

Closed
KrisThielemans opened this issue Nov 23, 2022 · 4 comments
Closed

VM: configure_gnome.sh problem on Ubuntu 22.04 #777

KrisThielemans opened this issue Nov 23, 2022 · 4 comments
Milestone

Comments

@KrisThielemans
Copy link
Member

I tried to switch to 22.04. All seems well at present (but I haven't got very far yer). However, configure_gnome.sh fails to update the GNome settings. This seems due to

PID=$(pgrep -u sirfuser gnome-session)
export DBUS_SESSION_BUS_ADDRESS=$(grep -z DBUS_SESSION_BUS_ADDRESS /proc/$PID/environ|cut -d= -f2-)
export DISPLAY=$(grep -z DISPLAY /proc/$PID/environ | cut -d= -f2-)
#echo "display " $DISPLAY " dbus " $DBUS_SESSION_BUS_ADDRESS

in particular, pgrep -u gnome-session returns 3 PIDs. Using ps I see they correspond to

sirfuser    1375  0.0  0.2 227460 15496 tty2     Sl+  08:26   0:00 /usr/libexec/gnome-session-binary --session=gnome
sirfuser    1423  0.0  0.0  96336  5132 ?        Ssl  08:26   0:00 /usr/libexec/gnome-session-ctl --monitor
sirfuser    1435  0.0  0.2 523372 17552 ?        Ssl  08:26   0:00 /usr/libexec/gnome-session-binary --systemd-service --session=gnome

However, if I just comment out those 3 lines, everything works fine (also on our current 18.04 VM, wich doesn't have the equivalent of the 1432 and 1435 processes above).

@paskino, do you remember why we have them? Maybe it was an attempt to get configure_gnome.sh in the creation of the VM, but we've abandonded that as it doesn't work anyway.

An old issue somewhat related to this SyneRBI/SyneRBI_VM#164

@paskino
Copy link
Contributor

paskino commented Jan 18, 2023

If I'm not wrong the env variables are required to be able to run gsetting

@KrisThielemans
Copy link
Member Author

in an interactive sesoin DISPLAY will be set already. Not sure about *DBUS* but I recall using gsetting in a terminal when the VM is up without any trouble.

@paskino
Copy link
Contributor

paskino commented Jan 18, 2023

From my very scientific investigation I currently saw that the 3 PIDs do yield the same result.

@KrisThielemans
Copy link
Member Author

but the script is broken, and the simplest way to fix it might be to remove them. anyway. I'll let you get on with it :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants