mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-28 18:02: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"]:
|
||||
build_dir_xml(el, subdata)
|
||||
|
||||
# If this is the ProgramMenuSubfolder, add the menu component
|
||||
if "id" in data and data["id"] == "ProgramMenuSubfolder":
|
||||
# If this is the ProgramMenuFolder, add the menu component
|
||||
if "id" in data and data["id"] == "ProgramMenuFolder":
|
||||
component_el = ET.SubElement(
|
||||
el,
|
||||
"Component",
|
||||
|
@ -78,9 +78,6 @@ def build_dir_xml(root, data):
|
|||
Value="1",
|
||||
KeyPath="yes",
|
||||
)
|
||||
ET.SubElement(
|
||||
component_el, "RemoveFolder", Id="ProgramMenuSubfolder", On="uninstall"
|
||||
)
|
||||
|
||||
|
||||
def build_components_xml(root, data):
|
||||
|
@ -140,9 +137,7 @@ def main():
|
|||
},
|
||||
{
|
||||
"id": "ProgramMenuFolder",
|
||||
"dirs": [
|
||||
{"id": "ProgramMenuSubfolder", "name": "Dangerzone", "dirs": []}
|
||||
],
|
||||
"dirs": [],
|
||||
},
|
||||
],
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue