diff --git a/resources/desktop/com.github.rssguard.desktop.autostart b/resources/desktop/com.github.rssguard.desktop.autostart index 2e0e89e97..58bcbcce9 100644 --- a/resources/desktop/com.github.rssguard.desktop.autostart +++ b/resources/desktop/com.github.rssguard.desktop.autostart @@ -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 \ No newline at end of file diff --git a/src/librssguard/miscellaneous/systemfactory.cpp b/src/librssguard/miscellaneous/systemfactory.cpp index ed5351aee..46ae1b876 100644 --- a/src/librssguard/miscellaneous/systemfactory.cpp +++ b/src/librssguard/miscellaneous/systemfactory.cpp @@ -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) {