From 7deece04759c0efd2cca73d4af96479b343c2ae4 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Tue, 20 Oct 2026 10:11:42 +0200 Subject: Add a .desktop entry, linked by install.sh Exec=sb-builder relies on ~/bin being on the session PATH, as for the other launchers there. setDesktopFileName lets Wayland compositors match the window to the entry. Co-Authored-By: Claude Opus 5.5 --- install.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'install.sh') 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" -- cgit v1.2.3