From bee840d63ddb451a9796016ccc7140bb00c1996b Mon Sep 17 00:00:00 2001 From: Sergiu Cuciurean Date: Tue, 20 Jul 2021 13:50:44 +0300 Subject: [PATCH] stage6: Add scopy shortcuts Add scopy shortcut to the menu bar and an alias to bashrc. Signed-off-by: Sergiu Cuciurean Conflicts: stage6/04-gnuradio-m2k/00-run.sh --- stage6/04-gnuradio-m2k/00-run.sh | 29 ++++++++++++++++++++++------- 1 file changed, 22 insertions(+), 7 deletions(-) diff --git a/stage6/04-gnuradio-m2k/00-run.sh b/stage6/04-gnuradio-m2k/00-run.sh index ca306b894b..61ce2931bf 100755 --- a/stage6/04-gnuradio-m2k/00-run.sh +++ b/stage6/04-gnuradio-m2k/00-run.sh @@ -146,13 +146,28 @@ build_libsigrokdecode() { } install_scopy() { - [ -f "Scopy.flatpak" ] || { - wget ${SCOPY} - unzip ${SCOPY_ARCHIVE} - } - - flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo - flatpak install Scopy.flatpak --assumeyes + [ -f "Scopy.flatpak" ] || { + wget ${SCOPY} + unzip ${SCOPY_ARCHIVE} + flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo + flatpak install Scopy.flatpak --assumeyes + mkdir -p /usr/local/share/scopy + wget https://raw.githubusercontent.com/analogdevicesinc/scopy/86ddd9dce67b2d90e7e52801d6bf730859153c4f/resources/icon_big.svg + mv icon_big.svg /usr/local/share/scopy/icon.svg + } + echo " + [Desktop Entry] + Version=1.1 + Type=Application + Encoding=UTF-8 + Name=Scopy + Comment=ADI + Icon=/usr/local/share/scopy/icon.svg + Exec=flatpak run org.adi.Scopy + Terminal=false + Categories=Science" > /usr/share/applications/Scopy.desktop + echo "alias scopy='flatpak run org.adi.Scopy'" >> /root/.bashrc + echo "alias scopy='flatpak run org.adi.Scopy'" >> /home/analog/.bashrc } install_scopy