Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add flags for enabling optional persistent path from shortcuts #211

Merged
merged 1 commit into from
Oct 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
Loading