diff options
| author | Victor Kareh <[email protected]> | 2026-06-25 16:48:23 -0400 |
|---|---|---|
| committer | Victor Kareh <[email protected]> | 2026-06-25 16:51:05 -0400 |
| commit | 7a670104780b983e9a815a5a3142afc2b4c98789 (patch) | |
| tree | 23c3edc97a6b84163611dcbabac82600aa835f46 /Mozo/util.py | |
| parent | 129b1e13bff0d1430bcc8c3fb56b49081de59f0f (diff) | |
| download | mozo-fix-giounix-require-version.tar.bz2 mozo-fix-giounix-require-version.tar.xz | |
Fix crash on distros due to missing GioUnix namespacefix-giounix-require-version
On some distros mozo crashes if GioUnix is not loaded first.
Fixes #101
Diffstat (limited to 'Mozo/util.py')
| -rw-r--r-- | Mozo/util.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Mozo/util.py b/Mozo/util.py index a9bde70..e61945c 100644 --- a/Mozo/util.py +++ b/Mozo/util.py @@ -22,6 +22,10 @@ import re import xml.dom.minidom import gi gi.require_version('Gtk', '3.0') +try: + gi.require_version('GioUnix', '2.0') +except ValueError: + pass gi.require_version('MateMenu', '2.0') from collections.abc import Sequence from gi.repository import GLib, Gtk, Gdk, GdkPixbuf |
