views:

46

answers:

1

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 fixes this problem?

+1  A: 

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.

Eric Seppanen