Skip to content

Commit

Permalink
minor usability tweaks for ISO
Browse files Browse the repository at this point in the history
  • Loading branch information
mmguero committed Mar 8, 2023
1 parent a4506eb commit 3084dcb
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[Desktop Entry]
Encoding=UTF-8
Name=set-malcolm-gtk-bookmark
Comment=Add Malcolm directory to GTK-3.0 bookmarks
Exec=/usr/local/bin/set-malcolm-gtk-bookmark.sh
Terminal=false
Type=Application
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
file:///opt/sensor/sensor_ctl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Version=1.0
Name=Tilix
Comment=A tiling terminal for Gnome
Keywords=shell;prompt;command;commandline;cmd;
Exec=tilix
Exec=tilix --working-directory=/opt/sensor/sensor_ctl
Terminal=false
Type=Application
StartupNotify=true
Expand All @@ -15,11 +15,11 @@ X-XFCE-Source=file:///usr/share/applications/com.gexperts.Tilix.desktop

[Desktop Action new-window]
Name=New Window
Exec=tilix --action=app-new-window
Exec=tilix --action=app-new-window --working-directory=/opt/sensor/sensor_ctl

[Desktop Action new-session]
Name=New Session
Exec=tilix --action=app-new-session
Exec=tilix --action=app-new-session --working-directory=/opt/sensor/sensor_ctl

[Desktop Action preferences]
Name=Preferences
Expand Down
8 changes: 8 additions & 0 deletions shared/bin/set-malcolm-gtk-bookmark.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

# Copyright (c) 2023 Battelle Energy Alliance, LLC. All rights reserved.

if ! grep -q Malcolm$ "$HOME"/.config/gtk-3.0/bookmarks && [[ -d "$HOME"/Malcolm ]]; then
mkdir -p "$HOME"/.config/gtk-3.0/
echo -e "\nfile://$HOME/Malcolm" >> "$HOME"/.config/gtk-3.0/bookmarks
fi

0 comments on commit 3084dcb

Please sign in to comment.