fix bug setting environment variables

This commit is contained in:
GloriousEggroll 2025-04-04 17:18:53 -06:00
parent 4da1d2d7b4
commit ece34dd30f
2 changed files with 33 additions and 31 deletions

View file

@ -1582,8 +1582,9 @@ def add_permission_value(app_id: str, perm_type: str, value: str, system=False)
key, val = parts
if val not in ['talk', 'own']:
return False, "Value must be in format 'key=value' with value as 'talk' or 'own'"
if perm_type in ['Session Bus Policy', 'System Bus Policy']:
if val not in ['talk', 'own']:
return False, "Value must be in format 'key=value' with value as 'talk' or 'own'"
# Set the value
key_file.set_string(perm_type, key, val)
@ -2024,8 +2025,9 @@ def global_add_permission_value(perm_type: str, value: str, override=True, syste
key, val = parts
if val not in ['talk', 'own']:
return False, "Value must be in format 'key=value' with value as 'talk' or 'own'"
if perm_type in ['Session Bus Policy', 'System Bus Policy']:
if val not in ['talk', 'own']:
return False, "Value must be in format 'key=value' with value as 'talk' or 'own'"
# Set the value
key_file.set_string(perm_type, key, val)

View file

@ -2227,7 +2227,7 @@
}
],
"query": "",
"processingTimeMs": 7,
"processingTimeMs": 8,
"hitsPerPage": 250,
"page": 1,
"totalPages": 1,
@ -2497,7 +2497,7 @@
}
],
"query": "",
"processingTimeMs": 2,
"processingTimeMs": 3,
"hitsPerPage": 250,
"page": 1,
"totalPages": 1,
@ -3429,7 +3429,7 @@
"verification_website": null,
"verification_timestamp": null,
"runtime": "org.kde.Platform/x86_64/6.8",
"updated_at": 1743656276,
"updated_at": 1743780575,
"arches": [
"x86_64",
"aarch64"
@ -10295,7 +10295,7 @@
}
],
"query": "",
"processingTimeMs": 16,
"processingTimeMs": 15,
"hitsPerPage": 250,
"page": 1,
"totalPages": 1,
@ -13427,7 +13427,7 @@
}
],
"query": "",
"processingTimeMs": 5,
"processingTimeMs": 4,
"hitsPerPage": 250,
"page": 1,
"totalPages": 1,
@ -13836,7 +13836,7 @@
"verification_website": "thonny.org",
"verification_timestamp": "1683360950",
"runtime": "org.freedesktop.Sdk/x86_64/24.08",
"updated_at": 1743702195,
"updated_at": 1743781840,
"arches": [
"x86_64",
"aarch64"
@ -14134,7 +14134,7 @@
}
],
"query": "",
"processingTimeMs": 2,
"processingTimeMs": 3,
"hitsPerPage": 250,
"page": 1,
"totalPages": 1,
@ -14943,7 +14943,7 @@
"verification_website": "thonny.org",
"verification_timestamp": "1683360950",
"runtime": "org.freedesktop.Sdk/x86_64/24.08",
"updated_at": 1743702195,
"updated_at": 1743781840,
"arches": [
"x86_64",
"aarch64"
@ -18992,7 +18992,7 @@
}
],
"query": "",
"processingTimeMs": 4,
"processingTimeMs": 3,
"hitsPerPage": 250,
"page": 1,
"totalPages": 1,
@ -29483,7 +29483,7 @@
}
],
"query": "",
"processingTimeMs": 3,
"processingTimeMs": 2,
"hitsPerPage": 250,
"page": 1,
"totalPages": 1,
@ -33768,7 +33768,7 @@
}
],
"query": "",
"processingTimeMs": 4,
"processingTimeMs": 8,
"hitsPerPage": 250,
"page": 1,
"totalPages": 1,
@ -36819,7 +36819,7 @@
}
],
"query": "",
"processingTimeMs": 5,
"processingTimeMs": 6,
"hitsPerPage": 250,
"page": 1,
"totalPages": 1,
@ -42926,7 +42926,7 @@
}
],
"query": "",
"processingTimeMs": 5,
"processingTimeMs": 4,
"hitsPerPage": 250,
"page": 1,
"totalPages": 1,
@ -45380,7 +45380,7 @@
}
],
"query": "",
"processingTimeMs": 6,
"processingTimeMs": 8,
"hitsPerPage": 250,
"page": 1,
"totalPages": 1,
@ -49945,7 +49945,7 @@
}
],
"query": "",
"processingTimeMs": 11,
"processingTimeMs": 12,
"hitsPerPage": 250,
"page": 1,
"totalPages": 1,
@ -58832,7 +58832,7 @@
}
],
"query": "",
"processingTimeMs": 8,
"processingTimeMs": 7,
"hitsPerPage": 250,
"page": 1,
"totalPages": 1,
@ -63606,7 +63606,7 @@
}
],
"query": "",
"processingTimeMs": 8,
"processingTimeMs": 9,
"hitsPerPage": 250,
"page": 1,
"totalPages": 1,
@ -69505,7 +69505,7 @@
}
],
"query": "",
"processingTimeMs": 7,
"processingTimeMs": 13,
"hitsPerPage": 250,
"page": 1,
"totalPages": 1,
@ -69813,7 +69813,7 @@
"verification_website": "telegram.org",
"verification_timestamp": "1676891118",
"runtime": "org.freedesktop.Platform/x86_64/24.08",
"updated_at": 1743393977,
"updated_at": 1743784643,
"arches": [
"x86_64",
"aarch64"
@ -69882,7 +69882,7 @@
"project_license": "LicenseRef-proprietary",
"is_free_license": false,
"app_id": "us.zoom.Zoom",
"icon": "https://dl.flathub.org/media/us/zoom/Zoom.desktop/a69fc88915ed4ba0a56476415c0f8b87/icons/128x128/us.zoom.Zoom.desktop.png",
"icon": "https://dl.flathub.org/media/us/zoom/Zoom.desktop/50bcadfe564c3fff9107bd782cd8f1cd/icons/128x128/us.zoom.Zoom.desktop.png",
"main_categories": "network",
"sub_categories": [
"InstantMessaging",
@ -69898,7 +69898,7 @@
"verification_website": null,
"verification_timestamp": null,
"runtime": "org.freedesktop.Platform/x86_64/24.08",
"updated_at": 1743429407,
"updated_at": 1743781099,
"arches": [
"x86_64"
],
@ -75016,7 +75016,7 @@
}
],
"query": "",
"processingTimeMs": 4,
"processingTimeMs": 5,
"hitsPerPage": 250,
"page": 1,
"totalPages": 1,
@ -77461,7 +77461,7 @@
"project_license": "LicenseRef-proprietary",
"is_free_license": false,
"app_id": "us.zoom.Zoom",
"icon": "https://dl.flathub.org/media/us/zoom/Zoom.desktop/a69fc88915ed4ba0a56476415c0f8b87/icons/128x128/us.zoom.Zoom.desktop.png",
"icon": "https://dl.flathub.org/media/us/zoom/Zoom.desktop/50bcadfe564c3fff9107bd782cd8f1cd/icons/128x128/us.zoom.Zoom.desktop.png",
"main_categories": "network",
"sub_categories": [
"InstantMessaging",
@ -77477,7 +77477,7 @@
"verification_website": null,
"verification_timestamp": null,
"runtime": "org.freedesktop.Platform/x86_64/24.08",
"updated_at": 1743429407,
"updated_at": 1743781099,
"arches": [
"x86_64"
],
@ -77583,7 +77583,7 @@
"project_license": "LicenseRef-proprietary",
"is_free_license": false,
"app_id": "us.zoom.Zoom",
"icon": "https://dl.flathub.org/media/us/zoom/Zoom.desktop/a69fc88915ed4ba0a56476415c0f8b87/icons/128x128/us.zoom.Zoom.desktop.png",
"icon": "https://dl.flathub.org/media/us/zoom/Zoom.desktop/50bcadfe564c3fff9107bd782cd8f1cd/icons/128x128/us.zoom.Zoom.desktop.png",
"main_categories": "network",
"sub_categories": [
"InstantMessaging",
@ -77599,7 +77599,7 @@
"verification_website": null,
"verification_timestamp": null,
"runtime": "org.freedesktop.Platform/x86_64/24.08",
"updated_at": 1743429407,
"updated_at": 1743781099,
"arches": [
"x86_64"
],
@ -82634,7 +82634,7 @@
}
],
"query": "",
"processingTimeMs": 3,
"processingTimeMs": 2,
"hitsPerPage": 250,
"page": 1,
"totalPages": 1,