Skip to content

Commit 330b9ff

Browse files
committed
cs_default.py: Don't import gi.repository.*
It's not good practice, and: #13091 (comment)
1 parent ea22da1 commit 330b9ff

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

files/usr/share/cinnamon/cinnamon-settings/modules/cs_default.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44

55
from SettingsWidgets import SidePage
66
from xapp.GSettingsWidgets import *
7-
from gi.repository import *
7+
8+
import gi
9+
gi.require_version('GioUnix', '2.0')
10+
from gi.repository import Gio, GioUnix, Gtk
811

912
PREF_MEDIA_AUTORUN_NEVER = "autorun-never"
1013
PREF_MEDIA_AUTORUN_X_CONTENT_START_APP = "autorun-x-content-start-app"

0 commit comments

Comments
 (0)