summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorTjw123hh2024-06-09 12:22:30 +0800
committerTjw123hh2024-06-09 12:22:30 +0800
commit572a38f86b13ab1a4e011c19dc16af4c237e0fc8 (patch)
tree386898fbc2ea43b53e9605be1a17a6313dda6af0
parent45e71e37e7f24bbe8f3dbb02f0f6c6283decbf33 (diff)
downloadaur-572a38f86b13ab1a4e011c19dc16af4c237e0fc8.tar.gz
Update environment variables to run on both Wayland and Xorg
-rw-r--r--.SRCINFO3
-rw-r--r--PKGBUILD5
-rwxr-xr-x[-rw-r--r--]org.bleachbit.BleachBit-Root.desktop3
3 files changed, 5 insertions, 6 deletions
diff --git a/.SRCINFO b/.SRCINFO
index d8e8f327bb2a..2a8ef4270fb5 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,13 +1,12 @@
pkgbase = bleachbit-root
pkgdesc = Run bleachbit as root for cleaning system files
pkgver = 1.0.2
- pkgrel = 3
+ pkgrel = 4
url = https://www.bleachbit.org/
arch = any
license = GPL
depends = bleachbit
depends = polkit
- depends = xorg-xhost
conflicts = bleachbit-cli
source = org.bleachbit.BleachBit-Root.desktop
sha256sums = 86f8438dde194afbddcf403e4ca10cb553178f1230a840e26851230297057715
diff --git a/PKGBUILD b/PKGBUILD
index a6e78e0d6514..396b18ecec8d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,14 +3,13 @@
pkgname=bleachbit-root
pkgver=1.0.2
-pkgrel=3
+pkgrel=4
pkgdesc="Run bleachbit as root for cleaning system files"
arch=('any')
url="https://www.bleachbit.org/"
license=('GPL')
depends=('bleachbit'
- 'polkit'
- 'xorg-xhost')
+ 'polkit')
conflicts=('bleachbit-cli') # Requires desktop functions for bleachbit
source=('org.bleachbit.BleachBit-Root.desktop')
sha256sums=('86f8438dde194afbddcf403e4ca10cb553178f1230a840e26851230297057715')
diff --git a/org.bleachbit.BleachBit-Root.desktop b/org.bleachbit.BleachBit-Root.desktop
index 51814c81f4b2..c086f1198c28 100644..100755
--- a/org.bleachbit.BleachBit-Root.desktop
+++ b/org.bleachbit.BleachBit-Root.desktop
@@ -1,3 +1,4 @@
+#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.1
Type=Application
@@ -121,7 +122,7 @@ GenericName[zh_CN]=无用文件清理程序
GenericName[zh_TW]=無用檔案清理器
TryExec=pkexec
TryExec=bleachbit
-Exec=pkexec bleachbit
+Exec=pkexec env DISPLAY=$DISPLAY HOME=$HOME XAUTHORITY=$XAUTHORITY HOME=$HOME USER=$USER XDG_RUNTIME_DIR=$XDG_RUNTIME_DIR WAYLAND_DISPLAY=$WAYLAND_DISPLAY bleachbit
Icon=bleachbit
Categories=System;FileTools;GTK;
Keywords=cache;clean;free;performance;privacy;