Skip to content

Commit

Permalink
add flags for enabling optional persistent path from shortcuts
Browse files Browse the repository at this point in the history
  • Loading branch information
bmaranville committed Oct 22, 2024
1 parent d893b05 commit 30d7427
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion extra/platform_scripts/make_linux_desktop_shortcut.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ script_dir=$(realpath $(dirname $0))
echo "[Desktop Entry]
Name=Refl1d-Webview
Comment=Start the refl1d webview server
Exec='$script_dir/env/bin/python' -m refl1d.webview.server
Exec='$script_dir/env/bin/python' -m refl1d.webview.server --use_persistent_path
Icon=$script_dir/env/share/icons/refl1d-icon.svg
Terminal=true
Type=Application
Expand Down
2 changes: 1 addition & 1 deletion extra/platform_scripts/refl1d_webview.app/refl1d_webview
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on run argv
set base_path to container of (container of (path to me)) as alias
end tell
set env_activate to "source " & quoted form of ((POSIX path of base_path) & "env/bin/activate") & ";"
set run_server_and_terminate to ( " python" & " -m" & " refl1d.webview.server;" & " exit;")
set run_server_and_terminate to ( " python" & " -m" & " refl1d.webview.server --use_persistent_path;" & " exit;")
if application "Terminal" is not running then
tell application "Terminal"
activate
Expand Down
2 changes: 1 addition & 1 deletion extra/platform_scripts/refl1d_webview.bat
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@echo off
rem start "Refl1d Web GUI"
call "%~dp0env\Scripts\activate.bat"
start "Refl1D Webview" "python.exe" "-m" "refl1d.webview.server"
start "Refl1D Webview" "python.exe" "-m" "refl1d.webview.server" "--use_persistent_path"

0 comments on commit 30d7427

Please sign in to comment.