Change Warning log to Debug.
Rename GlobalUID to InvalidUID avoiding to misunderstand.
cache saved only it's setValue has been called.
Log: 移除错误的输出警告,当cache被修改后才保存
Influence: 如果没有设置值,再不会生成缓存文件
Change-Id: I1f71513e91bef3412f593281e68fea44801fe07b
`include.files+=` is behind `load(dtk_build)`, so those files don't
execute dtk_build function, it casues dtkcore_config.h don't include
`include.files` in `dtk_build` back.
Log:
Influence: none
Change-Id: I06afe3df5c80145d7d9ff9da281571a9725366d5
dde-config-daemon loads resouce from `$$PREFIX/share/dsg` when default
action, and `PREFIX`'s value is empty.
set default value for PREFIX from QT_INSTALL_PREFIX(/usr).
Log:
Influence: 开发dtkcore,但没有指定PREFIX值,导致配置策略加载失败
Change-Id: I97573c283365aa581d5e93eb75d27259134f10af
Add invalid check for all DConfig's method(avoid null pointer dereference).
fallback to FileBackend when DBusBackend can't be created.
set correct environment value in unit test.
Log:
Influence: all application crash when dconfig is invalid but still
call other method expect isValid.
Change-Id: I7395f44518989cb14a09306fcfd4db380608a24e
DSettingsBackend::doSetOption is executing when `DSettings` has
been destroyed, because `doSetOption` is connected in `QueuedConnection`
way, this would be ensure `backendWriteThread`'s eventloop is exited
when `DSetting` destoryed.
we ensure `DSettings` is released before `SettingBackend`, so that
`SettingBackend`'s slot would not be executed when `DSetting` destoryed.
we also should ensure `SettinBackend` is thread safely, because os
`DSettings` has backendWriteThread to execute doSetOption, and getOption,
is execute in main thread.
remove link of libdtkcore in qmake, because we compile it's source code
in unit test.
Log:
Influence: none
for application meta path loads order change from
/usr/share/dsg/apps/${appid}/confgis to
/usr/share/dsg/configs/${appid} or /usr/share/dsg/configs;
replace DStandardPaths::paths to DStandardPaths::path.
modify saved path。
Log:
Influence: all application's configuration would not be loaded
unless updating dtkcommon and it's application package.
Change-Id: Ia8212618fd2d4a5ecf67f05aad32a92d934ea01d
The DSG::DataDir is a path list like the xdg data dirs, change the env "DSG_DATA_DIR"
to "DSG_DATA_DIRS".
Influence: dconfig 相关的改动,改变了获取配置文件路径的逻辑,与此相关的产品功能不应
该出现任何变化。
Log:
Change-Id: I5f12e42aee607ed749aa63f503c62e352c07b2a6
(cherry picked from commit 33bfc9b25f)
add reset function;
add Dconfig construct containing appId, to keep compatible,we use
a static function to avoid ambiguous, construct function calls
no appid's. it is useful to access other application's configure
timely in DBusBackend.
Log:
Influence: user can access other application's configure and
reset value for the key.
Change-Id: Id707a96ba1216b406b5c6f724ba5d715cfb053db
Check value's type of incoming is compatible,
it copies a value and converts to meta type, it promises
that setValue function is not changing meta type.
Log:
Influence: calling DConfig's setValue maybe fail because of type
incompatible.
Change-Id: I35bef57261a3130ebcb4aeeff83261737ad51197
it's occur in DBusBackend, and we directly to get meta value that not
exist cache.
normal value type is automatic casted from QDBusVariant to QVariant,
and QVariantList type need to cast explicitly, it's value type is
QDBusArgument.
because our data store backend is using QJsonValue to resolve, so
we only case QVariantList and QVariantMap, it maybe error in lastly.
Log:
Influence: DConfig is not access stringlist data type.
Change-Id: I81dbc2ea6b7933154d26ddba70def95ef79240d6
inotify_init1 failed in DFileSystemWatcher, it reports Too many
open files, and now we avoid to CHECK temporarily in ut.
Log:
Influence: none
Change-Id: I42d508b1ad63dfb4dda8328a41bcbfc530082e97
Fix the problem of document generation errors caused by
some symbols and commands.
Log:
Influence: dtkcore docs
Change-Id: I081c12a3bc98c89925e27aa7c2e1aeb0e228c255
change globalcache direcotry
from '/deepin/appdata' to '/var/dsg/appdata'.
it saves failed when user has no home directory.
Bug: https://pms.uniontech.com/zentao/bug-view-105077.html
Log:
Influence: It effects all application used dconfig.
Change-Id: If7a0e67c762f58701bf58a228e84e8c2525a897f
the member definition need to be separate in some build environment.
Log:
Influence: build error.
Signed-off-by: zorowk <pengwenhao@uniontech.com>
Change-Id: Idd982f0e0a17efa50e170c4590c83ea75abaa031