From 1598bc7dd62619fcf715c6c1dc028ec7f630139f Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Fri, 16 Mar 2018 15:49:53 +0100 Subject: [PATCH 1/2] xfce4-session: Strip trailing space --- xfce4-session.be0 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xfce4-session.be0 b/xfce4-session.be0 index 20756ee35..fab5ca93f 100755 --- a/xfce4-session.be0 +++ b/xfce4-session.be0 @@ -43,7 +43,7 @@ SRCURL[0]="http://archive.xfce.org/src/xfce/xfce4-session/${PKGVERSION[2]}/xfce4 #} #mee_configure() { -# bee_configure +# bee_configure #} #mee_build() { From b20033910cc59be4918ea8168a1965fccc75435d Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Fri, 16 Mar 2018 15:59:53 +0100 Subject: [PATCH 2/2] xfce4-session: Add wrapper for scaling on HiDPI displays On HiDPI displays, UI elements and text should be scaled up, so that they are big enough to be readable. Add a wrapper for startxfce4 setting the appropriate variables, so that GTK+ applications are scaled up. Increment the revision. --- xfce4-session.be0 | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/xfce4-session.be0 b/xfce4-session.be0 index fab5ca93f..f2cba1191 100755 --- a/xfce4-session.be0 +++ b/xfce4-session.be0 @@ -1,6 +1,6 @@ #!/usr/bin/env beesh -# BEE_VERSION xfce4-session-4.12.1-0 +# BEE_VERSION xfce4-session-4.12.1-1 ## this file was created by bee init and should be executed to build a ## bee-package. (Additional hints are located at the end of this file.) @@ -58,6 +58,15 @@ SRCURL[0]="http://archive.xfce.org/src/xfce/xfce4-session/${PKGVERSION[2]}/xfce4 mee_install_post() { start_cmd mv ${D}${DATADIR}/xsessions{,.available} + + # https://wiki.archlinux.org/index.php/HiDPI#GDK_3_.28GTK.2B_3.29 + start_cmd cat >${D}${BINDIR}/startxfce4_hidpi <<-EOF + #!/bin/bash + export GDK_SCALE=2 + export GDK_DPI_SCALE=-1 + export XCURSOR_SIZE=48 + /usr/bin/startxfce4 "$@" +EOF }