|
From: Joey G. <jo...@su...> - 2010-05-27 16:31:36
|
I'm using the Java Service Wrapper to create a service in Linux. This Java Application has no main GUI, but if certain error message occur then it displays a warning box allowing the user to know. If I log into root and install the application everything works fine. But, if I log into a none root user graphically and then do a su - to get to root the service will not start. This is the command I'm using inside the service (/etc/init.d/rc.d/backup) to start the application export DISPLAY=:0.0 /home/pulse/backups/bin/backup start -Djava.awt.headless=true If I take out the "export DISPLAY=:0.0" the service will start fine, but when an error occurs the warning box doesn't pop up. |