From 3086441709121e86e03ef5ca3681ef0979617dc4 Mon Sep 17 00:00:00 2001 From: Anthony Rose Date: Tue, 17 Dec 2024 10:24:47 +0000 Subject: [PATCH] Set Epiphany (Gnome Web) flatpak settings --- roles/home-gui/files/gnome-setup.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/roles/home-gui/files/gnome-setup.sh b/roles/home-gui/files/gnome-setup.sh index b6a9a1f..fb0b293 100644 --- a/roles/home-gui/files/gnome-setup.sh +++ b/roles/home-gui/files/gnome-setup.sh @@ -230,6 +230,14 @@ set_misc_preferences () { # Set the AccountsService icon file to ~/.face via dbus. busctl call org.freedesktop.Accounts /org/freedesktop/Accounts/User$(id -u) org.freedesktop.Accounts.User SetIconFile "s" "$HOME/.face" + + if $(flatpak info org.gnome.Epiphany 2>/dev/null >/dev/null) + then + _acp_gsettings="flatpak --user run --command=/usr/bin/gsettings org.gnome.Epiphany" + $_acp_gsettings set org.gnome.Epiphany homepage-url 'about:newtab' + $_acp_gsettings set org.gnome.Epiphany restore-session-policy 'crashed' + unset _acp_gsettings + fi } set_misc_preferences