livMatS / dtool-lookup-gui

Graphical user interface for dtool
Other
8 stars 2 forks source link

README.md not explicit enough #247

Open mcoywalter opened 1 year ago

mcoywalter commented 1 year ago

At least for linux it is not clear what to do with e.g. dtool-lookup-gui-0.6.2-linux.tar.gz Where to extract it to? Which directory structure is assumed by the scripts soft_link_launcher.sh and set_launcher_icon.sh?

jotelha commented 1 year ago

You can extract the archive anywhere, the contained executable dtool-lookup-gui should run out-of-the-box.

Those little helper scripts soft_link_launcher.sh and set_launcher_icon.sh assume a wrong (outdated) file structure, will fix this for the next release. They should have the content

#!/bin/bash -e

#
# Run this to update the launcher file with the current path to the application icon
#

APPDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
if [ -w "$APPDIR"/dtool-lookup-gui.desktop ]; then
        sed -i -e "s@^Icon=.*@Icon=$APPDIR/dtool_logo.png@" "$APPDIR"/dtool-lookup-gui.desktop
else
        echo "$APPDIR"/dtool-lookup-gui.desktop is not writable
        exit 1
fi

for set_launcher_icon.sh and

#!/bin/bash
#
# Place link to desktop launcher within appropriate place below home folder
#
APPDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
mkdir -p "${HOME}/.local/share/applications"
ln -sf "${APPDIR}/dtool-lookup-gui.desktop" "${HOME}/.local/share/applications/dtool-lookup-gui.desktop"

for soft_link_launcher.sh, and run consecutively. But actually they only serve the purpose of creating this dtool launcher icon on Ubuntu,

image

You can as well just ignore them.