Update PKGBUILD

Update for wayland only
This commit is contained in:
G34RZ 2025-04-09 20:23:26 -07:00
parent eff6338de7
commit 3a1851915a
1 changed files with 2 additions and 5 deletions

View File

@ -40,11 +40,8 @@ package() {
# Install binary
install -Dm755 system76-power-gui "$pkgdir/usr/bin/system76-power-gui"
# Create appropriate desktop entry based on system
if [ -n "${WAYLAND_DISPLAY}" ] || [ "${XDG_SESSION_TYPE}" = "wayland" ] || [ -n "${WAYLAND_SOCKET}" ]; then
# Install Wayland desktop entry
# Install for Wayland
install -Dm644 system76-power-gui.desktop "$pkgdir/usr/share/applications/system76-power-gui.desktop"
fi
# Install polkit rules
install -Dm644 90-system76-power.rules "$pkgdir/usr/share/polkit-1/rules.d/90-system76-power.rules"