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

Add only gdm code not gnome shell #76

Draft
wants to merge 3 commits into
base: 24
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 9 additions & 33 deletions hooks/002.1-add-gdm.chroot
Original file line number Diff line number Diff line change
Expand Up @@ -28,33 +28,9 @@ apt-get install --no-install-recommends -y \
gir1.2-gsound-1.0 \
libcanberra-pulse \
libsnapd-glib-2-1 \
ibus

# Install a basic Ubuntu session
apt-get install --no-install-recommends -y \
ubuntu-session \
gkbd-capplet \
gnome-menus \
gnome-terminal \
gnome-settings-daemon \
gnome-shell-extension-appindicator \
gnome-shell-extension-desktop-icons-ng \
gnome-shell-extension-ubuntu-dock \
gnome-shell-extension-ubuntu-tiling-assistant \
gnome-control-center \
gnome-keyring \
fprintd \
libpam-fprintd \
opensc \
bolt \
libpam-gnome-keyring \
spice-vdagent \
xdg-desktop-portal \
xdg-desktop-portal-gnome \
xdg-desktop-portal-gtk \
xdg-user-dirs-gtk \
inotify-tools \
alsa-ucm-conf
ibus \
pkexec \
xdg-desktop-portal

# Remove setuid from some executables we're not using
chmod u-s,g-s /usr/bin/pkexec
Expand All @@ -70,11 +46,11 @@ sed -i '/^Description=/ a # delay until snapd finishes seeding\nAfter=snapd.seed

# Remove D-Bus service activation files provided by
# ubuntu-desktop-session snap.
rm /usr/share/dbus-1/services/org.gnome.Nautilus.service
rm /usr/share/dbus-1/services/org.gnome.Terminal.service
rm /usr/share/dbus-1/services/org.freedesktop.impl.portal.desktop.gnome.service
rm /usr/share/dbus-1/services/org.freedesktop.impl.portal.desktop.gtk.service
rm /usr/share/dbus-1/services/org.gnome.Shell.Screencast.service
rm -f /usr/share/dbus-1/services/org.gnome.Nautilus.service
rm -f /usr/share/dbus-1/services/org.gnome.Terminal.service
rm -f /usr/share/dbus-1/services/org.freedesktop.impl.portal.desktop.gnome.service
rm -f /usr/share/dbus-1/services/org.freedesktop.impl.portal.desktop.gtk.service
rm -f /usr/share/dbus-1/services/org.gnome.Shell.Screencast.service
rm -f /usr/share/dbus-1/services/org.freedesktop.IBus.service
rm -f /usr/share/dbus-1/services/org.freedesktop.portal.IBus.service
rm -f /usr/share/dbus-1/services/org.freedesktop.ColorHelper.service
Expand Down Expand Up @@ -120,7 +96,7 @@ sed -i "/^ReadWritePaths=/ a \\ /var/lib/extrausers/ \\\\" \
/usr/lib/systemd/system/accounts-daemon.service

# Hide gnome-terminal by default
sed -i 's/OnlyShowIn=/NoDisplay=true\nOnlyShowIn=/g' /usr/share/applications/org.gnome.Terminal.desktop
#sed -i 's/OnlyShowIn=/NoDisplay=true\nOnlyShowIn=/g' /usr/share/applications/org.gnome.Terminal.desktop

# change default wallpapers
cp /usr/share/gnome-background-properties/ubuntu-wallpapers.xml /usr/share/gnome-background-properties/ubuntu-core-desktop-wallpapers.xml
Expand Down
7 changes: 7 additions & 0 deletions hooks/599-cleanup-packages.chroot
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh

set -e

# remove packages that were installed due to dependencies but that we
# must remove.
dpkg -r --force-all pipewire wireplumber pipewire-pulse xdg-desktop-portal-gtk xdg-desktop-portal-gnome
3 changes: 2 additions & 1 deletion static/usr/bin/core-desktop-session-wrapper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ fixup_xauthority &
ln -sf "snap.$snap_name/wayland-0" $XDG_RUNTIME_DIR/wayland-0
# Symlink sockets for pipewire and pipewire-pulse
ln -sf "snap.pipewire/pipewire-0" $XDG_RUNTIME_DIR/pipewire-0
ln -sf "snap.pipewire/pulse" $XDG_RUNTIME_DIR/pulse
mkdir -p $XDG_RUNTIME_DIR/pulse
ln -sf "../snap.pipewire/pulse/native" $XDG_RUNTIME_DIR/pulse/native

exec "/snap/bin/$snap_cmd"