Skip to content

Commit

Permalink
Main: don't start settings daemon in installer session (#761)
Browse files Browse the repository at this point in the history
* Main: don't start settings daemon in installer session

* Also make sure we don't set desktop in installer session

---------

Co-authored-by: Ryo Nakano <[email protected]>
  • Loading branch information
danirabbit and ryonakano authored Oct 22, 2024
1 parent 644f68a commit b8b5761
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions compositor/main.vala
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,14 @@ namespace GreeterCompositor {
}

public static int main (string[] args) {
// Ensure we present ourselves as Pantheon so we pick up the right GSettings
// overrides
GLib.Environment.set_variable ("XDG_CURRENT_DESKTOP", "Pantheon", true);
if (GLib.Environment.get_variable ("DESKTOP_SESSION") != "installer") {
// Ensure we present ourselves as Pantheon so we pick up the right GSettings
// overrides
GLib.Environment.set_variable ("XDG_CURRENT_DESKTOP", "Pantheon", true);

var settings_daemon = new SettingsDaemon ();
settings_daemon.start ();
var settings_daemon = new SettingsDaemon ();
settings_daemon.start ();
}

var ctx = new Meta.Context ("Mutter(GreeterCompositor)");
ctx.add_option_entries (GreeterCompositor.OPTIONS, Constants.GETTEXT_PACKAGE);
Expand Down

0 comments on commit b8b5761

Please sign in to comment.