The LXQt::Settings uses the Qt's QSettings which doesn't support the
xdg spec regarding th XDG_CONFIG_DIRS ->
https://bugreports.qt.io/browse/QTBUG-34919.
This commit adds a workaround by searching the directories for
system wide configuration file and if found, all keys from it are
copied into the user configuration file.
The status of the screensaver wasn't taken into account when locking it.
Now we only lock it if it's not already locked. This way we don't get the
annoying error message stating that there was an error starting the
screensaver.
Part of the code is taken from the Chromium project. Adapted to fit our
purposes.
* icon-theme-fallback:
Print warning messages when using the fallback Icon Theme
Use LXQT_DATA_DIR for fallback icon theme search path
Sets Oxygen as the only fallback icon theme
- Don't try to remove non existing files (If the file doesn't exists
ex_result will contain an error message and fail.)
- Make sure git init doesn't fail (If ${TR_TRANSLATION_DIR} doesn't
exist, git init will fail.)
As of grep v2.23 some translation files are considered as binary (maybe because of some locale settings)
and then the created .desktop file is malformed. So we force the grep to handle all provided input
files as text.
closeslxde/lxqt#957
The ``OLD`` behavior for this policy is to ignore the visibility properties
for static libraries, object libraries, and executables without exports.
The ``NEW`` behavior for this policy is to honor the visibility properties
for all target types.
This policy was introduced in CMake version 3.3. CMake version
3.3.0 warns when the policy is not set and uses ``OLD`` behavior. Use
the ``cmake_policy()`` command to set it to ``OLD`` or ``NEW``
explicitly.
We use NO_POLICY_SCOPE to make the LXQtCompilerSettings commands
affect the includer.
All settings in one place. Easier to search and maintain.
It will also bring performance improvements to some components. We disable
exceptions and set symbol VISIBILITY to hidden.
The settings were split into several categories.
We support GNU and Clang.
There are two install components:
* Devel Contains all the development files;
* Runtime Contains all the runtime needed files.
It's possible to install:
Everything: make install OR cmake -P cmake_install.cmake
Development files only: cmake -DCOMPONENT=Devel -P cmake_install.cmake
Runtime files only: cmake -DCOMPONENT=Runtime -P cmake_install.cmake
This COMPONENT's can also be used with CPack.
* targets:
Removes LIB_INSTALL_DIR CACHE PATH variable
Removes deprecated documentation
Use relative paths in install DESTINATION
Marks link libraries as PUBLIC
Use target_compile_definitions() instead of add_definitions()
Make Release the default build type
Simplifies build type matching
lxqt-config.cmake.in: Use find_dependency()
Updates the build system to the Targets infrastructure
pkg-config: Adds Qt5Xdg to the required dependencies
Updates lxqt_create_pkgconfig_file()
Stops using Qt5Xdg dropped stuff
Replaces find_package() with find_dependency(). From the documentation:
"find_dependency() wraps a find_package() call for a package dependency.
It is designed to be used in a <package>Config.cmake file, and it forwards
the correct parameters for EXACT, QUIET and REQUIRED which were passed to
the original find_package() call. It also sets an informative diagnostic
message if the dependency could not be found."
CMake v3.0.2 or higher or required.