summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDonald Carr2017-09-24 11:15:48 -0700
committerDonald Carr2017-09-24 11:51:05 -0700
commit906d3a327fabd52db4bd414f93ecc20016c31d68 (patch)
tree06905a4629a0303ce11ef8e6d1e31809ad458c7b
parent25247f048aef256de522d140918f14fc886b72e7 (diff)
downloadaur-906d3a327fabd52db4bd414f93ecc20016c31d68.tar.gz
Constrain use of Qt gtk backend to Gnome session
Change-Id: I4e86e927d0331ddbab1d8abbf44c7d8c0739db91
-rw-r--r--PKGBUILD9
-rw-r--r--qt-force-gtk-platform.env1
-rw-r--r--qt-force-gtk-platform.sh1
3 files changed, 7 insertions, 4 deletions
diff --git a/PKGBUILD b/PKGBUILD
index feaabe23ebd..dbd7e2d2a6d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -27,9 +27,12 @@ build() {
}
package() {
- local profiled_dir=${pkgdir}/etc/profile.d
- mkdir -p $profiled_dir
+ local env_dir=${pkgdir}/usr/share/gdm/env.d/
+ local env_file=${startdir}/qt-force-gtk-platform.env
+
+ mkdir -p $env_dir
+ cp ${env_file} ${env_dir}
+
cd "${srcdir}/gtkplatform"
- cp ${startdir}/qt-force-gtk-platform.sh ${profiled_dir}
INSTALL_ROOT="$pkgdir" make install
}
diff --git a/qt-force-gtk-platform.env b/qt-force-gtk-platform.env
new file mode 100644
index 00000000000..341f59777f0
--- /dev/null
+++ b/qt-force-gtk-platform.env
@@ -0,0 +1 @@
+QT_QPA_PLATFORM=gtk
diff --git a/qt-force-gtk-platform.sh b/qt-force-gtk-platform.sh
deleted file mode 100644
index d3b04f68d62..00000000000
--- a/qt-force-gtk-platform.sh
+++ /dev/null
@@ -1 +0,0 @@
-export QT_QPA_PLATFORM=gtk