Comments (18)
from developer-center.
@dragondjf 我测试了一下,不知道前端是什么情况,后端似乎没什么问题,把/var/lib/lastore/categories.json删除后可以重现,你找时间看看吧
from developer-center.
经调试发现,archlinux 上后端 DBus 接口 GetAllCategoryInfos 返回的 category 以小写字母开头,而 Deepin 上则为大写字母,如
[('development', 2L, ['ipython3', 'd-feet', 'xoo', 'ipython']),
('reading', 3L, []),
('game', 5L, [])]
前端则是直接定义的常量
https://github.com/linuxdeepin/dde-launcher/blob/master/app/global.h#L22
from developer-center.
不应该是这个原因,不论是有没有我说的那个文件,返回的都是全小写的
from developer-center.
确实是大小写的问题,我把前端的 CategoryKeys 改为全小写后正常
const QStringList CategroyKeys{
"internet",
"chat",
"music",
"video",
"graphics",
"game",
"office",
"reading",
"development",
"system",
"others"
};
from developer-center.
那这个很容易处理呀,比较的时候ignore case就行了
from developer-center.
建议前后端均使用小写,否则前端有多处代码要处理 CategroyKeys 大小写问题,容易遗漏。
from developer-center.
我把字段看错了,确实是不应该传小写的字符串,是我这边fallback的错。因为以前是用的数字作为分类的id,但是新的软件商店用的是字符串,所以加了一层处理。
前端在处理的时候直接忽略了我传的数字id,其实那个数字才是id,字符串是分类的名字,不应该直接使用。之前有提过这个问题,但是还没有改过来。
from developer-center.
Desktop文件中的Categroy好像有大写的,这里还是要ignore case吧
from developer-center.
@Iceyer 跟desktop里面的没关系,这个是我们自己软件商店的分类,这个字段其实使用来显示的,并不是作为key来使用,但是前端没有正确使用这个字段(前端自己处理了国际化,所以后端现在也没有国际化这个字段了),其实这种操作都应该是尽量ignore case的,但是前端没处理我也没办法
from developer-center.
我觉得 key/id 这种用于标识的字符串使用时还是不要做 ignore case 处理比较好。
不过话说回来,Desktop 文件中的 Categories 应该都是按规范来填写的(即便同时出现 internet
Internet
两种 Category,由后端归类时处理下就可以),所以直接使用原生 Category 名称(前后端均不做任何大小写处理)来做 id 似乎也没问题。
from developer-center.
用字符串做id时确实不做ignore case比较好,但是这里返回的字符串不是做id用的,不是做id用的,不是做id用的。因为效率和case等原因,字符串本身一般情况下也不是做id的最好选择。
跟desktop文件里的Categories字段一毛钱关系都没有,一毛钱关系都没有,一毛钱关系都没有
不要歪楼,不要歪楼,不要歪楼
from developer-center.
原来如此 😅
from developer-center.
hi ive installed arch..and i have the same issue...how can i solve it...
thanks
from developer-center.
@mseba101 please wait a monent, we are dealing with it. It will be merged as soon as possible.
from developer-center.
you are very kind ...thanks for the reply
linux !!
2016-01-27 23:54 GMT-03:00, 李立强 [email protected]:
@mseba101 please wait a monent, we are dealing with it. It will be merged as
soon as possible.
Reply to this email directly or view it on GitHub:
#24 (comment)
from developer-center.
Thanks, solved now. Let's just wait for dde-launcher 3.0.4 and dde-daemon 3.0.8 in archlinux~
from developer-center.
ok im using gnome/cinnamon and plasma 5 on my desktop if deepin hadnt had
that bug it would ve been perfect for my desktop!
arch runs pretty well ..sometimes strange things happen witth my wifi but
its not a soft. issue i think its connected with my ssd hard drive....ill
wait for the packages
thank you !
2016-01-28 23:49 GMT-03:00 Xu Fasheng [email protected]:
—
Reply to this email directly or view it on GitHub
#24 (comment)
.
from developer-center.
Related Issues (20)
- [Deepin Integration]~[V23-Release] Release 1.5 by dengbo11@linuxdeepin/linglong by deepin-community-ci-bot[bot] HOT 6
- 【deepin_V23_Release】【一般】【立即】【RC2镜像测试】【DDE】【任务栏】0531新镜像,安装后任务栏没有显示控制中心
- 【deepin_V23_Release】【一般】【立即】【RC2镜像测试】【DDE】0531镜像中,deepin ID模块登录对话框展示双图标 HOT 2
- [Deepin Integration]~[V23-Release] Enable LSX (128-bit vector extension) optimisation for loong64 by MingcongBai@deepin-community/dpkg by deepin-community-ci-bot[bot] HOT 3
- 【deepin_V23_Release】【一般】【立即】【发散测试】【窗口管理器】三方应用超出屏幕时,没有触发分屏效果 HOT 1
- [Deepin Integration]~[V23-Release] fix: fix build on loong64 by MingcongBai@deepin-community/numpy by deepin-community-ci-bot[bot] HOT 3
- 【deepin_V23_Release】【ARM】【一般】【立即】【发散测试】【DDE】【任务栏】arm架构,任务栏上点击有线连接,展示2个有线连接
- 【deepin_V23_Release】【一般】【立即】【发散测试】【DDE】【任务栏】将截图固定到桌面时,任务栏上的图标显示空白 HOT 1
- 【deepin_V23_Release】【一般】【正常】【RC2镜像测试】【DDE】【任务栏】中文环境,通知中心的控制中心名称显示为英文 HOT 1
- 【deepin_V23_Release】【一般】【立即】【RC2镜像测试】【DDE】【launchpad】深色模式,关闭窗口特效后,启动器窗口显示圆角叠直角 HOT 1
- 【deepin_V23_Release】【一般】【立即】【发散测试】【DDE】【控制中心】控制中心与命令行更新的数据未同步 HOT 2
- 【deepin_V23_Release】【一般】【立即】【RC2镜像测试】【DDE】【launchpad】在应用文件夹内,使用右键 点击右键菜单中的发送到桌面时,不停弹出右键菜单后窗口返回上一级 HOT 2
- 【deepin_V23_Release】【严重】【立即】【RC2测试】【玲珑】玲珑使用过程中,org.dde.calendar自动卸载 HOT 2
- 【deepin_V23_Release】【一般】【立即】【发散测试】【系统】挂载smb服务出现连接问题时,会导致文管卡住 HOT 1
- 【deepin_V23_Release】【一般】【有空】【内测反馈】【DDE】【任务栏】桌面上的应用拖动到任务栏时,没有在任务栏驻留 HOT 1
- 【deepin_V23_Release】【一般】【立即】【RC2镜像测试】【DDE】【控制中心】关闭内测通道后,文字提示信息展示不完整 HOT 1
- [Deepin Integration]~[V23-Release] Upload SetupTool by kunluntech-ci@deepin-community/firmware-update by deepin-community-ci-bot[bot] HOT 7
- 【deepin_V23_Release】【严重】【立即】【发散测试】【loongarch64架构】【安装器】loong64架构,试用模式无法进入 HOT 1
- [Deepin Integration]~[V23-Beta3] Auto integrate from topic: cdapp-20240531 by @max-lvs to V23-Beta3 by deepin-ci-robot HOT 6
- [Deepin Integration]~[V23-Release] feat: update alsa-utils to 1.2.11-1 by deepin-community-bot[bot]@deepin-community/alsa-utils by deepin-community-ci-bot[bot] HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from developer-center.