forked from linuxmint/nemo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
generate_additional_file
executable file
·55 lines (43 loc) · 1.33 KB
/
generate_additional_file
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
#!/usr/bin/python3
import os
os.chdir("data/nemo-actions/")
os.system("./merge_action_strings")
os.chdir("../..")
DOMAIN = "nemo"
PATH = "/usr/share/locale"
import os, gettext, sys
from mintcommon import additionalfiles
os.environ['LANGUAGE'] = "en_US.UTF-8"
gettext.install(DOMAIN, PATH)
prefix = """[Desktop Entry]
"""
suffix = """Exec=nemo %U
Icon=system-file-manager
# Translators: these are keywords of the file manager
Keywords=folders;filesystem;explorer;
Terminal=false
Type=Application
StartupNotify=false
Categories=GNOME;GTK;Utility;Core;
MimeType=inode/directory;application/x-gnome-saved-search;
Actions=open-home;open-computer;open-trash;
"""
additionalfiles.generate(DOMAIN, PATH, "data/nemo.desktop.in", prefix, _("Files"), _("Access and organize files"), suffix)
prefix = """
[Desktop Action open-home]
"""
suffix = """Exec=nemo %U
"""
additionalfiles.generate(DOMAIN, PATH, "data/nemo.desktop.in", prefix, _("Home"), None, suffix, append=True)
prefix = """
[Desktop Action open-computer]
"""
suffix = """Exec=nemo computer:///
"""
additionalfiles.generate(DOMAIN, PATH, "data/nemo.desktop.in", prefix, _("Computer"), None, suffix, append=True)
prefix = """
[Desktop Action open-trash]
"""
suffix = """Exec=nemo trash:///
"""
additionalfiles.generate(DOMAIN, PATH, "data/nemo.desktop.in", prefix, _("Trash"), None, suffix, append=True)