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

fix: replace webbrowser.open with xdg-open with original LD_LIBRARY_PATH #59

Merged
merged 1 commit into from
Jun 26, 2020

Conversation

johan-bjareholt
Copy link
Member

Attempt at fixing #20 and ActivityWatch/activitywatch#208

@johan-bjareholt johan-bjareholt force-pushed the dev/fix-buggy-webbrowser-open branch 2 times, most recently from db6a834 to 9ac3d98 Compare June 25, 2020 06:30
@ActivityWatch ActivityWatch deleted a comment from lgtm-com bot Jun 25, 2020
@ActivityWatch ActivityWatch deleted a comment from lgtm-com bot Jun 25, 2020
@johan-bjareholt
Copy link
Member Author

Could someone who has this issue try either to build this PR from source and package it with PyInstaller or try out this pre-built package?
https://gofile.io/d/Z1wrgb

Copy link
Member

@ErikBjare ErikBjare left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Haven't tested yet, but looks good in principle

def open_webui(root_url):
print("Opening dashboard")
webbrowser.open(root_url)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will fail on every OS except those with xdg-open. Should probably add a check for that and fall back to using webbrowser.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

@rapiz1
Copy link

rapiz1 commented Jun 26, 2020

I'm happy to tell you that it works on my machine. I'm not sure about what version information you need. Anyway, here's something you may find useful.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants