Remove .desktop suffix from application ID

Signed-off-by: Echo J <tcg96nougat@gmail.com>
This commit is contained in:
Echo J 2025-03-07 10:52:48 +02:00
parent 91ef9f4998
commit ffdf1f746e
2 changed files with 2 additions and 4 deletions

View File

@ -1587,9 +1587,7 @@ void MainWindow::on_actionCreateInstanceShortcut_triggered()
if (desktopFilePath.isEmpty())
return; // file dialog canceled by user
appPath = "flatpak";
QString flatpakAppId = BuildConfig.LAUNCHER_DESKTOPFILENAME;
flatpakAppId.remove(".desktop");
args.append({ "run", flatpakAppId });
args.append({ "run", BuildConfig.LAUNCHER_DESKTOPFILENAME });
}
#elif defined(Q_OS_WIN)

View File

@ -21,7 +21,7 @@ set(Launcher_Domain "prismlauncher.org" PARENT_SCOPE)
set(Launcher_UserAgent "${Launcher_CommonName}/${Launcher_VERSION_NAME}" PARENT_SCOPE)
set(Launcher_ConfigFile "prismlauncher.cfg" PARENT_SCOPE)
set(Launcher_Git "https://github.com/PrismLauncher/PrismLauncher" PARENT_SCOPE)
set(Launcher_DesktopFileName "org.prismlauncher.PrismLauncher.desktop" PARENT_SCOPE)
set(Launcher_DesktopFileName "org.prismlauncher.PrismLauncher" PARENT_SCOPE)
set(Launcher_SVGFileName "org.prismlauncher.PrismLauncher.svg" PARENT_SCOPE)
set(Launcher_Desktop "program_info/org.prismlauncher.PrismLauncher.desktop" PARENT_SCOPE)