forked from linuxmint/mintinstall
-
Notifications
You must be signed in to change notification settings - Fork 0
/
generate_desktop_files
executable file
·47 lines (37 loc) · 1.46 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
#!/usr/bin/python
DOMAIN = "mintinstall"
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=gksu mintinstall
Icon=/usr/lib/linuxmint/mintInstall/icon.svg
Terminal=false
Type=Application
Encoding=UTF-8
Categories=Application;System;Settings
NotShowIn=KDE;
"""
additionalfiles.generate(DOMAIN, PATH, "usr/share/applications/mintInstall.desktop", prefix, _("Software Manager"), _("Install new applications"), suffix)
suffix = """Exec=kdesudo -i /usr/share/icons/hicolors/48x48/apps/software-properties-mint.png -d --comment "<b>Please enter your password to start the software manager</b>" mintinstall
Icon=software-properties-mint
Terminal=false
Type=Application
Encoding=UTF-8
Categories=Application;System;Settings
OnlyShowIn=KDE;
"""
additionalfiles.generate(DOMAIN, PATH, "usr/share/applications/mintInstall_kde.desktop", prefix, _("Software Manager"), _("Install new applications"), suffix, genericName=_("Install new applications"))
suffix = """Exec=mintInstall
Icon=/usr/share/linuxmint/logo.png
Terminal=false
Type=Application
Encoding=UTF-8
Categories=Application;System;Settings
NoDisplay=true
MimeType=application/x-mint;
"""
additionalfiles.generate(DOMAIN, PATH, "usr/share/applications/mintInstall_mime.desktop", prefix, _("Software Manager"), _("Install new applications"), suffix)