Commit Graph

732 Commits

Author SHA1 Message Date
groveer 280791db27 fix(util): error appid from `getAppIdFromAbsolutePath`
Log: tmp变量读出来的字符串多带了一个字符
2024-09-09 10:38:13 +08:00
Robert Lv 40cbafcf8f fix: DDBusInterface signal loss
Fix the issue of no signal when DDBusInterface object properties change
2024-09-09 10:37:49 +08:00
renbin b0efc5a796 fix: remove unnecessary link libraries
These two libraries are used to detect text encoding,
but they are actually loaded dynamiclly.
Not need to link libraries.
2024-09-09 10:37:18 +08:00
Whale107 797101ccda
feat: 增加智能终端设备类型 (#434)
增加智能终端设备类型

Log:
2024-08-23 06:24:12 +00:00
deepin-ci-robot e73c73c862 chore: update changelog
Release 5.6.34.
2024-08-21 16:47:21 +08:00
deepin-ci-robot 2ebb0a17d2 chore: update changelog
Release 5.6.32.
2024-07-10 11:08:37 +08:00
ck 1a6e919cc5 refactor: log files move to dtklog
Issue: linuxdeepin/dtk#182

dtklog: https://github.com/linuxdeepin/dtklog
2024-07-05 14:13:31 +08:00
deepin-ci-robot 51feaf445c chore: update changelog
Release 5.6.31.
2024-06-27 17:56:51 +08:00
zsien a1add007e3 chore: use '&&' and '||' instead of 'and' and 'or'
一些项目使用了 -fno-operator-names,会导致编译失败
2024-06-07 15:42:45 +08:00
deepin-ci-robot f326ac4c20 chore: update changelog
Release 5.6.30.
2024-05-31 15:27:33 +08:00
ck 6f02ee5d78 chore: add nullptr check
nullptr check
2024-05-30 10:56:46 +08:00
ck 10bd3842bb fix(build): build faild on Qt 6.7.1
QAbstractFileEngine::FileTime ==> QFile::FileTime
2024-05-28 13:13:09 +08:00
ck 052f52ba00 chore: fallback to dsgconfig value
fallback to default dsgconfig value
2024-05-21 16:25:34 +08:00
Ye ShanShan c56b7ea891 fix: crashed when access DSGApplication::id early
Add fallback, using fileName or cmdline as AppId.
Remove assert for empty appId.
2024-05-21 10:13:51 +08:00
ck 653f6dce7e refactor: remove LoggingRules interface
- 移除相关接口, 默认启用(可以用 DTK_DISABLED_LOGGING_RULES 禁用)
- 优先使用 dsgAppId , 用户可以通过 DTK_LOGGING_FALLBACK_APPID 指定
  fallbackAppId
- 有配置过 rules 时, 优先使用(即非默认值优先)
- fallbackConfig 发生变化时会检查 dsgConfig 是否修改过,是则忽略
2024-05-17 09:56:39 +08:00
ck c876a2a2a9 chore: loggingrules config move to preference
org.deepin.dtk.logginerules ==> org.deepin.dtk.preference
如果 DConfig 无效就不清空环境变量
2024-05-17 09:56:39 +08:00
覃本学 f21de0440b fix: 修复日志格式时间戳显示异常问题
适配qt的日志格式
%{time yyyy-MM-ddTHH:mm:ss.zzz} ==> %{time}{yyyy-MM-ddTHH:mm:ss.zzz}

Log: 修复日志格式时间戳显示异常问题
Bug: https://pms.uniontech.com/bug-view-236239.html
Influence: 使用DLogManager的应用日志输出格式
2024-05-17 09:56:39 +08:00
tanfeng 830c444024 feat: DeepinType类型增加军用版
DeepinType类型增加军用版

Log: DeepinType类型增加军用版
Task: https://pms.uniontech.com/task-view-316703.html
Influence: DeepinType类型
Change-Id: I9db5a3d14eebab69b5cac44fbfb0d2a09d8d84c3
2024-05-17 09:56:39 +08:00
YinJie 56117af57e fix: 修复计算 build 版本号错误的问题
场景如下(完整版本号 -> 构建版本号):
5.6.8 -> 0
5.6.8.7 -> 7
5.6.8+u001 -> 1
5.6.8.7+u001 -> 7
5.6.8.0+u001 -> 0

Log:
Influence: 构建版本号(BUILD_VERSION )
2024-05-17 09:56:39 +08:00
YinJie 8ba05a2f80 feat: 增加registerLoggingRulesWatcher接口
功能:监听 dconfig 的值然后设置应用的日志级别
目的:
1.取消QT_LOGGING_RULES需要在创建 application之前处理
因为QLoggingRegistry在构造函数中获取环境变量的值后不会监听环境变量的变化.
目前直接使用applicationName当做appId 的做法不可行.
2.不和应用的 applicationName耦合目前大部分应用的applicationName和dconfig
的appId是不一样的,需要修改应用的名字
可能存在多个 application 使用通过一个 dconfig
的情况,修改applicantionName的方法不可行.
PS:从 DConfig 获取默认 appId 的逻辑上看, DSGApplication应用会有问题
3.开发者可以选择是否需要设置以及监听日志级别变动

Log:
Task: https://pms.uniontech.com/task-view-303379.html
2024-05-17 09:56:39 +08:00
chenjun 63a62b14f4 fix: 从文件中读取deepinType和productType值时因为权限问题会失败
安装了三方管控应用时,从文件中读取deepinType和productType值时因为权限问题会失败,需要重新读取一次

Log: 修复第一次读取配置文件失败导致无法显示系统版本和说明问题
Influence: 正常显示版本和说明
2024-05-17 09:56:39 +08:00
xuxin af83f1b4a8 fix: lshw查询内存大小时返回多元素数组,修正解析过程
调整json结果解析过程

Log: 在不同场景下lshw可能返回多个元素
Influence: DSysInfo::memoryInstalledSize解析过程
Bug: https://pms.uniontech.com/bug-view-228681.html
Change-Id: I51030f037fa272ef9d510265524e5ec934c1f9bd
2024-05-17 09:56:39 +08:00
覃本学 bc498f61fe feat: 允许基于dtk开发的应用动态控制其日志输出等级
在运行中,不需要重启应用,也可以通过配置项控制日志输出等级
注: 应用的applicationName 需要和dconfig安装时的appid等同方可识别
配置规则等同于QT_LOGGING_RULES

注意:由于 dtk/dtk6 的存在 meta 文件 在 libdtkdata 中安装

Log: 允许基于dtk开发的应用动态控制其日志输出等级
Influence: 允许基于dtk开发的应用动态控制其日志输出等级
Task: https://pms.uniontech.com/task-view-307567.html
      https://pms.uniontech.com/task-view-305899.html
2024-05-17 09:56:39 +08:00
deepin-ci-robot 393e684baf chore: update changelog
Release 5.6.29.
2024-05-16 10:27:34 +08:00
Ye ShanShan 861a35a935 fix: DConfigFile is invalid when AppId is empty
Empty is used in dde-dconfig-daemon, and it is valid.
2024-05-14 11:06:37 +08:00
Ye ShanShan 5f6d336933 fix: DConfig add check for AppId
user can open non-root controlled files when `appId` is relative path.

Issue: https://bugzilla.suse.com/show_bug.cgi?id=1211374
2024-05-13 13:15:57 +08:00
Ye ShanShan 73aa1884c0 chore: remove warning for dbusxml2cpp in qt6
adapt to qt6.
2024-05-13 11:00:36 +08:00
deepin-ci-robot 8e736edc9c chore: update changelog
Release 5.6.28.
2024-04-30 15:40:05 +08:00
hillwoodroc 45e8e60649 fix: fix undefined reference errors on spdlog 1.14.0
Support spdlog 1.14.0

Log: spdlog 1.14.0 add string view overloads for logger accessor. We should include
more headers for this change in dtkcore.
2024-04-29 14:16:25 +08:00
deepin-ci-robot 5e93ad12c9 chore: update changelog
Release 5.6.27.
2024-04-23 09:23:40 +08:00
groveer fe43eb823d fix(qdbusxml2cpp): support qt 6.7
as title

Log:
2024-04-15 17:30:40 +08:00
Ye ShanShan 70d034165c fix: lossing value when save DConfig
Blocking caller until it's finished, otherwise
it maybe lose value when application is quit early.
2024-03-27 19:04:52 +08:00
deepin-ci-robot 391320dd81 chore: update changelog
Release 5.6.26.
2024-03-27 14:24:02 +08:00
deepin-ci-robot bd6065d97a chore: update changelog
Release 5.6.25.
2024-03-11 15:32:06 +08:00
YeShanShan d35b71e346 fix: DConfig add check for name
user can open non-root controlled files when `name` is relative path.

Issue: https://bugzilla.suse.com/show_bug.cgi?id=1211374
2024-03-05 15:20:58 +08:00
YeShanShan 101e1f2dd3 feat: support to set appId for DConfig
It's useful for generic config to explicitly specify application id.
2024-03-05 11:46:31 +08:00
ck 558d64be4e chore: fix docs typo
dic ==> dci
2024-03-04 19:22:19 +08:00
deepin-ci-robot 9c96f05fdb chore: update changelog
Release 5.6.22
2024-01-12 14:20:35 +08:00
ck 8c4f4364b6 chore: remove unused code
remove unused global functions
2024-01-10 11:14:25 +08:00
deepin-ci-robot 7d4ea9d078 chore: update changelog
Release 5.6.21.
2024-01-09 14:23:00 +08:00
chenhongtao a94a528d86 feat: allow skip including headers of annotations
Log:
Issue: https://github.com/linuxdeepin/dtk/issues/147
2023-12-19 14:33:36 +08:00
ck 6afbef5890 chore: fix relative path invalid link
```
 dci --export ./ ./xxx.dci
 # invalid symlink ./1.webp -> 3/36/normal.light/3/1.webp
 # should be       ./1.webp -> ../../normal.light/3/1.webp
```
2023-12-13 10:00:26 +08:00
bluesky 7eec6f3000 chore: remove decltype(auto) for dutil
Log: remove decltype(auto)
2023-12-13 09:59:02 +08:00
YeShanShan af8b7666ff fix: app blocked when AM is unavailable
We don't block application when AM is unavailable.
2023-12-08 19:12:59 +08:00
deepin-ci-robot fea15882e9 chore: update changelog
Release 5.6.20.
2023-11-28 17:55:09 +08:00
chenhongtao 1dfa31cfec chore: add dtk dbus generate function
Log: steal from qt
2023-11-17 09:37:28 +08:00
ck f790bab887 fix: log files limit not work
type convert failed
2023-11-14 15:52:35 +08:00
ck c51d1af37c chore: keep order when deduplication
set is unordered, results are inconsistent
2023-11-09 15:35:53 +08:00
chenhongtao 75c9a19f66 feat(dstandardpaths): add XDG_STATE_HOME
this folder is used to storage history and logs

Log:
2023-11-03 13:19:18 +08:00
ck a7dd2a8678 chore: Implement DSGApplication::getId
- Get appid from dde-application-manager
 Also available in the linglong box due to using pidfd
2023-10-30 14:05:03 +08:00