开发者

Why running sudo to my own account fixes graphical problems in Swing GUI

开发者 https://www.devze.com 2023-01-04 04:20 出处:网络
My swing GUI application starts with a script. When I run that script under Linux without sudo it gives me unexpectedLook and feel and other graphical problems.

My swing GUI application starts with a script.

When I run that script under Linux without sudo it gives me unexpected Look and feel and other graphical problems.

Why is running with sudo su to my own account fix开发者_JS百科es this problem?


One might guess that the program is trying to make use of a file that has permissions that allow root to access it, but not your uid. Perhaps you have a library installed with wrong permissions?

strace will tell you what files your app is trying to access.

0

精彩评论

暂无评论...
验证码 换一张
取 消