diff --git a/cmake/linux_package.cmake b/cmake/linux_package.cmake index 5231d86f..0769f92d 100644 --- a/cmake/linux_package.cmake +++ b/cmake/linux_package.cmake @@ -141,7 +141,7 @@ INSTALL(FILES INSTALL(PROGRAMS ${CMAKE_SOURCE_DIR}/setup/Linux/install.sh ${CMAKE_SOURCE_DIR}/setup/Linux/uninstall.sh - ${CMAKE_SOURCE_DIR}/setup/Linux/deleteConfig.sh + ${CMAKE_SOURCE_DIR}/setup/Linux/resetPreferences.sh DESTINATION Sourcetrail ) diff --git a/setup/Linux/README b/setup/Linux/README index ec27736d..b18f5bd2 100644 --- a/setup/Linux/README +++ b/setup/Linux/README @@ -18,11 +18,11 @@ Root permission is required to run this script. Run uninstall.sh to uninstall Sourcetrail. -Config Files ------------- +User Data Files +--------------- -Sourcetrail places config files at ~/.config/sourcetrail -Run deleteConfig.sh to delete them. This resets Sourcetrail to the initial configuration. +Sourcetrail places user data files at ~/.config/sourcetrail +Run resetPreferences.sh to delete them and reset Sourcetrail to the initial configuration. Documentation diff --git a/setup/Linux/deleteConfig.sh b/setup/Linux/resetPreferences.sh similarity index 100% rename from setup/Linux/deleteConfig.sh rename to setup/Linux/resetPreferences.sh diff --git a/src/lib_gui/qt/window/QtPreferencesWindow.cpp b/src/lib_gui/qt/window/QtPreferencesWindow.cpp index 4cb4920d..297807e3 100644 --- a/src/lib_gui/qt/window/QtPreferencesWindow.cpp +++ b/src/lib_gui/qt/window/QtPreferencesWindow.cpp @@ -76,7 +76,9 @@ void QtPreferencesWindow::handleNext() if (needsRestart) { app->getDialogView()->confirm( - "Please restart the application for all changes to take effect." + "

Please restart the application for all changes to take effect.

Note: These changes may harm " + "the execution of the application. In case the application is not useable anymore, please run the " + "'resetPreferences.sh' script located in your install directory.

" ); } diff --git a/src/lib_gui/qt/window/project_wizzard/QtProjectWizzardContentPreferences.cpp b/src/lib_gui/qt/window/project_wizzard/QtProjectWizzardContentPreferences.cpp index 9da2c6fa..d43cbb44 100644 --- a/src/lib_gui/qt/window/project_wizzard/QtProjectWizzardContentPreferences.cpp +++ b/src/lib_gui/qt/window/project_wizzard/QtProjectWizzardContentPreferences.cpp @@ -85,7 +85,7 @@ void QtProjectWizzardContentPreferences::populate(QGridLayout* layout, int& row) // Linux UI scale - if (utility::getOsType() == OS_LINUX) + // if (utility::getOsType() == OS_LINUX) { // screen addTitle("SCREEN", layout, row);