blind fixx for #718

This commit is contained in:
Martin Rotter 2022-05-06 13:39:09 +02:00
parent 521eb92935
commit e153a1faca
2 changed files with 7 additions and 9 deletions

View File

@ -199,7 +199,7 @@ add_compile_definitions(
APP_URL="${APP_URL}"
APP_LONG_NAME="${APP_NAME} ${CMAKE_PROJECT_VERSION}"
APP_LOW_NAME="${CMAKE_PROJECT_NAME}"
APP_REVERSE_NAME="com.github.${CMAKE_PROJECT_NAME}"
APP_REVERSE_NAME="${APP_REVERSE_NAME}"
QT_USE_QSTRINGBUILDER
QT_USE_FAST_CONCATENATION

View File

@ -188,14 +188,12 @@ bool SystemFactory::setAutoStartStatus(AutoStartStatus new_status) {
.toStdList();
args = FROM_STD_LIST(QStringList, std_args);
QString app_run_line = args.join(QL1C(' '));
desktop_file_contents = desktop_file_contents.arg(args.at(0), app_run_line);
// #if defined(IS_FLATPAK_BUILD)
// desktop_file_contents = desktop_file_contents.arg(QSL("flatpak run %1").arg(QSL(APP_REVERSE_NAME)));
// #else
// desktop_file_contents = desktop_file_contents.arg(QSL(APP_LOW_NAME));
// #endif
#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(' ')));
#else
desktop_file_contents = desktop_file_contents.arg(args.at(0), args.join(QL1C(' ')));
#endif
IOFactory::writeFile(destination_file, desktop_file_contents.toUtf8());
}