Skip to content

Commit

Permalink
Update package
Browse files Browse the repository at this point in the history
  • Loading branch information
Eeems authored Jun 28, 2024
1 parent 0eb4c36 commit e431d9e
Showing 1 changed file with 8 additions and 20 deletions.
28 changes: 8 additions & 20 deletions package
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ build() {
oxide() {
pkgdesc="Launcher application"
section="launchers"
installdepends=("oxide-utils=$pkgver" "liboxide=$pkgver" "libsentry=$_sentryver" "reboot-guard" "sysfs_preload")
installdepends=("oxide-utils=$pkgver" "liboxide=$pkgver" "libsentry=$_sentryver" reboot-guard jq display launcherctl)
replaces=(erode tarnish decay corrupt)
conflicts=(erode tarnish decay corrupt)

Expand Down Expand Up @@ -55,25 +55,19 @@ oxide() {

configure() {
systemctl daemon-reload
if is-active "tarnish.service"; then
update-desktop-database
fi
if ! is-enabled "tarnish.service"; then

if ! launcherctl is-current-launcher oxide; then
echo ""
echo "Run the following command(s) to use $pkgname as your launcher"
how-to-enable "tarnish.service"
echo "Run the following command(s) to use oxide as your launcher"
echo "launcherctl switch-launcher --start oxide"
echo ""
fi
}

preremove() {
if is-active tarnish; then
echo "Stopping tarnish"
systemctl stop tarnish
fi
if is-enabled tarnish; then
echo "Disabling tarnish"
systemctl disable tarnish
# Just in case more than one launcher is active, do individual checks
if launcherctl is-active-launcher oxide || launcherctl is-enabled-launcher oxide; then
launcherctl switch-launcher --start xochitl
fi
}

Expand All @@ -99,12 +93,6 @@ oxide-extra() {
install -D -m 644 -t "$pkgdir"/opt/usr/share/icons/oxide/48x48/apps "$srcdir"/release/opt/usr/share/icons/oxide/48x48/apps/image.png
install -D -m 644 -t "$pkgdir"/opt/usr/share/icons/oxide/702x702/splash "$srcdir"/release/opt/usr/share/icons/oxide/702x702/splash/anxiety.png
}

configure() {
if is-active "tarnish.service"; then
update-desktop-database
fi
}
}

oxide-utils() {
Expand Down

0 comments on commit e431d9e

Please sign in to comment.