-
Notifications
You must be signed in to change notification settings - Fork 250
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
App startup fails #714
Comments
It seemed different that #713, so I opened a new bug, feel free to close it if is the same problem. |
I just notice that it crashes only on Gnome (in Fedora 36), while un KDE it works just fine. EDIT: I will take this back. Today I got the same error on KDE too. Yesterday worked fine because I lunched it from Discover 🤷 |
I have the same issue on Fedora 37, using wayland and Gnome. When I try to start the hamster GUI nothing happens and I see the following in the logs:
I installed hamster from source using the |
A simple way to reproduce the issue is by executing $ hamster
Traceback (most recent call last):
File "/usr/bin/hamster", line 415, in <module>
i18n.setup_i18n()
File "/usr/lib/python3.11/site-packages/hamster/lib/i18n.py", line 24, in setup_i18n
module.bind_textdomain_codeset('hamster','utf8')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'gettext' has no attribute 'bind_textdomain_codeset' Even though I'm no Python expert, I suspect this to be a Python 3.11 issue. I found the following line in the Python 3.11 changelog:
When I remove the offending diff --git a/src/hamster/lib/i18n.py b/src/hamster/lib/i18n.py
index 7bb89773..08488862 100644
--- a/src/hamster/lib/i18n.py
+++ b/src/hamster/lib/i18n.py
@@ -21,8 +21,6 @@ def setup_i18n():
module.bindtextdomain('hamster', locale_dir)
module.textdomain('hamster')
- module.bind_textdomain_codeset('hamster','utf8')
-
gettext.install("hamster", locale_dir)
else: |
The above is surely necessary, however installing from source (master HEAD) does not incurr into this issue anyway |
On Fedora 36, using wayland, launching Hamster from the Application list (or Dock, once pinned), does not work.
journalctl log shows this error
g_app_launch_context_launch_failed: assertion 'startup_notify_id != NULL' failed
Hamster installed via Flatpak, v3.0.2
The text was updated successfully, but these errors were encountered: