mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-29 10:12:38 +02:00
Don't put the start menu shortcut in a folder
This commit is contained in:
parent
87be2bbc7d
commit
26ea568080
1 changed files with 3 additions and 8 deletions
|
@ -51,8 +51,8 @@ def build_dir_xml(root, data):
|
||||||
for subdata in data["dirs"]:
|
for subdata in data["dirs"]:
|
||||||
build_dir_xml(el, subdata)
|
build_dir_xml(el, subdata)
|
||||||
|
|
||||||
# If this is the ProgramMenuSubfolder, add the menu component
|
# If this is the ProgramMenuFolder, add the menu component
|
||||||
if "id" in data and data["id"] == "ProgramMenuSubfolder":
|
if "id" in data and data["id"] == "ProgramMenuFolder":
|
||||||
component_el = ET.SubElement(
|
component_el = ET.SubElement(
|
||||||
el,
|
el,
|
||||||
"Component",
|
"Component",
|
||||||
|
@ -78,9 +78,6 @@ def build_dir_xml(root, data):
|
||||||
Value="1",
|
Value="1",
|
||||||
KeyPath="yes",
|
KeyPath="yes",
|
||||||
)
|
)
|
||||||
ET.SubElement(
|
|
||||||
component_el, "RemoveFolder", Id="ProgramMenuSubfolder", On="uninstall"
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
def build_components_xml(root, data):
|
def build_components_xml(root, data):
|
||||||
|
@ -140,9 +137,7 @@ def main():
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "ProgramMenuFolder",
|
"id": "ProgramMenuFolder",
|
||||||
"dirs": [
|
"dirs": [],
|
||||||
{"id": "ProgramMenuSubfolder", "name": "Dangerzone", "dirs": []}
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue