Only init on wayland

This commit is contained in:
Leonhard 2024-01-21 01:29:36 +01:00
parent 95ae6cf596
commit ff6e02765c
2 changed files with 3 additions and 4 deletions

View File

@ -31,9 +31,6 @@ public class Gala.DaemonManager : Object {
daemon_client = new Meta.WaylandClient (subprocess_launcher);
string[] args = {"gala-daemon"};
daemon_client.spawnv (display, args);
} catch (IOError.NOT_SUPPORTED e) {
//Not running under wayland, the daemon is autostarted
return;
} catch (Error e) {
warning ("Failed to create dock client: %s", e.message);
return;

View File

@ -346,7 +346,9 @@ namespace Gala {
plugin_manager.load_waiting_plugins ();
daemon_manager.init_wayland ();
if (Meta.Util.is_wayland_compositor ()) {
daemon_manager.init_wayland ();
}
return false;
});