wine handles an app weirdly in ubuntu 8.04

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
Vitorio Okio

wine handles an app weirdly in ubuntu 8.04

Post by Vitorio Okio »

I have a little Windows app which under Windows does not require
installation. When started the first time, it creates in its own
directory three files with desired configuration options I choose at that
time. The next time started it simply uses those files.

I copied the folder with the app and old config files to my Ubuntu 8.04
desktop and here what I have.


1. If I open the app folder in Nautilus and then either double click on
the app_name.exe file or select "Open with 'Wine Windows Program Loader'"
it starts and uses the existing config files without any problems.

2. If I create a launcher to the app in its own folder (did it just for a
test sake) it also works correctly as described above.

If instead:

1. I move (either copy or drag-and-drop) the launcher created in the app
folder to any other location (in my case it was Desktop);

or

2. I open a console and execute

'cd /path_to_app_folder/app_name.exe'
and then
'wine app_name.exe';

or

3. I create a launcher with the command 'wine /path_to_app_folder/
app_name.exe;

then in all last 3 cases the app starts but ignores the existing config
files. Instead it behaves like was started at the very first time. That
is, it creates new config files. What is bad it creates them in my /home/
user_name/ directory instead of its own folder as expected.

This prevents me of creating a launcher to the app_name.exe since I just
hate having its config files wondering at a wrong place.

Any idea why the app is handled by Wine so differently in the described
cases? And how to get around of it, if at all possible?
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: wine handles an app weirdly in ubuntu 8.04

Post by vitamin »

Vitorio Okio wrote:I have a little Windows app starts but ignores the existing config
files. Instead it behaves like was started at the very first time.
This is one of the broken apps that expects full path in the argv[0]. This is not always the case. You need to give it what it wants. In other words, you have to specify _full windows_ path when you start it. Ex:

Code: Select all

wine 'c:\some_dir\program.exe'
Or

Code: Select all

wine start /unix /home/user/Desktop/some_other_dir/program.exe
Vitorio Okio

wine handles an app weirdly in ubuntu 8.04

Post by Vitorio Okio »

On Tue, 16 Sep 2008 15:21:32 -0500, vitamin wrote:
This is one of the broken apps that expects full path in the argv[0].
This is not always the case. You need to give it what it wants. In other
words, you have to specify _full windows_ path when you start it. Ex:
wine 'c:\some_dir\program.exe'
This worked the same wrong way as I described before.
wine start /unix /home/user/Desktop/some_other_dir/program.exe
But this did the trick. It worked as a charm.

I thank you very much for the suggestion. Now I can use my little
utility the way I used to. :-)
Locked