mirror of
https://github.com/martinrotter/rssguard.git
synced 2025-02-04 19:27:33 +01:00
tested fix for flatpak autostart
This commit is contained in:
parent
827190c1da
commit
15d529a581
@ -189,8 +189,12 @@ bool SystemFactory::setAutoStartStatus(AutoStartStatus new_status) {
|
||||
args = FROM_STD_LIST(QStringList, std_args);
|
||||
|
||||
#if defined(IS_FLATPAK_BUILD)
|
||||
desktop_file_contents =
|
||||
desktop_file_contents.arg(QSL("flatpak run %1").arg(QSL(APP_REVERSE_NAME)), args.mid(1).join(QL1C(' ')));
|
||||
const QString flatpak_run = QSL("flatpak run %1").arg(QSL(APP_REVERSE_NAME));
|
||||
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user