not1mm desktop file
This commit is contained in:
@@ -169,6 +169,8 @@ rm -f ~/.local/share/applications/potacat.desktop
|
|||||||
rm -f ~/.local/share/applications/qttermtcp.desktop
|
rm -f ~/.local/share/applications/qttermtcp.desktop
|
||||||
rm -f ~/.local/share/applications/paracon.desktop
|
rm -f ~/.local/share/applications/paracon.desktop
|
||||||
rm -f ~/.local/share/applications/hampack.desktop
|
rm -f ~/.local/share/applications/hampack.desktop
|
||||||
|
rm -f ~/.local/share/applications/k6gte-not1mm.desktop
|
||||||
|
rm -f ~/.local/share/icons/hicolor/*/apps/k6gte-not1mm.png
|
||||||
rm -f ~/.local/share/icons/hicolor/*/apps/computer.young.HamPack.png
|
rm -f ~/.local/share/icons/hicolor/*/apps/computer.young.HamPack.png
|
||||||
|
|
||||||
update-desktop-database "$HOME/.local/share/applications/" 2>/dev/null || true
|
update-desktop-database "$HOME/.local/share/applications/" 2>/dev/null || true
|
||||||
|
|||||||
@@ -56,6 +56,19 @@ install_not1mm() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# not1mm installs its own launcher only on first run, so install it up front
|
||||||
|
install_not1mm_desktop() {
|
||||||
|
local uv data
|
||||||
|
uv=$(command -v uv || echo "$HOME/.local/bin/uv")
|
||||||
|
data=$(echo "$("$uv" tool dir)"/not1mm/lib/python3*/site-packages/not1mm/data)
|
||||||
|
[ -f "$data/k6gte-not1mm.desktop" ] || return 1
|
||||||
|
for size in 32 64 128; do
|
||||||
|
xdg-icon-resource install --size "$size" --context apps --mode user \
|
||||||
|
"$data/k6gte.not1mm-$size.png" k6gte-not1mm || return 1
|
||||||
|
done
|
||||||
|
xdg-desktop-menu install --mode user "$data/k6gte-not1mm.desktop"
|
||||||
|
}
|
||||||
|
|
||||||
install_dxpy() {
|
install_dxpy() {
|
||||||
wget -q https://raw.githubusercontent.com/HB9VQQ/dx.py/main/dx.py -O "$HOME/.local/bin/dx.py" &&
|
wget -q https://raw.githubusercontent.com/HB9VQQ/dx.py/main/dx.py -O "$HOME/.local/bin/dx.py" &&
|
||||||
chmod +x "$HOME/.local/bin/dx.py"
|
chmod +x "$HOME/.local/bin/dx.py"
|
||||||
@@ -80,6 +93,7 @@ step "Installing pre-built binaries" bash "$SELF/install-binaries.sh"
|
|||||||
step "Installing compiled applications" bash "$SELF/install-compiled.sh"
|
step "Installing compiled applications" bash "$SELF/install-compiled.sh"
|
||||||
step "Installing Windows applications" bash "$SELF/install-windows-apps.sh"
|
step "Installing Windows applications" bash "$SELF/install-windows-apps.sh"
|
||||||
step "Installing not1mm" install_not1mm
|
step "Installing not1mm" install_not1mm
|
||||||
|
step "Installing not1mm desktop file" install_not1mm_desktop
|
||||||
step "Installing dx.py" install_dxpy
|
step "Installing dx.py" install_dxpy
|
||||||
step "Installing desktop files" install_desktop_files
|
step "Installing desktop files" install_desktop_files
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user