MandrivaThis Forum is for the discussion of Mandriva (Mandrake) Linux.
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.
newbie as I am, I have a few questions concerning the Autostart -feature in Konqueror. I can succesfully start a dedicated host for a game from shell, but if I use the exactly same command to create a new link to application in Konqueror autostart, it won't work. Here's the original command in shell:
wine LFS.exe /cfg=setup.cfg
Here's what's in Autostart:
<path>/'wine LFS.exe /cfg=setup.cfg'
When KDe starts it tries to start the dedicated host, but the hourglass only rotates and nothing really happens I can't figure it out, because the it works really great from the shell. However I really would like to start the dedicated host automatically after server boot etc. Any clues?
I'm logged in as a normal user, the host don't need root priviledges.
how are you using the autostart to try to start the program? i mean, are you just copying the executable to Wine in autostart or are you creating a link to it? (please note, i have no experience with Wine, but i do have several apps set to start via autostart) there are 2 ways to properly use autostart in KDE.
1. you can create a symlink via terminal as root. open a terminal, su to root, cd to /home/user(you)/.kde/autostart & type........... ln -s /path/to/the/executable (-add any switch(es) here). hit enter
2. open Konqueror file manager, navigate to /.kde/autostart, choose edit->create new->file->link to application, browse to the executable, adjust the command with any switch(es), apply.
I've tried the second way. Just like you said, creating a link to application and browsing the executable and the switches. Like this:
'this/is/the/path/wine LFS.exe /cfg=setup.cfg' and then hit apply. The icon appears to the .kde/Autostart just like I supposed, but the link or whatever doesn't work I really don't get it, because there isn't any additional characters in the command when I run it manually from shell. The path must be correct, because I browse the executable, so it automatically (should) be correct, right? Same thing when I tried to create a standard dektop icon to launch the host program, it won't work. Strange. Any clues?
again, never having had experience with Wine, i can't be sure that this is something "Wine Specific" & won't work no matter what you try. in theory, what you're doing should work. the only other things i can suggest are trying to symlink via a terminal command like i described in # in my other post (first, remove the link you currently have in autostart). or, just as a test, try starting Wine in autostart without the switches & see if it works that way. if it does, then you can at least narrow the problem down to the switch either not being correct or able to be used.
also, check your syntax for the executable & path closely. make sure you have all CapS, spaces, & spelling correct. sometimes it's the little things..........
This comes somewhat late, but what I notice is that when starting this from a shell, you're in the program folder, and when starting it from the shortcut, you are not.
Some (OK, many) programs run under Wine really, really want you to start the exe from the program folder, rather than using a full path statement.
So what I would do is, rather than using a shortcut, would be to put a short script into my Autostart folder:
wine LFS.exe /cfg=setup.cfg
Save it, make it executable by the appropriate user and then try the script from a terminal to see if it works as you want. If so, put it in the Autostart folder in its entirety (you can put scripts in there as well as program symlinks, afaik).