mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-04 00:15:42 +00:00
Ensure custom arguments get applied in generated .desktop file
This commit is contained in:
@@ -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) {
|
||||||
|
Reference in New Issue
Block a user