Ensure custom arguments get applied in generated .desktop file

This commit is contained in:
Ilya Fedin 2024-02-14 01:14:01 +04:00 committed by John Preston
parent 00f98793b1
commit c5db2b8175
1 changed files with 5 additions and 0 deletions

View File

@ -280,6 +280,11 @@ bool GenerateDesktopFile(
}
}
if (!args.isEmpty()
&& target->has_key("Desktop Entry", "DBusActivatable")) {
target->remove_key("Desktop Entry", "DBusActivatable");
}
target->save_to_file(targetFile.toStdString());
} catch (const std::exception &e) {
if (!silent) {