fix once more autostart with flatpak

This commit is contained in:
Martin Rotter 2022-05-06 21:34:49 +02:00
parent 15d529a581
commit d1b904de94
2 changed files with 3 additions and 6 deletions

View File

@ -3,8 +3,7 @@ Version=1.0
Type=Application
Terminal=false
Name=RSS Guard
TryExec=%1
Exec=%2
Exec=%1
Hidden=false
X-GNOME-Autostart-Delay=15
X-LXQt-Need-Tray=true

View File

@ -193,12 +193,10 @@ bool SystemFactory::setAutoStartStatus(AutoStartStatus new_status) {
args = args.mid(1);
args.prepend(flatpak_run);
desktop_file_contents = desktop_file_contents.arg(flatpak_run, args.join(QL1C(' ')));
#else
desktop_file_contents = desktop_file_contents.arg(args.at(0), args.join(QL1C(' ')));
#endif
desktop_file_contents = desktop_file_contents.arg(args.join(QL1C(' ')));
IOFactory::writeFile(destination_file, desktop_file_contents.toUtf8());
}
catch (const ApplicationException& ex) {