diff options
| author | Danilo M. <danix@danix.xyz> | 2026-10-20 10:11:42 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-10-20 10:11:42 +0200 |
| commit | 7deece04759c0efd2cca73d4af96479b343c2ae4 (patch) | |
| tree | 672d95cfa285b38ec4aaa67cf752039fd64755fd /install.sh | |
| parent | cfa751fc97893276abfa7b518265835d788af374 (diff) | |
| download | sb-builder-7deece04759c0efd2cca73d4af96479b343c2ae4.tar.gz sb-builder-7deece04759c0efd2cca73d4af96479b343c2ae4.zip | |
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 <noreply@anthropic.com>
Diffstat (limited to 'install.sh')
| -rwxr-xr-x | install.sh | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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" |
