コード例 #1
0
#!/usr/bin/env python2
"""
Caja plugin for Syncthing-GTK
See syncthing_gtk/nautilusplugin.py for more info
"""

from gi.repository import Caja

# Setting this environment variable will prevent __init__ in
# syncthing_gtk package from loading stuff that depends on GTK3-only
# features. It probably breaks other modules in most horrible ways,
# but they are not going to be used anyway
import os
os.environ["GTK2APP"] = "1"

from syncthing_gtk.nautilusplugin import build_class
CajaExtensionCls = build_class(Caja)
コード例 #2
0
#!/usr/bin/env python2
"""
Nemo plugin for Syncthing-GTK
See syncthing_gtk/nautilusplugin.py for more info
"""

from gi.repository import Nemo
from syncthing_gtk import nautilusplugin

NemoExtensionCls = nautilusplugin.build_class(Nemo)
コード例 #3
0
#!/usr/bin/env python2
"""
Nemo plugin for Syncthing-GTK
See syncthing_gtk/nautilusplugin.py for more info
"""

from gi.repository import Nemo
from syncthing_gtk.nautilusplugin import build_class

NemoExtensionCls = build_class(Nemo)
コード例 #4
0
#!/usr/bin/env python2
"""
Caja plugin for Syncthing-GTK
See syncthing_gtk/nautilusplugin.py for more info
"""

from gi.repository import Caja

# Setting this environment variable will prevent __init__ in
# syncthing_gtk package from loading stuff that depends on GTK3-only
# features. It probably breaks other modules in most horrible ways,
# but they are not going to be used anyway
import os
os.environ["GTK2APP"] = "1"

from syncthing_gtk import nautilusplugin
CajaExtensionCls = nautilusplugin.build_class(Caja)
コード例 #5
0
#!/usr/bin/env python2
"""
Nautilus plugin for Syncthing-GTK
See syncthing_gtk/nautilusplugin.py for more info
"""

from gi.repository import Nautilus
from syncthing_gtk import nautilusplugin

NautilusExtensionCls = nautilusplugin.build_class(Nautilus)
コード例 #6
0
#!/usr/bin/env python2
"""
Nautilus plugin for Syncthing-GTK
See syncthing_gtk/nautilusplugin.py for more info
"""

from gi.repository import Nautilus
from syncthing_gtk.nautilusplugin import build_class

NautilusExtensionCls = build_class(Nautilus)