main/postmarketos-hidden-desktop-entries: modernize (MR 2093)
Use replaces="" to overwrite files in /usr/share/applications, instead of creating files for /etc/skel/.local/share/applications. This way, we can add new overrides when upgrading the package, not only initially when creating the user's home dir from /etc/skel. Remove v20.05 related comment, and "firefox-safe.desktop" override, which is now "org.mozilla.firefox-safe.desktop". Add org.gnome.Glade.desktop from glade, which gets pulled in by libhandy1-dev (e.g. when installing makedepends for phosh). (Users who really want to start glade on postmarketOS can either do it with the command line, or uninstall postmarketos-hidden-desktop-entries, or replace the file in /etc/ with the original .desktop entry. For everyone else who just installed glade as makedepend, it removes one awkward desktop launcher.) I looked into modernizing this package to hide launchers that appeared for GTK4 (issue 1029). However, this should be fixed in Alpine's gtk package: https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/20116
This commit is contained in:
parent
259c9eefe5
commit
08acabdb05
1 changed files with 22 additions and 10 deletions
|
@ -1,35 +1,47 @@
|
||||||
# Maintainer: Oliver Smith <ollieparanoid@postmarketos.org>
|
# Maintainer: Oliver Smith <ollieparanoid@postmarketos.org>
|
||||||
pkgname=postmarketos-hidden-desktop-entries
|
pkgname=postmarketos-hidden-desktop-entries
|
||||||
pkgver=1.3
|
pkgver=2.0
|
||||||
pkgrel=0
|
pkgrel=0
|
||||||
pkgdesc="Hide useless .desktop icons (vim, htop, Firefox safe mode, ...)"
|
pkgdesc="Hide useless .desktop icons (vim, htop, Firefox safe mode, ...)"
|
||||||
url="https://postmarketos.org"
|
url="https://postmarketos.org"
|
||||||
arch="noarch"
|
arch="noarch"
|
||||||
license="GPL-3.0-or-later"
|
license="GPL-3.0-or-later"
|
||||||
source="nodisplay.desktop"
|
source="nodisplay.desktop"
|
||||||
|
options="!check"
|
||||||
|
replaces="
|
||||||
|
eog
|
||||||
|
firefox
|
||||||
|
firefox-esr
|
||||||
|
glade
|
||||||
|
gnome-shell
|
||||||
|
gvim
|
||||||
|
htop
|
||||||
|
neovim
|
||||||
|
vim
|
||||||
|
"
|
||||||
|
|
||||||
# Find original .desktop files in /usr/share/applications
|
# Find original .desktop files in /usr/share/applications. Add original
|
||||||
# v20.05: must hide org.gnome.Cheese (doesn't have aports!12086)
|
# providers of the .desktop file to replaces="" above. They can be found here:
|
||||||
|
# https://pkgs.alpinelinux.org/contents?file=htop.desktop
|
||||||
_hidden="
|
_hidden="
|
||||||
firefox-safe
|
|
||||||
htop
|
htop
|
||||||
nvim
|
nvim
|
||||||
org.gnome.eog
|
|
||||||
org.gnome.Extensions
|
org.gnome.Extensions
|
||||||
|
org.gnome.Glade
|
||||||
|
org.gnome.eog
|
||||||
org.mozilla.firefox-safe
|
org.mozilla.firefox-safe
|
||||||
vim
|
vim
|
||||||
"
|
"
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
local nodisplay="/usr/share/applications/nodisplay.desktop"
|
local dir="$pkgdir/usr/share/applications/"
|
||||||
local local_dir="$pkgdir/etc/skel/.local/share/applications"
|
|
||||||
local i
|
local i
|
||||||
|
|
||||||
install -Dm644 "$srcdir/nodisplay.desktop" "$pkgdir/$nodisplay"
|
install -Dm644 "$srcdir/nodisplay.desktop" -t "$dir"
|
||||||
|
|
||||||
mkdir -p "$local_dir"
|
cd "$dir"
|
||||||
for i in $_hidden; do
|
for i in $_hidden; do
|
||||||
ln -vs "$nodisplay" "$local_dir/$i.desktop"
|
ln -vs "nodisplay.desktop" "$i.desktop"
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
sha512sums="97b7aff6ff8f8451a654ae002500a4a56f289a2318ece759aa7705836e246a7fd33602a21bee48a8b2a1f6f513ac9835c039d75eb6c031cceea9b58dd2aeaea9 nodisplay.desktop"
|
sha512sums="97b7aff6ff8f8451a654ae002500a4a56f289a2318ece759aa7705836e246a7fd33602a21bee48a8b2a1f6f513ac9835c039d75eb6c031cceea9b58dd2aeaea9 nodisplay.desktop"
|
||||||
|
|
Loading…
Reference in a new issue