Skip to content

Commit 1ba6eda

Browse files
committed
feat(snap): add openshell.term desktop app
Add a desktop launcher for the OpenShell TUI so users can launch "openshell term" from their desktop environment application menu. The change adds three files: - snap/local/term.desktop: desktop entry file for the application launcher - snap/local/icon.png: application icon (copied from snap store data) - snapcraft.yaml: new "term" app entry that runs "openshell term" with home, network, ssh-keys, and system-observe plugs, plus install rules to stage the desktop file and icon under meta/gui/ The desktop file references the icon via ${SNAP} which is resolved at runtime to the snap installation directory. The term app reuses the same connection plugs as the main openshell app. Signed-off-by: Zygmunt Krynicki <[email protected]>
1 parent f061b1d commit 1ba6eda

3 files changed

Lines changed: 21 additions & 0 deletions

File tree

‎snap/local/icon.png‎

16.2 KB
Loading

‎snap/local/term.desktop‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[Desktop Entry]
2+
Name=OpenShell
3+
Comment=OpenShell terminal UI for managing sandboxes and gateways
4+
Exec=openshell.term
5+
Icon=${SNAP}/meta/gui/icon.png
6+
Terminal=true
7+
Type=Application
8+
Categories=Development;
9+
StartupNotify=true

‎snapcraft.yaml‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,14 @@ apps:
3535
- network
3636
- ssh-keys
3737
- system-observe
38+
term:
39+
command: bin/openshell term
40+
desktop: meta/gui/term.desktop
41+
plugs:
42+
- home
43+
- network
44+
- ssh-keys
45+
- system-observe
3846
gateway:
3947
command: bin/openshell-gateway-wrapper
4048
daemon: simple
@@ -84,6 +92,10 @@ parts:
8492
"$CRAFT_PART_INSTALL/bin/openshell-sandbox"
8593
install -D -m 0755 "$CRAFT_PROJECT_DIR/deploy/snap/bin/openshell-gateway-wrapper" \
8694
"$CRAFT_PART_INSTALL/bin/openshell-gateway-wrapper"
95+
install -D -m 0644 "$CRAFT_PROJECT_DIR/snap/local/term.desktop" \
96+
"$CRAFT_PART_INSTALL/meta/gui/term.desktop"
97+
install -D -m 0644 "$CRAFT_PROJECT_DIR/snap/local/icon.png" \
98+
"$CRAFT_PART_INSTALL/meta/gui/icon.png"
8799
install -D -m 0644 "$CRAFT_PROJECT_DIR/LICENSE" \
88100
"$CRAFT_PART_INSTALL/usr/share/doc/openshell/LICENSE"
89101
install -D -m 0644 "$CRAFT_PROJECT_DIR/README.md" \

0 commit comments

Comments
 (0)