os.environ['LANGUAGE'] = "en_US.UTF-8" gettext.install(DOMAIN, PATH) prefix = """[Desktop Entry] Version=1.0 Type=Application Terminal=false Icon=mintstick Exec=mintstick -m iso Categories=GNOME;GTK;Utility; NotShowIn=KDE; """ additionalfiles.generate(DOMAIN, PATH, "share/applications/mintstick.desktop", prefix, _("USB Image Writer"), _("Make a bootable USB stick"), "") prefix = """[Desktop Entry] Version=1.0 Type=Application Terminal=false Icon=system-run Exec=mintstick -m iso Categories=System; OnlyShowIn=KDE; """ additionalfiles.generate(DOMAIN, PATH, "share/applications/mintstick-kde.desktop",
os.environ['LANGUAGE'] = "en_US.UTF-8" gettext.install(DOMAIN, PATH) prefix = """[Desktop Entry] Exec=cinnamon-settings Icon=preferences-system Terminal=false Type=Application Categories=Settings; StartupNotify=false OnlyShowIn=X-Cinnamon; Keywords=Preferences;Settings; """ additionalfiles.generate( DOMAIN, PATH, "files/usr/share/applications/cinnamon-settings.desktop", prefix, _("System Settings"), _("Control Center"), "") prefix = """[Desktop Entry] Exec=cinnamon-settings-users Icon=system-users Terminal=false Type=Application Categories=System;Settings; StartupNotify=false OnlyShowIn=X-Cinnamon; Keywords=Preferences;Settings; """ additionalfiles.generate( DOMAIN, PATH,
if mod.category in ("admin"): category = "Settings;System;" else: category = "Settings;" formatted_keywords = mod.sidePage.keywords.replace(",", ";") formatted_keywords = formatted_keywords.replace(", ", ";") prefix = """[Desktop Entry] Icon=%(icon)s Exec=cinnamon-settings %(module)s Type=Application OnlyShowIn=X-Cinnamon; Categories=Settings; """ % { 'module': mod.name, 'category': category, 'icon': mod.sidePage.icon } additionalfiles.generate( DOMAIN, PATH, "files/usr/share/applications/cinnamon-settings-%s.desktop" % mod.name, prefix, mod.sidePage.name, mod.comment, "", None, mod.sidePage.keywords) except Exception: print("Failed to load module %s" % module) traceback.print_exc()
from mintcommon import additionalfiles os.environ['LANGUAGE'] = "en_US.UTF-8" gettext.install(DOMAIN, PATH) prefix = """[Desktop Entry] Version=1.0 Type=Application Terminal=false Icon=mintstick Exec=mintstick -m iso Categories=GNOME;GTK;Utility; NotShowIn=KDE; """ additionalfiles.generate(DOMAIN, PATH, "share/applications/mintstick.desktop", prefix, _("USB Image Writer"), _("Make a bootable USB stick"), "") prefix = """[Desktop Entry] Version=1.0 Type=Application Terminal=false Icon=system-run Exec=mintstick -m iso Categories=System; OnlyShowIn=KDE; """ additionalfiles.generate(DOMAIN, PATH, "share/applications/mintstick-kde.desktop", prefix, _("USB Image Writer"), _("Make a bootable USB stick"), "", genericName=_("Make a bootable USB stick")) prefix = """[Desktop Entry] Version=1.0
gettext.install(DOMAIN, PATH) prefix = """[Desktop Entry] Exec=cinnamon-settings color Icon=cs-color Terminal=false Type=Application StartupNotify=true Categories=GTK;Settings;X-Cinnamon-Settings-Panel;HardwareSettings OnlyShowIn=X-Cinnamon; X-Cinnamon-Settings-Panel=color # Translators: those are keywords for the color control-center panel _Keywords=Color;ICC;Profile;Calibrate;Printer;Display; """ additionalfiles.generate(DOMAIN, PATH, "./panels/color/cinnamon-color-panel.desktop.in.in", prefix, _("Color"), _("Color management settings"), "") prefix = """[Desktop Entry] Exec=cinnamon-settings region Icon=cs-language Terminal=false Type=Application StartupNotify=true Categories=GTK;Settings;DesktopSettings;X-Cinnamon-Settings-Panel;X-Cinnamon-PersonalSettings OnlyShowIn=X-Cinnamon; X-Cinnamon-Settings-Panel=region # Translators: those are keywords for the region control-center panel _Keywords=Language;Layout;Keyboard; NoDisplay=true """