2024-01-08 12:07:29 +01:00
|
|
|
#!/usr/bin/env bash
|
2024-08-03 10:40:17 +02:00
|
|
|
# This script partially reverts
|
|
|
|
# https://gitea.blesmrt.net/mikaela/scripts/commit/e76a4a6a0d0472428d519205543171b1b1cdc258
|
2024-01-09 07:03:44 +01:00
|
|
|
|
|
|
|
export FLATPAKEXPORTS=/var/lib/flatpak/exports/bin
|
2024-02-25 18:47:04 +01:00
|
|
|
#export TARGETDIR=~/.local/bin
|
|
|
|
export TARGETDIR=/usr/local/bin
|
2024-01-09 07:03:44 +01:00
|
|
|
|
2024-01-08 12:07:29 +01:00
|
|
|
set -x
|
2024-02-25 18:47:04 +01:00
|
|
|
mkdir -p $TARGETDIR
|
2024-02-24 08:32:45 +01:00
|
|
|
ln -sfv $FLATPAKEXPORTS/com.rafaelmardojai.Blanket $TARGETDIR/blanket
|
2024-01-08 12:07:29 +01:00
|
|
|
# `flatpak make-current org.briarproject.Briar stable`?
|
2024-04-28 12:47:34 +02:00
|
|
|
#ln -sfv $FLATPAKEXPORTS/org.briarproject.Briar $TARGETDIR/briar
|
2024-02-24 08:32:45 +01:00
|
|
|
ln -sfv $FLATPAKEXPORTS/org.claws_mail.Claws-Mail $TARGETDIR/claws-mail
|
|
|
|
ln -sfv $FLATPAKEXPORTS/com.github.tchx84.Flatseal $TARGETDIR/flatseal
|
2024-01-12 09:26:39 +01:00
|
|
|
|
2024-06-05 08:34:43 +02:00
|
|
|
#ln -sfv $FLATPAKEXPORTS/org.telegram.desktop $TARGETDIR/telegram-desktop
|
2024-02-24 08:32:45 +01:00
|
|
|
ln -sfv $FLATPAKEXPORTS/org.torproject.torbrowser-launcher $TARGETDIR/torbrowser-launcher-flatpak
|
|
|
|
ln -sfv $FLATPAKEXPORTS/org.videolan.VLC $TARGETDIR/vlc-flatpak
|
2024-09-01 19:04:00 +02:00
|
|
|
ln -sfv $FLATPAKEXPORTS/io.mpv.Mpv $TARGETDIR/mpv-flatpak
|
2024-02-24 08:32:45 +01:00
|
|
|
ln -sfv $FLATPAKEXPORTS/net.davidotek.pupgui2 $TARGETDIR/protonup
|
2024-02-25 18:46:15 +01:00
|
|
|
ln -sfv $FLATPAKEXPORTS/im.dino.Dino $TARGETDIR/dino
|
2024-01-12 09:26:39 +01:00
|
|
|
|
|
|
|
# Electron apps that actually need wrappers and flags
|
2024-02-24 08:32:45 +01:00
|
|
|
#ln -sfv $FLATPAKEXPORTS/com.visualstudio.code $TARGETDIR/code
|
|
|
|
#ln -sfv $FLATPAKEXPORTS/com.vscodium.codium $TARGETDIR/codium
|
|
|
|
#ln -sfv $FLATPAKEXPORTS/chat.delta.desktop $TARGETDIR/deltachat
|
|
|
|
#ln -sfv $FLATPAKEXPORTS/im.riot.Riot $TARGETDIR/element
|
|
|
|
#ln -sfv $FLATPAKEXPORTS/chat.schildi.desktop $TARGETDIR/schildichat
|
|
|
|
#ln -sfv $FLATPAKEXPORTS/org.signal.Signal $TARGETDIR/signal-desktop
|
2024-01-12 09:26:39 +01:00
|
|
|
|
2024-08-03 10:40:17 +02:00
|
|
|
# If symlinks is installed, run it against the target directory so dangling
|
|
|
|
# symlinks get removed and the path isn't polluted by non-existent items.
|
|
|
|
if hash symlinks 2> /dev/null; then
|
|
|
|
symlinks -d $TARGETDIR
|
|
|
|
else
|
|
|
|
echo "WARNING! Executable named symlinks not found in PATH."
|
|
|
|
fi
|
|
|
|
|
2024-01-08 12:07:29 +01:00
|
|
|
set +x
|