Skip to contentSkip to conversation

xfce4-session: Add x-session-manager alternative

PATCH In review Otavio Salvador 2 participants 2 messages Apr 13, 2013 – Apr 16, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xfce4-session: Add x-session-manager alternative

---
 meta-xfce/recipes-xfce/xfce4-session/xfce4-session_4.10.0.bb | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
meta-xfce/recipes-xfce/xfce4-session/xfce4-session_4.10.0.bb +5 -2
index 6ad834d..d00e466 100644
@@ -4,9 +4,9 @@ LICENSE = "GPLv2"
 LIC_FILES_CHKSUM = "file://COPYING;md5=9ac2e7cff1ddaf48b6eab6028f23ef88"
 DEPENDS = "virtual/libx11 libsm libxfce4util libxfce4ui gtk+ libwnck dbus dbus-glib xfconf"
 RDEPENDS_${PN} = "netbase xinit dbus-x11 iceauth consolekit upower"
-PR = "r2"
+PR = "r3"
 
-inherit xfce
+inherit xfce update-alternatives
 
 SRC_URI[md5sum] = "4768e1a41a0287af6aad18b329a0f230"
 SRC_URI[sha256sum] = "bb8aa9a74c3d382840596fb4875144d66c7f3f47c8e9ee81d31e3428a72c46ce"
@@ -15,6 +15,9 @@ SRC_URI += "file://0001-Handle-multiple-interactive-session-save-bug-5379.patch
             file://0003-configure.in-hard-code-path-to-iceauth.patch \
 "
 
+ALTERNATIVE_${PN} = "x-session-manager"
+ALTERNATIVE_TARGET[x-session-manager] = "${bindir}/xfce4-session"
+
 # protect from frightening message that xfce might not work correctly
 pkg_postinst_${PN} () {
     echo 127.0.0.1    ${MACHINE} >> /etc/hosts
Signature · 1 line
1.8.1
#1 lore raw
Quoted 32 lines · Otavio Salvador
---
 meta-xfce/recipes-xfce/xfce4-session/xfce4-session_4.10.0.bb | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
meta-xfce/recipes-xfce/xfce4-session/xfce4-session_4.10.0.bb +5 -3
index 6ad834d..d00e466 100644
@@ -4,9 +4,9 @@ LICENSE = "GPLv2"
 LIC_FILES_CHKSUM = "file://COPYING;md5=9ac2e7cff1ddaf48b6eab6028f23ef88"
 DEPENDS = "virtual/libx11 libsm libxfce4util libxfce4ui gtk+ libwnck dbus dbus-glib xfconf"
 RDEPENDS_${PN} = "netbase xinit dbus-x11 iceauth consolekit upower"
-PR = "r2"
+PR = "r3"
 
-inherit xfce
+inherit xfce update-alternatives
 
 SRC_URI[md5sum] = "4768e1a41a0287af6aad18b329a0f230"
 SRC_URI[sha256sum] = "bb8aa9a74c3d382840596fb4875144d66c7f3f47c8e9ee81d31e3428a72c46ce"
@@ -15,6 +15,9 @@ SRC_URI += "file://0001-Handle-multiple-interactive-session-save-bug-5379.patch
             file://0003-configure.in-hard-code-path-to-iceauth.patch \
 "
 
+ALTERNATIVE_${PN} = "x-session-manager"
+ALTERNATIVE_TARGET[x-session-manager] = "${bindir}/xfce4-session"
+
 # protect from frightening message that xfce might not work correctly
 pkg_postinst_${PN} () {
     echo 127.0.0.1    ${MACHINE} >> /etc/hosts
--
Quoted 2 lines

1.8.1

Hi Otavio,

As pure xfce user I never had a thought about this. I have no time to test but I think it looks fine and should go in. Not sure if it still applies...

Andreas