mirror of
https://github.com/JoinMarket-Org/joinmarket-clientserver.git
synced 2026-08-13 12:33:40 +02:00
Install XDG desktop entry for JoinMarketQt
This commit is contained in:
parent
ebd4a82403
commit
cfc4869ac9
2 changed files with 20 additions and 1 deletions
13
install.sh
13
install.sh
|
|
@ -276,13 +276,24 @@ joinmarket_install ()
|
|||
{
|
||||
reqs=( 'base.txt' )
|
||||
|
||||
if [[ ${with_qt} = "1" ]]; then
|
||||
if [[ ${with_qt} == "1" ]]; then
|
||||
reqs+=( 'gui.txt' )
|
||||
fi
|
||||
|
||||
for req in ${reqs[@]}; do
|
||||
pip install -r "requirements/${req}" || return 1
|
||||
done
|
||||
|
||||
if [[ ${with_qt} == "1" ]]; then
|
||||
if check_exists xdg-open; then
|
||||
echo "Installing XDG desktop entry"
|
||||
cp -f "$(dirname "$0")/docs/images/joinmarket_logo.png" \
|
||||
~/.local/share/icons/
|
||||
cat "$(dirname "$0")/joinmarket-qt.desktop" | \
|
||||
sed "s/\\\$JMHOME/$(dirname "$(realpath "$0")" | sed 's/\//\\\//g')/" > \
|
||||
~/.local/share/applications/joinmarket-qt.desktop
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
parse_flags ()
|
||||
|
|
|
|||
8
joinmarket-qt.desktop
Normal file
8
joinmarket-qt.desktop
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
#!/usr/bin/env xdg-open
|
||||
[Desktop Entry]
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Terminal=false
|
||||
Name=JoinMarketQt
|
||||
Exec=$JMHOME/scripts/joinmarket-qt.sh
|
||||
Icon=joinmarket_logo
|
||||
Loading…
Add table
Add a link
Reference in a new issue