ActivityWatch / aw-qt

Tray icon that manages ActivityWatch processes, built with Qt.
Mozilla Public License 2.0
27 stars 29 forks source link

Open Dashboard opens in Chromium instead of my default browser Firefox #41

Closed esijg closed 4 years ago

esijg commented 5 years ago

When clicking "Open Dashboard" it opens up in Chromium rather than my default browser Firefox (on Xubuntu 18.04). Chromium also seems to hang right away.

Following is what I assume is the relevant terminal output when clicking "Open Dashboard"

/usr/bin/exo-open: symbol lookup error: /usr/lib/x86_64-linux-gnu/libexo-2.so.0: undefined symbol: gdk_display_get_default_seat
/usr/bin/exo-open: symbol lookup error: /usr/lib/x86_64-linux-gnu/libexo-2.so.0: undefined symbol: gdk_display_get_default_seat
/usr/lib/firefox/firefox: /home/johannesg/bin/activitywatch/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /usr/lib/firefox/firefox)
/usr/lib/firefox/firefox: /home/johannesg/bin/activitywatch/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /usr/lib/firefox/firefox)
/usr/bin/xdg-open: 851: /usr/bin/xdg-open: iceweasel: not found
/usr/bin/xdg-open: 851: /usr/bin/xdg-open: seamonkey: not found
/usr/bin/xdg-open: 851: /usr/bin/xdg-open: mozilla: not found
/usr/bin/xdg-open: 851: /usr/bin/xdg-open: epiphany: not found
/usr/bin/xdg-open: 851: /usr/bin/xdg-open: konqueror: not found
/usr/bin/xdg-open: 851: /usr/bin/xdg-open: chromium: not found
/usr/bin/exo-open: symbol lookup error: /usr/lib/x86_64-linux-gnu/libexo-2.so.0: undefined symbol: gdk_display_get_default_seat
/usr/bin/exo-open: symbol lookup error: /usr/lib/x86_64-linux-gnu/libexo-2.so.0: undefined symbol: gdk_display_get_default_seat
/usr/lib/firefox/firefox: /home/johannesg/bin/activitywatch/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /usr/lib/firefox/firefox)
/usr/lib/firefox/firefox: /home/johannesg/bin/activitywatch/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /usr/lib/firefox/firefox)
/usr/bin/xdg-open: 851: /usr/bin/xdg-open: iceweasel: not found
/usr/bin/xdg-open: 851: /usr/bin/xdg-open: seamonkey: not found
/usr/bin/xdg-open: 851: /usr/bin/xdg-open: mozilla: not found
/usr/bin/xdg-open: 851: /usr/bin/xdg-open: epiphany: not found
/usr/bin/xdg-open: 851: /usr/bin/xdg-open: konqueror: not found
/usr/bin/xdg-open: 851: /usr/bin/xdg-open: chromium: not found

Running xdg-open http://localhost:5600 straight from the terminal runs firefox without problems.

johan-bjareholt commented 5 years ago

Yeah, this is because of PyInstaller bundling a custom version of xdg-open which mostly works but not always. We really need to migrate away from pyinstaller on aw-qt since it does not work reliably at all.

So the solution to this issue would to either rewrite it in some other language or package it with flatpak/snap.

https://github.com/ActivityWatch/aw-qt/issues/32

ErikBjare commented 4 years ago

This should have been fixed by https://github.com/ActivityWatch/aw-qt/pull/59 and will be available in the next release. Closing.