[meta-xfce,v2,1/1] lxdm: provides fake gdmflexiserver for xfce desktop environment

Submitted by Kang Kai on June 12, 2019, 11:48 a.m. | Patch ID: 162149

Details

Message ID 20190612114818.97824-1-kai.kang@windriver.com
State Master Next
Commit 8113f6f33ae13afd6899e7b70d1e47b0a33d2eff
Headers show

Commit Message

Kang Kai June 12, 2019, 11:48 a.m.
From: Kai Kang <kai.kang@windriver.com>

Xfce4 plugin 'actions' which stays in tray area provides a menu 'Switch
User' but the menu grayed out. It calls whether 'dm-tool' from lightdm
or 'gdmflexiserver' from gdm to support switch users.

Since recipe gdm has been removed from meta-gnome, create a fake
'gdmflexiserver' which calls lxdm to make menu 'Switch User' work
according to:

https://wiki.archlinux.org/index.php/Xfce#User_switching_action_button_is_greyed_out

Signed-off-by: Kai Kang <kai.kang@windriver.com>
---
 meta-xfce/recipes-graphics/lxdm/lxdm/gdmflexiserver | 3 +++
 meta-xfce/recipes-graphics/lxdm/lxdm_%.bbappend     | 7 +++++++
 2 files changed, 10 insertions(+)
 create mode 100644 meta-xfce/recipes-graphics/lxdm/lxdm/gdmflexiserver
 create mode 100644 meta-xfce/recipes-graphics/lxdm/lxdm_%.bbappend

Patch hide | download patch | download mbox

diff --git a/meta-xfce/recipes-graphics/lxdm/lxdm/gdmflexiserver b/meta-xfce/recipes-graphics/lxdm/lxdm/gdmflexiserver
new file mode 100644
index 000000000..4be65c0c8
--- /dev/null
+++ b/meta-xfce/recipes-graphics/lxdm/lxdm/gdmflexiserver
@@ -0,0 +1,3 @@ 
+#!/bin/sh
+
+/usr/sbin/lxdm -c USER_SWITCH
diff --git a/meta-xfce/recipes-graphics/lxdm/lxdm_%.bbappend b/meta-xfce/recipes-graphics/lxdm/lxdm_%.bbappend
new file mode 100644
index 000000000..4a799a98a
--- /dev/null
+++ b/meta-xfce/recipes-graphics/lxdm/lxdm_%.bbappend
@@ -0,0 +1,7 @@ 
+FILESEXTRAPATHS_append := "${THISDIR}/${BPN}:"
+
+SRC_URI += "file://gdmflexiserver"
+
+do_install_append () {
+    install -D -m 0755 ${WORKDIR}/gdmflexiserver ${D}${bindir}/gdmflexiserver
+}

Comments

Andreas Müller June 12, 2019, 11:59 a.m.
On Wed, Jun 12, 2019 at 1:48 PM <kai.kang@windriver.com> wrote:
>
> From: Kai Kang <kai.kang@windriver.com>
>
> Xfce4 plugin 'actions' which stays in tray area provides a menu 'Switch
> User' but the menu grayed out. It calls whether 'dm-tool' from lightdm
> or 'gdmflexiserver' from gdm to support switch users.
>
> Since recipe gdm has been removed from meta-gnome, create a fake
> 'gdmflexiserver' which calls lxdm to make menu 'Switch User' work
> according to:
>
> https://wiki.archlinux.org/index.php/Xfce#User_switching_action_button_is_greyed_out
>
> Signed-off-by: Kai Kang <kai.kang@windriver.com>
> ---
>  meta-xfce/recipes-graphics/lxdm/lxdm/gdmflexiserver | 3 +++
>  meta-xfce/recipes-graphics/lxdm/lxdm_%.bbappend     | 7 +++++++
>  2 files changed, 10 insertions(+)
>  create mode 100644 meta-xfce/recipes-graphics/lxdm/lxdm/gdmflexiserver
>  create mode 100644 meta-xfce/recipes-graphics/lxdm/lxdm_%.bbappend
>
> diff --git a/meta-xfce/recipes-graphics/lxdm/lxdm/gdmflexiserver b/meta-xfce/recipes-graphics/lxdm/lxdm/gdmflexiserver
> new file mode 100644
> index 000000000..4be65c0c8
> --- /dev/null
> +++ b/meta-xfce/recipes-graphics/lxdm/lxdm/gdmflexiserver
> @@ -0,0 +1,3 @@
> +#!/bin/sh
> +
> +/usr/sbin/lxdm -c USER_SWITCH
> diff --git a/meta-xfce/recipes-graphics/lxdm/lxdm_%.bbappend b/meta-xfce/recipes-graphics/lxdm/lxdm_%.bbappend
> new file mode 100644
> index 000000000..4a799a98a
> --- /dev/null
> +++ b/meta-xfce/recipes-graphics/lxdm/lxdm_%.bbappend
> @@ -0,0 +1,7 @@
> +FILESEXTRAPATHS_append := "${THISDIR}/${BPN}:"
> +
> +SRC_URI += "file://gdmflexiserver"
> +
> +do_install_append () {
> +    install -D -m 0755 ${WORKDIR}/gdmflexiserver ${D}${bindir}/gdmflexiserver
> +}
> --
> 2.20.0
>
Really like it. Hope I'll find some time to test in the near future. Thanks!

Andreas