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

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()); target->save_to_file(targetFile.toStdString());
} catch (const std::exception &e) { } catch (const std::exception &e) {
if (!silent) { if (!silent) {