• Post Reply Bookmark Topic Watch Topic
  • New Topic

Script run from /etc/xdg/autostart  RSS feed

 
Partheban Udayakumar
Ranch Hand
Posts: 499
AngularJS Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I wrote a script and a desktop file to run my jar at startup and placed the script in /usr/bin and desktop file in /etc/xdg/autostart. When I reboot, the jar is not running. I used the top command and ps -A commands to check this. Currently I am using Ubuntu 14.04 Trusty. To test this I wrote another script file and desktop file to run a jar that just displays a JOptionPane message dialog. When I reboot, this jar runs without any problem. The script and desktop files are as follows:

For my jar:

Script file : suscript



Desktop file : su.desktop



I will change the permission using the command


For test jar:

Script file : sutscript



Desktop file : sut.desktop



I will change the permission using the command


But when I manually run the script or jar, it works. There are no exceptions or errors. Any ideas?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!