Home
Categories
WIKI
Topic
User
LANGUAGE:
中文
English
希望字体安装器无root权限依赖
Experiences and Insight
643
views ·
3
replies ·
To
floor
Go
Feng Yu
deepin
2019-06-03 07:50
Author
就跟gnome的字体安装器一样,默认安装在用户自己的字体目录,对于fontconfig目前版本的建议,这个路径是:
~/.local/share/fonts/
Copy the Code
同时,我觉得打断用户提取权限是一种不友好的行为,能避免使用root权限的应该尽可能避免。比如linuxmint创建自定义的程序入口,会创建在~/.local/share/application/xxx.desktop,这样可以避免要求用户使用root权限。
Reply
Like 0
Favorite
View the author
All Replies
iblis
deepin
2019-06-03 15:35
#1
可以,而且避免root权限也可以方便多用户系统各个用户之间独立运行
Reply
Like 0
View the author
魔法师
deepin
2019-06-03 16:12
#2
不应该是~/.fonts嘛,字体一扔就生效了
Reply
Like 0
View the author
Feng Yu
deepin
2019-06-03 17:51
#3
本帖最后由 abcfy2 于 2019-6-3 09:58 编辑
https://bbs.deepin.org/post/178749
不应该是~/.fonts嘛,字体一扔就生效了
这个是旧的地址,已经是不建议的了。你可以看man fontconfig的说明,至今依然保留这个地址的兼容,但是推荐~/.local/share/fonts/,当初看gnome字体安装器将字体文件安装到这个目录下觉得很奇怪,跟自己一直印象中都是~/.fonts/不一样,专门看了下man手册就了然了。
在/etc/fonts/fonts.conf专门有这样的配置说明:
~/.fonts
Copy the Code
Reply
Like 0
View the author
Please
sign
in first
Featured Collection
Change
[Tutorial] deepin25 WSL Offline Installation Guide
UOS AI 2.8 Released! Three New Intelligent Agents & Major Evolution
Solid Q&A | deepin 25 Common Questions – The Immutable System Edition
New Thread
Popular Events
More
同时,我觉得打断用户提取权限是一种不友好的行为,能避免使用root权限的应该尽可能避免。比如linuxmint创建自定义的程序入口,会创建在~/.local/share/application/xxx.desktop,这样可以避免要求用户使用root权限。