-
Notifications
You must be signed in to change notification settings - Fork 0
/
gnome-fixes.sh
29 lines (22 loc) · 1.29 KB
/
gnome-fixes.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash
# 001 disable org.freedesktop.login1 for gdm
# issue: login1 depends on systemd which wont work in proot & chroot
# gnome-shell triggers login1 and fails to start cause it returns exit code 1
# solution: removing login1 files from entire filesystem or moving it to a different location should work
# but it is not recommended to remove login1 files from entire filesystem
for file in $(find /usr -type f -iname "*login1*"); do
mv -v $file "$file.back"
done
# 002 fix issue with set-uid helper permission
# issue: gnome-shell fails to start cause it can't execute set-uid helper
# solution: set permissions u+s for set-uid helper on every bashrc execution
echo "# fix issue with set-uid helper permission" >> ~/.bashrc
echo "sudo chmod u+s /usr/lib/dbus-1.0/dbus-daemon-launch-helper" >> ~/.bashrc
# 003 Remove sound menu from gnome control center
# issue: gnome-control-center crashes when sound menu is clicked
# solution: remove sound menu from gnome-control-center by moving it to a different location
mv -v /usr/share/applications/gnome-sound-panel.desktop /usr/share/applications/gnome-sound-panel.desktop.back
# 004 set XDG_CURRENT_DESKTOP to GNOME
# resolvs issue with gnome-control-center launch
# observed on ubuntu lunar
echo "export XDG_CURRENT_DESKTOP=GNOME" >> ~/.bashrc