[deepin exploration] 数字健康(屏幕时间)任务栏插件v0.2
Tofloor
poster avatar
Rubbish
deepin
2025-02-28 00:38
Author

春节前后升级到了v23,发现之前写的数字健康插件不兼容了

研究了三天终于确定是托盘区插件机制不兼容QQuickWidget,在Blumia建议下切换到了全新的dde-shell插件架构

顺便优化了一堆外观细节/外观bug,通过dtk declarative支持了跟随系统主题(明暗)

1740670821047.png

1740670856490.png

链接如下(插件和后端两个项目)

https://github.com/ZhongYic00/digitalwellbeing-daemon/releases/tag/v0.2.2

https://github.com/ZhongYic00/digitalwellbeing-plugin/releases/tag/0.2.6


目前的遗留问题:

  1. 还没翻译
  2. 可能出现一个时长很长的unknown,原因可能是锁屏事件漏检
  3. 只能放在任务栏最右侧,dde-shell插件似乎不支持调顺序
  4. 命名上占了org.deepin的坑tail 因为之前开源实习生时候这么叫的,现在也没想好自己的前缀

一些建议:

希望DDE在AM或者单开一个服务,用来统计各种用户行为信息(现在dbus上给的粒度太粗)。虽然我自己的数据还没玩明白,但这些行为数据肯定能在本地支撑应用启动智能推荐、工作集自动识别、智能窗口排序之类的

这方面的开源sota产品有Activity Watch,但

  1. 太重量级了,这么些事件记录+可视化要近百MB
  2. python为主,架构类似微服务也没使用dbus,各种http通信也挺低效的

更异想天开的建议:

数据查询服务建议用dbus套graphql,以提升应用侧数据请求的灵活性

Reply Favorite View the author
All Replies
deepin小助手
Super Moderator
OM
2025-02-28 11:14
#1

kissing_heart 厉害了……

社区应用投递平台欢迎您:https://appdelivery.deepin.org.cn/#/index

Reply View the author
神末shenmo
deepin
Spark-App
Solutions Team Moderator
2025-02-28 11:15
#2

@gfdgd_xi 把旧版的拿过来改一改塞进去?joy 咱还在用dde-dock

Reply View the author
Rubbish
deepin
2025-02-28 12:36
#3
神末shenmo

@gfdgd_xi 把旧版的拿过来改一改塞进去?joy 咱还在用dde-dock

有dtk6应该可以把新qml和旧cpp拼起来,旧的qml可能有些bug kissing_heart

Reply View the author
Rubbish
deepin
2025-02-28 12:37
#4
deepin小助手

kissing_heart 厉害了……

社区应用投递平台欢迎您:https://appdelivery.deepin.org.cn/#/index

有些合规性的问题得修修,比如起名应该不能用org.deepin joy

Reply View the author
神末shenmo
deepin
Spark-App
Solutions Team Moderator
2025-02-28 13:45
#5
Rubbish

有dtk6应该可以把新qml和旧cpp拼起来,旧的qml可能有些bug kissing_heart

咱这边是dtk2~

Reply View the author