summaryrefslogtreecommitdiff
path: root/src/seat-unity.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/seat-unity.c')
-rw-r--r--src/seat-unity.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/seat-unity.c b/src/seat-unity.c
index 29f6d107..50e15eb4 100644
--- a/src/seat-unity.c
+++ b/src/seat-unity.c
@@ -293,6 +293,7 @@ compositor_timeout_cb (gpointer data)
static gboolean
seat_unity_start (Seat *seat)
{
+ const gchar *compositor_command;
gchar *command, *absolute_command, *dir;
gboolean result;
int timeout;
@@ -341,7 +342,9 @@ seat_unity_start (Seat *seat)
g_free (dir);
SEAT_UNITY (seat)->priv->mir_socket_filename = g_strdup ("/tmp/mir_socket"); // FIXME: Use this socket by default as XMir is hardcoded to this
- command = g_strdup_printf ("unity-system-compositor --from-dm-fd %d --to-dm-fd %d --vt %d", SEAT_UNITY (seat)->priv->to_compositor_pipe[0], SEAT_UNITY (seat)->priv->from_compositor_pipe[1], SEAT_UNITY (seat)->priv->vt);
+ timeout = seat_get_integer_property (seat, "unity-compositor-timeout");
+ compositor_command = seat_get_string_property (seat, "unity-compositor-command");
+ command = g_strdup_printf ("%s --from-dm-fd %d --to-dm-fd %d --vt %d", compositor_command, SEAT_UNITY (seat)->priv->to_compositor_pipe[0], SEAT_UNITY (seat)->priv->from_compositor_pipe[1], SEAT_UNITY (seat)->priv->vt);
absolute_command = get_absolute_command (command);
g_free (command);