示例#1
0
def create_phatch_inspect_nautilus_action():
    create_nautilus_extension(
        name="phatch_image_inspector",
        label='_("%s") + "..."' % _t("Inspect with Phatch"),
        command="phatch -n %s &",
        mimetypes=IMAGE_READ_MIMETYPES,
        tooltip='_("%s")' % _t("Inspect EXIF & IPTC tags"),
        preload=PRELOAD,
    )
示例#2
0
def create_phatch_recent_nautilus_action():
    create_nautilus_extension(
        name="phatch_recent",
        label='_("%s") + "..."' % _t("Process with recent Phatch action list"),
        command="phatch -d recent %s &",
        mimetypes=IMAGE_READ_MIMETYPES,
        tooltip=TOOLTIP,
        preload=PRELOAD,
    )
示例#3
0
def create_phatch_inspect_nautilus_action():
    create_nautilus_extension(
        name='phatch_image_inspector',
        label='_("%s") + "..."' % \
                        _t('Inspect with Phatch'),
        command='phatch -n %s &',
        mimetypes=IMAGE_READ_MIMETYPES,
        tooltip='_("%s")' % _t('Inspect EXIF & IPTC tags'),
        preload=PRELOAD,
    )
示例#4
0
def create_phatch_recent_nautilus_action():
    create_nautilus_extension(
        name='phatch_recent',
        label='_("%s") + "..."' % \
                        _t('Process with recent Phatch action list'),
        command='phatch -d recent %s &',
        mimetypes=IMAGE_READ_MIMETYPES,
        tooltip=TOOLTIP,
        preload=PRELOAD,
    )
示例#5
0
def create_phatch_nautilus_action(actionlist):
    name = os.path.splitext(os.path.basename(actionlist))[0]
    title = system.title(name)
    create_nautilus_extension(
        name='phatch_actionlist_' + \
                        name.encode('ascii', 'ignore'),
        label='_("%s") + "..."' % _t('Phatch with %s') % title,
        command='phatch -d "%s" %%s &' % actionlist,
        mimetypes=IMAGE_READ_MIMETYPES,
        tooltip=TOOLTIP,
    )
示例#6
0
def create_phatch_nautilus_action(actionlist):
    name = os.path.splitext(os.path.basename(actionlist))[0]
    title = system.title(name)
    create_nautilus_extension(
        name="phatch_actionlist_" + name.encode("ascii", "ignore"),
        label='_("%s") + "..."' % _t("Phatch with %s") % title,
        command='phatch -d "%s" %%s &' % actionlist,
        mimetypes=IMAGE_READ_MIMETYPES,
        tooltip=TOOLTIP,
        preload=PRELOAD,
    )