Beispiel #1
0
def initialize_plugin(name):
    plugin_support.register_alternative(
        __name__, "icon_renderer", "ascii", name=_("Ascii"), renderer=AsciiIconRenderer()
    )
    plugin_support.register_alternative(
        __name__, "icon_renderer", "unicode", name=_("Unicode"), renderer=UnicodeIconRenderer()
    )
Beispiel #2
0
def _update_alternative(*args):
	command = __kupfer_settings__["command"]
	exearg = __kupfer_settings__["exearg"]
	argv = utils.argv_for_commandline(command)
	if not argv or not utils.lookup_exec_path(argv[0]):
		return
	plugin_support.register_alternative(__name__, 'terminal', 'custom1',
			name=_("Custom Terminal"),
			argv=argv,
			exearg=exearg,
			desktopid="",
			startup_notify=True)
Beispiel #3
0
def initialize_alternatives(__name__):
    plugin_support.register_alternative(__name__, 'icon_renderer', 'gtk',
        **{
            'name': _("GTK+"),
            'renderer': icons.IconRenderer,
        })

    plugin_support.register_alternative(__name__, 'terminal', 'gnome-terminal',
        **{
            'name': _("GNOME Terminal"),
            'argv': ['gnome-terminal'],
            'exearg': '-x',
            'desktopid': "gnome-terminal.desktop",
            'startup_notify': True,
        })

    plugin_support.register_alternative(__name__, 'terminal', 'xfce4-terminal',
        **{
            'name': _("XFCE Terminal"),
            'argv': ['xfce4-terminal'],
            'exearg': '-x',
            'desktopid': "xfce4-terminal.desktop",
            'startup_notify': True,
        })

    plugin_support.register_alternative(__name__, 'terminal', 'lxterminal',
        **{
            'name': _("LXTerminal"),
            'argv': ['lxterminal'],
            'exearg': '-e',
            'desktopid': "lxterminal.desktop",
            'startup_notify': False,
        })

    plugin_support.register_alternative(__name__, 'terminal', 'xterm',
        **{
            'name': _("X Terminal"),
            'argv': ['xterm'],
            'exearg': '-e',
            'desktopid': "xterm.desktop",
            'startup_notify': False,
        })

    plugin_support.register_alternative(__name__, 'terminal', 'urxvt',
        **{
            'name': _("Urxvt"),
            'argv': ['urxvt'],
            'exearg': '-e',
            'desktopid': "urxvt.desktop",
            'startup_notify': False,
        })

    plugin_support.register_alternative(__name__, 'terminal', 'konsole',
        **{
            'name': _("Konsole"),
            'argv': ['konsole'],
            'exearg': '-e',
            'desktopid': "konsole.desktop",
            # Not sure here, so setting to false
            'startup_notify': False,
        })
def initialize_alternatives(__name__):
	plugin_support.register_alternative(__name__, 'icon_renderer', 'gtk',
		**{
			'name': _("GTK+"),
			'renderer': icons.IconRenderer,
		})

	plugin_support.register_alternative(__name__, 'terminal', 'gnome-terminal',
		**{
			'name': _("GNOME Terminal"),
			'argv': ['gnome-terminal'],
			'exearg': '-x',
			'desktopid': "gnome-terminal.desktop",
			'startup_notify': True,
		})

	plugin_support.register_alternative(__name__, 'terminal', 'xfce4-terminal',
		**{
			'name': _("XFCE Terminal"),
			'argv': ['xfce4-terminal'],
			'exearg': '-x',
			'desktopid': "xfce4-terminal.desktop",
			'startup_notify': True,
		})

	plugin_support.register_alternative(__name__, 'terminal', 'lxterminal',
		**{
			'name': _("LXTerminal"),
			'argv': ['lxterminal'],
			'exearg': '-e',
			'desktopid': "lxterminal.desktop",
			'startup_notify': False,
		})

	plugin_support.register_alternative(__name__, 'terminal', 'xterm',
		**{
			'name': _("X Terminal"),
			'argv': ['xterm'],
			'exearg': '-e',
			'desktopid': "xterm.desktop",
			'startup_notify': False,
		})

	plugin_support.register_alternative(__name__, 'terminal', 'urxvt',
		**{
			'name': _("Urxvt"),
			'argv': ['urxvt'],
			'exearg': '-e',
			'desktopid': "urxvt.desktop",
			'startup_notify': False,
		})
def initialize_plugin(name):
	plugin_support.register_alternative(__name__, 'icon_renderer', 'ascii',
			name=_("Ascii"), renderer=AsciiIconRenderer())
	plugin_support.register_alternative(__name__, 'icon_renderer', 'unicode',
			name=_("Unicode"), renderer=UnicodeIconRenderer())