开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜