From 91aaaaf276ce375a5aa1b32b8eff0edbd266899d Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Mon, 13 May 2019 09:07:46 +0100 Subject: [PATCH] Write patch to remove terrible looking QT apps under `ligthdm` We set the value to something more sane in other places, but it gets overriden --- files/xsession.patch | 13 +++++++++++++ tasks/i3.yml | 5 +++++ 2 files changed, 18 insertions(+) create mode 100644 files/xsession.patch diff --git a/files/xsession.patch b/files/xsession.patch new file mode 100644 index 0000000..6e7ac36 --- /dev/null +++ b/files/xsession.patch @@ -0,0 +1,13 @@ +--- /etc/lightdm/Xsession 2019-03-13 18:14:42.569300975 +0000 ++++ /etc/lightdm/Xsession 2019-05-13 08:52:58.876091847 +0100 +@@ -67,8 +67,8 @@ + + if ! [[ "${@}" =~ plasma|lxqt ]]; then + # Fix ugly styles for Qt applications when running under GTK-based desktops and Qt 5.7+ +- export QT_QPA_PLATFORMTHEME='qt5ct' +- unset QT_STYLE_OVERRIDE ++ # export QT_QPA_PLATFORMTHEME='qt5ct' ++ # unset QT_STYLE_OVERRIDE + fi + + echo "X session wrapper complete, running session $*" diff --git a/tasks/i3.yml b/tasks/i3.yml index d9e668b..76b55c9 100644 --- a/tasks/i3.yml +++ b/tasks/i3.yml @@ -94,3 +94,8 @@ dest: /usr/bin/pranklock mode: 0755 force: true + +- name: Patch out terrible looking QT + patch: + src: './files/xsession.patch' + dest: '/etc/lightdm/Xsession'