Skip to content

Commit c13747f

Browse files
committed
fix: allow user to see error messages when url handler fails
Applies something similar to what was recommended in #438 (though this doesn't solve that issue) Tested: - built binary - ran install from binary - ran logos from binary - accomplished sign on - checked desktop in ~/.local/share/applications to ensure it looked right - simulated failure in edited script, echo displays properly.
1 parent 6d03b52 commit c13747f

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

ou_dedetai/installer.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,13 @@ def create_launcher_shortcuts(app: App):
623623
filename=url_handler_desktop_filename,
624624
app_name=f"{flproduct} URL Handler",
625625
comment="Handles logos4: and libronixdls: URL Schemes",
626-
exec_cmd=f"{oudedetai_executable} --wine '{app.conf.logos_exe_windows_path.replace('\\','\\\\')}' '%u'",
626+
exec_cmd=(
627+
f"/bin/sh -c \""
628+
f"({oudedetai_executable} --wine '{app.conf.logos_exe_windows_path.replace('\\','\\\\')}' ''%u'') "
629+
"|| (echo 'Failed to spawn logos. If you are logging in please hit the link for not being redirected "
630+
"automatically then the link for still having trouble. If you contact support please attach this log'"
631+
"; sleep 60; exit 1); wait\""
632+
),
627633
icon_path=app_icon_path,
628634
mime_types=["x-scheme-handler/logos4","x-scheme-handler/libronixdls"],
629635
terminal=True

0 commit comments

Comments
 (0)