From 791d6d692443861afc9c4e3d9eb7466fea406e48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=BCller?= Date: Wed, 6 May 2015 17:47:37 +0200 Subject: [PATCH] lxqt-common: enable starting xserver from startlxqt MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Andreas Müller --- ...artlxqt-enable-starting-from-console.patch | 35 +++++++++++++++++++ recipes-lxqt/lxqt-common/lxqt-common_git.bb | 1 + 2 files changed, 36 insertions(+) create mode 100644 recipes-lxqt/lxqt-common/files/0001-startlxqt-enable-starting-from-console.patch diff --git a/recipes-lxqt/lxqt-common/files/0001-startlxqt-enable-starting-from-console.patch b/recipes-lxqt/lxqt-common/files/0001-startlxqt-enable-starting-from-console.patch new file mode 100644 index 00000000..07acbb23 --- /dev/null +++ b/recipes-lxqt/lxqt-common/files/0001-startlxqt-enable-starting-from-console.patch @@ -0,0 +1,35 @@ +From e83caa529f812a4b10dea34b1c854d02fed83d8c Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Andreas=20M=C3=BCller?= +Date: Wed, 6 May 2015 16:38:17 +0200 +Subject: [PATCH] startlxqt: enable starting from console +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Signed-off-by: Andreas Müller +--- + startlxqt.in | 11 +++++++++-- + 1 file changed, 9 insertions(+), 2 deletions(-) + +diff --git a/startlxqt.in b/startlxqt.in +index 2dc30bf..bb98fce 100755 +--- a/startlxqt.in ++++ b/startlxqt.in +@@ -42,5 +42,12 @@ export XDG_MENU_PREFIX="lxqt-" + + export XDG_CURRENT_DESKTOP="LXQt" + +-# Start the LXQt session +-exec lxqt-session ++# xserver needs start? ++if test "x$DISPLAY" = "x"; then ++ echo "Starting X server..." ++ prog=`which lxqt-session` ++ exec xinit $prog ++else ++ # Start the LXQt session ++ exec lxqt-session ++fi +-- +1.9.3 + diff --git a/recipes-lxqt/lxqt-common/lxqt-common_git.bb b/recipes-lxqt/lxqt-common/lxqt-common_git.bb index 24787f8f..ed184ac5 100644 --- a/recipes-lxqt/lxqt-common/lxqt-common_git.bb +++ b/recipes-lxqt/lxqt-common/lxqt-common_git.bb @@ -6,6 +6,7 @@ inherit lxqt DEPENDS += "liblxqt" +SRC_URI += "file://0001-startlxqt-enable-starting-from-console.patch" SRCREV = "e400c79738b7251526d5e5317926f30a70d61801" PV = "0.9.0"