aboutsummaryrefslogtreecommitdiffstats
path: root/install.sh
diff options
context:
space:
mode:
Diffstat (limited to 'install.sh')
-rwxr-xr-xinstall.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/install.sh b/install.sh
index 464bde9..ecddadd 100755
--- a/install.sh
+++ b/install.sh
@@ -15,7 +15,8 @@
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-# ./install.sh symlink the launcher into ~/bin (BINDIR overrides),
+# ./install.sh symlink the launcher into ~/bin (BINDIR overrides) and
+# the .desktop entry into ~/.local/share/applications,
# create the GUI config from the example if missing
# ./install.sh --remote deploy remote/sbb-remote to the VM (SBB_TARGET,
# default buildsystem) and create its config if missing
@@ -39,7 +40,9 @@ fi
bindir=${BINDIR:-$HOME/bin}
cfgdir=${XDG_CONFIG_HOME:-$HOME/.config}/sb-builder
-mkdir -p "$bindir" "$cfgdir"
+appdir=${XDG_DATA_HOME:-$HOME/.local/share}/applications
+mkdir -p "$bindir" "$cfgdir" "$appdir"
ln -sfn "$here/sb-builder" "$bindir/sb-builder"
+ln -sfn "$here/sb-builder.desktop" "$appdir/sb-builder.desktop"
[[ -e $cfgdir/config.toml ]] || cp "$here/config.example.toml" "$cfgdir/config.toml"
echo "installed $bindir/sb-builder -> $here/sb-builder, config in $cfgdir/config.toml"