mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 06:07:06 +02:00
Ensure custom arguments get applied in generated .desktop file
This commit is contained in:
parent
00f98793b1
commit
c5db2b8175
1 changed files with 5 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue