Closed keybreak closed 5 years ago
FYI root dde-file-manager use the preference of the root user.
Hmm...Ok i didn't know that, problem is that i had only 1 user with root passsword on this test-system, and it happened only after last update, so i guess it still can be considered as bug, right? Probably connected to https://github.com/linuxdeepin/developer-center/issues/893 then
so i guess it still can be considered as bug, right?
Yep, btw did this also happened on Deepin (distro)? Seems works fine on my machine with deepin distro.
Nope can't confirm, i haven't tested Linux Deepin on real 4k machine yet. btw is there any way to trick VirtualBox to behave as 4k with scaling, for testing purposes?
Just to clarify my sloppy english above, i mean i've tested only in Manjaro Deepin and can't confirm Linux Deepin)
But bug is still here.
@BLumia Can you please fix this? :smiley_cat: On 4k screen root file manager is unusable :(
Sorry I'm really busy these days, the priority of this issue is not quite high..
But, just curious, what's your use case for using root file manager? IMO user should avoid using root file manager for their daily work since it can take damage to the file if user modified some file in the wrong way and it may cause other issue.
Ok, i know that you have a lot of hardcore things to do lately and thank you)
Main use cases for me are:
So i mean, it's obviously for power-users and probably people used to do it other ways, but for me it's a really handy way of quickly doing system-level things)
Just did some quick research, seems pkexec
cannot pass the current environment variable to the program it runs, the program will still read the root user's related environment variable to do the scaling behavior. We can add extra argument to dde-file-manager to manually set the scale factor to override the one which environment variable given, but it seems is not a clean way to do.
And although adding extra argument to the file manager can workaround this issue, other program which runs by pkexec
may still got this issue. #607
Any other idea about this?
@electricface 修改屏幕缩放比会修改 ~/.pam_environment
文件吗?
不会
Should be fixed now, please wait for next release :)
sudo deepin-editor也有同样的问题,deepin环境下
@xiaoc-arch How the hell you managed to get sudo deepin-editor working at all now? It wasn't fixed yet https://github.com/linuxdeepin/developer-center/issues/889
比如sudo deepin-editor /etc/modprobe.d/xxxx;安装nvidia418.43
wow...
So you don't have this bug on Arch Deepin, that you can't in any way open deepin-editor as root Interesting :astonished:
@BLumia Please note, that both of this bugs (OP and https://github.com/linuxdeepin/developer-center/issues/889) can be connected since they was started in same day, after exactly same update and wasn't there before.
Hopefully this info also can help you with solving root deepin-editor bug, if not already)
仍然建议你使用deepin,arch系列的dde移植不太好,包依赖处理的不太好,我之前也是arch+dde
@xiaoc-arch 有什么包依赖问题麻烦反馈一下……
要说运行流畅完全没问题,只是arch有些包没有,也不能怪你,哈哈。deepin处理得更细:dde-file-manager居然依赖deepin-movie,deepin-movie居然又依赖mpv,完全没必要啊,Deepin下deepin-movie都是依赖libmpv1的。我看了arch里面根本没有libmpv包,这样虽然运行流畅,但避免不了软件杂糅,安装网易音乐(依赖vlc)后,arch都有四五个播放器了
sudo deepin-editor也有同样的问题
其实是 pkexec
运行的时候不会把环境变量带过去,Qt使用了几个环境变量决定缩放行为,但又由于 pkexec
的安全缘故(详情自行 man pkexec
)带不过去,所以就只能不缩放显示了。
文件管理器之前的处理方式是读 .pam_environment
,而后端(startdde
)不再管理 .pam_environment
文件之后,文件管理器即便再读取也没什么实质意义了(因为里面内容是不对的)。
这次的修复是采用了读取 .dde_env
的方式,于是就有个前提是 .dde_env
得是对的。这个东西是 startdde
管理的,于是如果在非 DDE 下跑深度的文管,其实还是可能有问题的,所以我个人觉得这个方案其实也不算好,但至少管用。
其实我觉得 pkexec
在运行别的程序时能够附带必要的不会造成安全问题的环境变量会是比较好的解决方案,而不应该是应用做一些奇怪的 hack...
How the hell you managed to get sudo deepin-editor working at all now? It wasn't fixed yet
Sorry I still didn't have enough time to look into that issue :joy:
要说运行流畅完全没问题,只是arch有些包没有,也不能怪你,哈哈
反馈具体的内容才能帮助改善这些问题,只是说“有问题”不是太有帮助其实..
@felixonmars Well... @xiaoc-arch got the point, obviously in general less dependencies = better = more stable (at least for OS-level programs it definitely makes sense), but i guess that's Arch way....
Though dde-file-manager i believe requires deepin-movie & mpv for preview using space
Still Arch is very modular)
Best examples of really independent / portable Linux software are Telegram and Renoise)
@BLumia Also by chance, maybe it's connected to this one https://github.com/linuxdeepin/developer-center/issues/896?
It came out same day as this bug, after same update and also is 4k related, so just in case thought you might want to check)
@BLumia Solved in Arch and Manjaro, thanks! :+1:
@BLumia @zhaofangfangdeepin Please reopen this issue and fix again, started to happen with new Manjaro Deepin update. But this time root file manager text is normal size, only it's icons and window size is small.
Just in case i've tried to change scaling logout-login - still same.
deepin-file-manager 1:4.8.4.1-1
OS: Manjaro 18.0.4 Illyria
Kernel: x86_64 Linux 4.19.42-1-MANJARO
Shell: bash 5.0.7
DE: Deepin 15.10.1
WM: Deepin WM
But this time root file manager text is normal size, only it's icons and window size is small.
What's the output of env | grep QT
and cat ~/.dde-env
?
Will consider reopen this one or create a new one depends on the result.
@BLumia
Here you go: env | grep QT
QT_DBL_CLICK_DIST=30
cat ~/.dde-env
# DDE user env file, bash script
export DEEPIN_WINE_SCALE="2.00";
export LANG="ru_RU.UTF-8";
Well, seems a control center or dde-daemon issue, it should write the scaling info to ~/.dde-env
. It's also weird since your env | grep QT
only shows one result. for that case the normal apps will also don't have DPI scaling, too.
@yefeifei
需要确认:调整 DPI 并注销重新登录后,~/.dde-env
中是否有被正确设置当前的 DPI ,环境变量中的相关环境变量是否有被正确设置,以及文件管理器的管理员模式缩放是否正确。
edit: 不用测了,确认这个行为改了。
https://github.com/linuxdeepin/dde-file-manager/pull/173
No longer using ~/.dde_env
now.
Means this issue will be fixed on next update?
Seems to be finally solved on 12.06.2019 Manjaro Deepin stable update.
@BLumia
Thx, so ~/.dde_env
can be safely removed, it's not used by dde anywhere else?
Seems to be finally solved on 12.06.2019 Manjaro Deepin stable update.
@BLumia Thx, so
~/.dde_env
can be safely removed, it's not used by dde anywhere else?
Yes you can remove that file now, but I can only confirm all project which I maintained are no longer using ~/.dde_env
now. Not sure if other project is still using it. Feel free to fire a bug if you found any other project is still using that file :)
Describe the bug
On 4k screen with scaling higher than 1, root dde-file-manager doesn't honor scaling settings.
To Reproduce
Expected behavior
Every program should honor system scaling :)
Screenshots
Enviroments:
OS: Manjaro 18.0.2 Illyria Kernel: x86_64 Linux 4.19.20-1-MANJARO Shell: bash 5.0.0 DE: Deepin 15.9 WM: Deepin WM WM Theme: deepin GTK Theme: deepin [GTK2/3] Icon Theme: deepin bits: 64 compiler: gcc v: 8.2.1 tk: Qt 5.12.0 dm: LightDM
Distro & Version
Manjaro Deepin 18.0.2
Related package version
deepin-file-manager 1:4.7.5-1
Additional context
Tested only on this machine and only in Manjaro Deepin, since i don't have any other 4k, inxi -Fxxz: