Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'd like to run automatically at startup two programs.
irxevent and irexec. I use KDE version 3.4.1. I'd like to use KDE Autostart for it. What should I do to run these programs with KDE?.
Or maybe there is some other way, independent of window managers?.
My distro is Aurox 11.0, it's based on Fedora Core 3.
Assuming you only need to run them in userspace, then it's simple. Just put/create a shortcut link to the programs in .kde/Autostart. It's analogous to the Startup Menu item in Windows in this way.
If you want something independent of a window manager, you should probably put a line in your .xsession or a related file. There are lots of pages on the web explaining it if you want to know how to do that.
I tried it. I added to /home/mac/.kde/Autostart/Autorun.desktop following lines (last lines of this file):
Exec=/home/mac/lirc-0.8.0/tools/irxevent
Exec=/home/mac/lirc-0.8.0/tools/irexec
But it's not working. Why?.
Is there no graphical interface or something like it is in Windows?. Something like Autostart folder and it's enough to drag'n'drop exec file to it to get it done?.
Open the location up in Konqueror (the official integrated KDE file browser/web browser) and you can right click to get "create new->link to application", which you can then use to create your shortcut. You also get the same menu when you click on the desktop, so you could also create the link there and then move or copy it into the Autostart folder. You can even d&d a link directly from your K menu. As you can see, there are quite a few options available.
And just to be clear, you want to create a separate link, not modify an existing file. As redazz pointed out, the format should be that of a KDE application link, with the syntax he spelled out.
the Exec commands you tried, OTOH, are what you'd use in .xsession, I believe.
OK, I've got it. My mistake was that I edited Autorun.desktop, file which shows contents of CD-Rom at startup. I created another desktop file (or rather two files - Irexec.desktop and Irxevent.desktop) and
irxevent is working fine but there is still problem with irexec. It works only when I run it from the console. When I create shortcut in desktop it fails even if I turn on "run in terminal" option. The same is with creating Irexec.desktop in Autostart folder. It doesn't run this irexec automatically. Generally speaking are there programs that can be run only from the console and programs that can be run at start up?. It seems to me that there is such difference between irexec and irxevent.
Last edited by mac1234mac; 05-10-2006 at 02:26 PM.
I really couldn't tell you. But I have experienced situations where something would run from a console, but not from a shortcut, and I have no idea why it wouldn't work. Maybe there's something about the way KDE launches applications that causes problems in some rare situations.
You might try this though. I didn't know if it would work when I made my last post, but I've just experimented, and I found that Autostart will also run scripts and symlinks to exectuables in addition to KDE shortcuts (I guess it just tries to run whatever it finds in there). So try creating a symlink directly to /home/mac/lirc-0.8.0/tools/irexec and see if it will run then. If that doesn't work, you can also try launching it through a simple bash script (don't forget to chmod u+x it):
Yes, I mean simply create the link in the Autostart folder. Autostart will try to run whatever's in it.
And while I don't know exactly how Autostart runs it's programs, I don't think it goes through a shell (I believe it uses kdeinit). The script does use bash, however, and therefore it should launch the program exactly as if you ran it in a bash shell. So it might be more likely to work, considering your situation.
And while it may not be important here, a script of some kind is the only way you would be able run a program that had options or arguments, since you can't very well add flags to a symlink. :P
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.