noble_curious
2008-Oct-06 09:13 UTC
[Wine] application doesnt start at startup when run via WINE !
[Evil or Very Mad]
Hi all,
I am using Fedora 8 Linux.
I have a situation where i need to start a service at startup. the service is
started using wine say... ` wine MyService.exe`
I made a small daemon script for it which has start and stop functions where
start function just runs above statement. Then I have configured this script to
start at runlevel 5. Now the situation is that at startup there is no sign of my
service being started. To verify if the service script is OK.. I run this script
at shell
service MyService start
where MyService is the script under init.d directory. But nothing happened
But strage thing is that when I run script like this:
/etc/init.d/MyService start
or
/etc/rc.d/init.d/MyService start
That works and my service is started!
I was suspicious if there is something wrong with my MyService.exe application
so I changed the MyService script start function as
start()
{
wine notepad &
}
and the same thing happened!. While running service using service command it
doesnt starts notepad while if I provide full path of the service script it then
started notepad. What is the problem here. I then creaated another small
application as native Linux which was small server started to accept clients.
This application was successfully started both with service command and by
providing full path to the script. But when I compile same application program
code in Windows and run it via WINE it doesnt start using service command. You
people may check this at your system by testing if above listed start function
runs successfully or not! using service command. I guess that while system boots
and process through various runlevel it starts/stops services using service
command and this is the reason it doesn't start at startup.
I tried to have one trick as well. I put another function with the name start2()
it was like this
..
...
start2(){
wine notepad &
}
start(){
/etc/init.d/MyService start2
}
...
.....
But this too was void. As it didnt work. Now one thing is obvious that there is
problem due to wine here.
Please share your experience and help me out that how can I use wine to start
windows application at startup. Kindly look into the matter
Regards,
noble_curious
Reasonably Related Threads
- ?to calculate sth for groups defined between points in one variable (string), / value separating/ spliting variable into groups by i.e. between start, NA, NA, stop1, start2, NA, stop2
- Running ices on startup
- RPART - printing full splitting rule number on tree plot
- [LLVMdev] Can simplifycfg kill llvm.lifetime intrinsics?
- Problem with Samba 2.2.8a-107 on SuSE 9.0 and 8.3 filenames