fix once more autostart with flatpak
This commit is contained in:
parent
15d529a581
commit
d1b904de94
@ -3,8 +3,7 @@ Version=1.0
|
|||||||
Type=Application
|
Type=Application
|
||||||
Terminal=false
|
Terminal=false
|
||||||
Name=RSS Guard
|
Name=RSS Guard
|
||||||
TryExec=%1
|
Exec=%1
|
||||||
Exec=%2
|
|
||||||
Hidden=false
|
Hidden=false
|
||||||
X-GNOME-Autostart-Delay=15
|
X-GNOME-Autostart-Delay=15
|
||||||
X-LXQt-Need-Tray=true
|
X-LXQt-Need-Tray=true
|
@ -193,12 +193,10 @@ bool SystemFactory::setAutoStartStatus(AutoStartStatus new_status) {
|
|||||||
|
|
||||||
args = args.mid(1);
|
args = args.mid(1);
|
||||||
args.prepend(flatpak_run);
|
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
|
#endif
|
||||||
|
|
||||||
|
desktop_file_contents = desktop_file_contents.arg(args.join(QL1C(' ')));
|
||||||
|
|
||||||
IOFactory::writeFile(destination_file, desktop_file_contents.toUtf8());
|
IOFactory::writeFile(destination_file, desktop_file_contents.toUtf8());
|
||||||
}
|
}
|
||||||
catch (const ApplicationException& ex) {
|
catch (const ApplicationException& ex) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user