diff options
Diffstat (limited to 'meta-xfce/recipes-xfce/xfce4-panel/files/0002-use-lxdm-to-replace-dm-tool.patch')
-rw-r--r-- | meta-xfce/recipes-xfce/xfce4-panel/files/0002-use-lxdm-to-replace-dm-tool.patch | 43 |
1 files changed, 17 insertions, 26 deletions
diff --git a/meta-xfce/recipes-xfce/xfce4-panel/files/0002-use-lxdm-to-replace-dm-tool.patch b/meta-xfce/recipes-xfce/xfce4-panel/files/0002-use-lxdm-to-replace-dm-tool.patch index 66a33c722a..dc2444193d 100644 --- a/meta-xfce/recipes-xfce/xfce4-panel/files/0002-use-lxdm-to-replace-dm-tool.patch +++ b/meta-xfce/recipes-xfce/xfce4-panel/files/0002-use-lxdm-to-replace-dm-tool.patch | |||
@@ -13,41 +13,32 @@ Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | |||
13 | Rebase for xfce4-panel 4.18.3. | 13 | Rebase for xfce4-panel 4.18.3. |
14 | 14 | ||
15 | Signed-off-by: Kai Kang <kai.kang@windriver.com> | 15 | Signed-off-by: Kai Kang <kai.kang@windriver.com> |
16 | |||
17 | Rebase for xfce4-panel 4.20.0. | ||
18 | |||
19 | Signed-off-by: Kai Kang <kai.kang@windriver.com> | ||
20 | |||
16 | --- | 21 | --- |
17 | plugins/actions/actions.c | 8 ++++---- | 22 | plugins/actions/actions.c | 4 ++-- |
18 | 1 file changed, 4 insertions(+), 4 deletions(-) | 23 | 1 file changed, 2 insertions(+), 2 deletions(-) |
19 | 24 | ||
20 | diff --git a/plugins/actions/actions.c b/plugins/actions/actions.c | 25 | diff --git a/plugins/actions/actions.c b/plugins/actions/actions.c |
21 | index e1f1fa7..440f430 100644 | 26 | index 5e58078..b16d38e 100644 |
22 | --- a/plugins/actions/actions.c | 27 | --- a/plugins/actions/actions.c |
23 | +++ b/plugins/actions/actions.c | 28 | +++ b/plugins/actions/actions.c |
24 | @@ -977,12 +977,12 @@ actions_plugin_actions_allowed (void) | 29 | @@ -1054,11 +1054,11 @@ actions_plugin_actions_allowed (ActionsPlugin *plugin) |
25 | GError *error = NULL; | 30 | g_free (path); |
31 | } | ||
26 | 32 | ||
27 | /* check for commands we use */ | ||
28 | - path = g_find_program_in_path ("dm-tool"); | 33 | - path = g_find_program_in_path ("dm-tool"); |
29 | + path = g_find_program_in_path ("lxdm"); | 34 | + path = g_find_program_in_path ("lxdm"); |
30 | if (path != NULL) | 35 | if (path != NULL) |
31 | PANEL_SET_FLAG (allow_mask, ACTION_TYPE_SWITCH_USER); | 36 | { |
37 | PANEL_SET_FLAG (allow_mask, ACTION_TYPE_SWITCH_USER); | ||
38 | - plugin->switch_user_cmd = "dm-tool switch-to-greeter"; | ||
39 | + plugin->switch_user_cmd = "lxdm -c USER_SWITCH"; | ||
40 | } | ||
32 | else | 41 | else |
33 | { | 42 | { |
34 | - /* check for gdmflexiserver if dm-tool is not present */ | ||
35 | + /* check for gdmflexiserver if lxdm is not present */ | ||
36 | g_free (path); | ||
37 | path = g_find_program_in_path ("gdmflexiserver"); | ||
38 | if (path != NULL) | ||
39 | @@ -1099,9 +1099,9 @@ actions_plugin_action_activate (GtkWidget *widget, | ||
40 | break; | ||
41 | |||
42 | case ACTION_TYPE_SWITCH_USER: | ||
43 | - path = g_find_program_in_path ("dm-tool"); | ||
44 | + path = g_find_program_in_path ("lxdm"); | ||
45 | if (path != NULL) | ||
46 | - succeed = g_spawn_command_line_async ("dm-tool switch-to-greeter", &error); | ||
47 | + succeed = g_spawn_command_line_async ("lxdm -c USER_SWITCH", &error); | ||
48 | else | ||
49 | succeed = g_spawn_command_line_async ("gdmflexiserver", &error); | ||
50 | g_free (path); | ||
51 | -- | 43 | -- |
52 | 2.8.1 | 44 | 2.8.1 |
53 | |||