sessions: update recipes for emptty
cover sessions: update recipes for emptty
From: Randolph Sapp <[email protected]>
The x-session-manager alternative link has been removed. Instead a distro should choose what the default session is by using the DEFAULT_SESSION variable of xserver-nodm-init.
If the default session cannot be found the user will be presented with a menu to pick the session themselves. Some of these sessions already provided their own desktop entries, others needed one to be added.
All required recipe changes have been made, with the only major user facing change being that a session will not be automatically selected. It's up to them to decide at runtime, with a distro override, or with local.conf override.
This series has a dependency on the emptty series in oe-core.
Randolph Sapp (2):
openbox: update for emptty
icewm: update for emptty
meta-oe/recipes-extended/icewm/icewm_3.8.2.bb | 6 +----- .../openbox/files/openbox.desktop | 6 ++++++ meta-oe/recipes-graphics/openbox/openbox_3.6.1.bb | 15 +++++++++++---- 3 files changed, 18 insertions(+), 9 deletions(-) create mode 100644 meta-oe/recipes-graphics/openbox/files/openbox.desktop
--
2.53.0
PATCH 1/2 openbox: update for emptty
From: Randolph Sapp <[email protected]>
The x-session-manager alternative link has been removed. Instead a distro should choose what the default session is by using the DEFAULT_SESSION variable of xserver-nodm-init.
If the default session cannot be found the user will be presented with a menu to pick the session themselves. This relies on the xsessions desktop entries.
Add a an xsessions entry for the openbox-session.
--- .../openbox/files/openbox.desktop | 6 ++++++ meta-oe/recipes-graphics/openbox/openbox_3.6.1.bb | 15 +++++++++++---- 2 files changed, 17 insertions(+), 4 deletions(-) create mode 100644 meta-oe/recipes-graphics/openbox/files/openbox.desktop
meta-oe/recipes-graphics/openbox/files/openbox.desktop new file +6 -0
@@ -0,0 +1,6 @@ +[Desktop Entry] +Name=Openbox Session +Comment=Very simple session manager for Openbox +Type=Application +Exec=openbox-session +DesktopNames=Openbox
meta-oe/recipes-graphics/openbox/openbox_3.6.1.bb +11 -4
@@ -9,6 +9,7 @@ SRC_URI = " \ file://0001-Makefile.am-avoid-race-when-creating-autostart-direc.patch \ file://0001-openbox-xdg-autostart-convert-to-python3.patch \ file://0001-Fix-list-traversal-issue-in-client_calc_layer.patch \ + file://openbox.desktop \ " SRC_URI[sha256sum] = "8b4ac0760018c77c0044fab06a4f0c510ba87eae934d9983b10878483bde7ef7"
@@ -20,11 +21,9 @@ inherit autotools gettext update-alternatives pkgconfig features_check # depends on virtual/libx11 REQUIRED_DISTRO_FEATURES = "x11" -ALTERNATIVE:${PN}-core = "x-window-manager x-session-manager" +ALTERNATIVE:${PN}-core = "x-window-manager" ALTERNATIVE_TARGET[x-window-manager] = "${bindir}/openbox" ALTERNATIVE_PRIORITY[x-window-manager] = "10" -ALTERNATIVE_TARGET[x-session-manager] = "${bindir}/openbox-session" -ALTERNATIVE_PRIORITY[x-session-manager] = "100" PACKAGECONFIG ??= "" PACKAGECONFIG[imlib2] = "--enable-imlib2,--disable-imlib2,imlib2"
@@ -43,7 +42,15 @@ python populate_packages:prepend() { do_split_packages(d, theme_dir, '(.*)', theme_name, '${PN} theme for %s', extra_depends='', allow_dirs=True) } -FILES:${PN}-core = "${bindir}/openbox ${bindir}/openbox-session ${libdir}/*${SOLIBS}" +do_install:append() { + install -d "${D}${datadir}/xsessions" + install -m 0644 "${UNPACKDIR}/openbox.desktop" "${D}${datadir}/xsessions" +} + +FILES:${PN}-core = "${bindir}/openbox \ + ${bindir}/openbox-session \ + ${datadir}/xsessions/openbox.desktop \ + ${libdir}/*${SOLIBS}" FILES:${PN}-lxde += "${datadir}/lxde/ \ ${datadir}/lxpanel \
Signature · 1 line
2.53.0
PATCH 2/2 icewm: update for emptty
In reply to [email protected]From: Randolph Sapp <[email protected]>
The x-session-manager alternative link has been removed. Instead a distro should choose what the default session is by using the DEFAULT_SESSION variable of xserver-nodm-init.
If the default session cannot be found the user will be presented with a menu to pick the session themselves. This relies on the xsessions desktop entries, which IceWM already provides.
--- meta-oe/recipes-extended/icewm/icewm_3.8.2.bb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-)
meta-oe/recipes-extended/icewm/icewm_3.8.2.bb +1 -5
@@ -10,7 +10,7 @@ SRC_URI[sha256sum] = "c64b1b7c8ee262a3c4796be57349a3198998564d70ed26f11e724e1b73 UPSTREAM_CHECK_URI = "https://github.com/ice-wm/${BPN}/releases" UPSTREAM_CHECK_REGEX = "(?P<pver>\d+(\.\d+)+)" -inherit autotools pkgconfig gettext perlnative features_check qemu update-alternatives +inherit autotools pkgconfig gettext perlnative features_check qemu REQUIRED_DISTRO_FEATURES = "x11" EXTRA_OECONF += "--with-libdir=${datadir}/icewm \
@@ -40,8 +40,4 @@ EOF ./qemuwrapper > src/preferences } -ALTERNATIVE:${PN} = "x-session-manager" -ALTERNATIVE_TARGET[x-session-manager] = "${bindir}/icewm-session" -ALTERNATIVE_PRIORITY_${PN} = "100" - FILES:${PN} += "${datadir}/xsessions"
Signature · 1 line
2.53.0