summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhao Qiang <zhaoqiang@gnome.org>2020-03-06 14:15:18 +0800
committerRay Strode <halfline@gmail.com>2020-04-28 17:44:45 +0000
commit87c29ca513bd40ba97751b2c8abd51f43cd1dabc (patch)
treec3162401eb54866faf328b67aa999a04e80159b9
parent0284f09078b84cdb40ae2a46fcb36ee8dab4ba47 (diff)
downloadgdm-87c29ca513bd40ba97751b2c8abd51f43cd1dabc.tar.gz
gdm-manager: just call Plymouth to rely on PATH env to support different distributions' directory architecture.
-rw-r--r--daemon/gdm-manager.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/daemon/gdm-manager.c b/daemon/gdm-manager.c
index d8dfa843..efcce9b6 100644
--- a/daemon/gdm-manager.c
+++ b/daemon/gdm-manager.c
@@ -148,7 +148,7 @@ plymouth_is_running (void)
GError *error;
error = NULL;
- res = g_spawn_command_line_sync ("/bin/plymouth --ping",
+ res = g_spawn_command_line_sync ("plymouth --ping",
NULL, NULL, &status, &error);
if (! res) {
g_debug ("Could not ping plymouth: %s", error->message);
@@ -166,7 +166,7 @@ plymouth_prepare_for_transition (void)
GError *error;
error = NULL;
- res = g_spawn_command_line_sync ("/bin/plymouth deactivate",
+ res = g_spawn_command_line_sync ("plymouth deactivate",
NULL, NULL, NULL, &error);
if (! res) {
g_warning ("Could not deactivate plymouth: %s", error->message);
@@ -181,7 +181,7 @@ plymouth_quit_with_transition (void)
GError *error;
error = NULL;
- res = g_spawn_command_line_async ("/bin/plymouth quit --retain-splash", &error);
+ res = g_spawn_command_line_async ("plymouth quit --retain-splash", &error);
if (! res) {
g_warning ("Could not quit plymouth: %s", error->message);
g_error_free (error);
@@ -197,7 +197,7 @@ plymouth_quit_without_transition (void)
GError *error;
error = NULL;
- res = g_spawn_command_line_async ("/bin/plymouth quit", &error);
+ res = g_spawn_command_line_async ("plymouth quit", &error);
if (! res) {
g_warning ("Could not quit plymouth: %s", error->message);
g_error_free (error);