-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathgenerate_desktop_files
executable file
·68 lines (52 loc) · 1.61 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#!/usr/bin/python3
DOMAIN = "mintreport"
PATH = "/usr/share/locale"
import os
import gettext
from mintcommon import additionalfiles
os.environ['LANGUAGE'] = "en_US.UTF-8"
gettext.install(DOMAIN, PATH)
prefix = "[Desktop Entry]\n"
suffix = """Exec=mintreport
Icon=mintreport
Terminal=false
Type=Application
Encoding=UTF-8
Categories=Application;System;Settings;
StartupNotify=false
NotShowIn=KDE;
"""
additionalfiles.generate(DOMAIN, PATH, "usr/share/applications/mintreport.desktop", prefix, _("System Reports"), _("Troubleshoot problems"), suffix)
prefix = "[Desktop Entry]\n"
suffix = """Exec=mintreport-tray
Icon=mintreport
Terminal=false
Type=Application
Encoding=UTF-8
Categories=Application;System;Settings;
StartupNotify=false
NoDisplay=true
"""
additionalfiles.generate(DOMAIN, PATH, "usr/share/applications/mintreport-tray.desktop", prefix, _("System Reports"), _("Troubleshoot problems"), suffix)
prefix = "[Desktop Entry]\n"
suffix = """Exec=mintreport
Icon=mintreport
Terminal=false
Type=Application
Encoding=UTF-8
Categories=Qt;KDE;Settings;
X-KDE-StartupNotify=false
OnlyShowIn=KDE;
"""
additionalfiles.generate(DOMAIN, PATH, "usr/share/applications/kde4/mintreport.desktop", prefix, _("System Reports"), _("Troubleshoot problems"), suffix, genericName=_("Troubleshooting Tool"))
prefix = """[Desktop Entry]
Encoding=UTF-8\n"""
suffix = """Exec=mintreport-tray
Icon=mintreport
Terminal=false
Type=Application
Categories=
X-GNOME-Autostart-Delay=40
X-MATE-Autostart-Delay=40
"""
additionalfiles.generate(DOMAIN, PATH, "etc/xdg/autostart/mintreport.desktop", prefix, _("System Reports"), _("Troubleshoot problems"), suffix)