File disable_downloading_into_system_dirs.patch of Package kstars
diff --git a/CMakeLists.txt b/CMakeLists.txt
index e1a7d73..111d1da 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -376,7 +376,7 @@ install(FILES org.kde.kstars.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR})
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
# Only build k5auth for Linux
-if (NOT BUILD_KSTARS_LITE AND ${CMAKE_SYSTEM_NAME} MATCHES "Linux")
+IF (FALSE)
# This helper file is generated to download astrometry.net index files.
add_executable(kauth_kstars_helper kstars/auxiliary/downloadhelper.cpp ${helper_mocs})
target_link_libraries(kauth_kstars_helper Qt5::Core)
diff --git a/kstars/ekos/align/opsastrometryindexfiles.cpp b/kstars/ekos/align/opsastrometryindexfiles.cpp
index 35e474b..2899906 100644
--- a/kstars/ekos/align/opsastrometryindexfiles.cpp
+++ b/kstars/ekos/align/opsastrometryindexfiles.cpp
@@ -368,22 +368,7 @@ void OpsAstrometryIndexFiles::downloadIndexFile(QString URL, QString fileN, QChe
}
else
{
-#ifdef Q_OS_OSX
- KMessageBox::error(0, i18n("Astrometry Folder Permissions Error"));
-#else
- KAuth::Action action(QStringLiteral("org.kde.kf5auth.kstars.saveindexfile"));
- action.setHelperId(QStringLiteral("org.kde.kf5auth.kstars"));
- action.setArguments(QVariantMap({ { "filename", indexFileN }, { "contents", responseData } }));
- KAuth::ExecuteJob *job = action.execute();
- if (!job->exec())
- {
- QMessageBox::information(
- this, "Error",
- QString("KAuth returned an error code: %1 %2").arg(job->error()).arg(job->errorString()));
- slotUpdate();
- return;
- }
-#endif
+ KMessageBox::error(0, i18n("Permission denied for system-wide installation"));
}
if (currentIndex == maxIndex)