Skip to content

Commit e58b010

Browse files
committed
Fix unity import
1 parent 628dbc2 commit e58b010

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/windows/main_window.py

+2
Original file line numberDiff line numberDiff line change
@@ -2787,6 +2787,8 @@ def __init__(self, mode=None):
27872787
if "linux" in sys.platform:
27882788
try:
27892789
# Get connection to Unity Launcher
2790+
import gi
2791+
gi.require_version('Unity', '7.0')
27902792
from gi.repository import Unity
27912793
self.unity_launcher = Unity.LauncherEntry.get_for_desktop_id(info.DESKTOP_ID)
27922794
except Exception:

0 commit comments

Comments
 (0)