From e4e49ce7f0b88afadb0499ffa835bb41533ac906 Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Thu, 22 Mar 2018 12:42:06 +0100 Subject: [PATCH] xfce4-session: Configure scaling factor for Qt programs in `startxfce4_hidpi` Starting RStudio on a HiDPI monitor, it is currently displayed too small by default. Follow the [Arch Linux Wiki][1] to fix the problem. > Since Qt 5.6, Qt 5 applications can be instructed to honor screen DPI by > setting the QT_AUTO_SCREEN_SCALE_FACTOR environment variable: > > export QT_AUTO_SCREEN_SCALE_FACTOR=1 Note, this has no effect on mx2017 systems with Qt 5.4. Increment the revision number. Tested with R 1.1.383 on *keineahnung*. [1]: https://wiki.archlinux.org/index.php/HiDPI#Qt_5 --- xfce4-session.be0 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/xfce4-session.be0 b/xfce4-session.be0 index 5d836e1cd..13dfd947b 100755 --- a/xfce4-session.be0 +++ b/xfce4-session.be0 @@ -1,6 +1,6 @@ #!/usr/bin/env beesh -# BEE_VERSION xfce4-session-4.12.1-2 +# BEE_VERSION xfce4-session-4.12.1-3 ## 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.) @@ -59,11 +59,12 @@ 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 + # https://wiki.archlinux.org/index.php/HiDPI start_cmd cat >${D}${BINDIR}/startxfce4_hidpi <<-EOF #!/bin/bash export GDK_SCALE=2 export GDK_DPI_SCALE=-1 + export QT_AUTO_SCREEN_SCALE_FACTOR=1 export XCURSOR_SIZE=48 /usr/bin/startxfce4 "$@" EOF