forked from linuxmint/mintsources
-
Notifications
You must be signed in to change notification settings - Fork 0
/
generate_desktop_files
executable file
·44 lines (35 loc) · 1.4 KB
/
generate_desktop_files
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/usr/bin/python
DOMAIN = "mintsources"
PATH = "/usr/share/linuxmint/locale"
import os, gettext, sys
sys.path.append('/usr/lib/linuxmint/common')
import additionalfiles
os.environ['LANG'] = "en_US.UTF-8"
gettext.install(DOMAIN, PATH)
prefix = "[Desktop Entry]\n"
suffix = """Exec=software-sources
Icon=/usr/share/icons/hicolor/scalable/apps/software-sources.svg
Terminal=false
X-MultipleArgs=false
Type=Application
Categories=GNOME;GTK;System;Settings;X-GNOME-SystemSettings;X-GNOME-Settings-Panel;
X-GNOME-Settings-Panel=software-properties
MimeType=text/x-apt-sources-list;
X-KDE-SubstituteUID=true
X-Ubuntu-Gettext-Domain=software-properties
NotShowIn=KDE;
"""
additionalfiles.generate(DOMAIN, PATH, "usr/share/applications/mintsources.desktop", prefix, _("Software Sources"), _("Configure the sources for installable software and updates"), suffix)
prefix = "[Desktop Entry]\n"
suffix= """Exec=software-sources
Icon=/usr/share/icons/hicolor/scalable/apps/software-sources.svg
NoDisplay=true
Terminal=false
Type=Application
Encoding=UTF-8
MimeType=text/x-apt-sources-list;
Categories=Qt;KDE;Settings;
X-KDE-StartupNotify=false
OnlyShowIn=KDE;
"""
additionalfiles.generate(DOMAIN, PATH, "usr/share/applications/kde4/mintsources.desktop", prefix, _("Software Sources"), _("Configure the sources for installable software and updates"), suffix, genericName=_("Configure the sources for installable software and updates"))