[SOLVED]Problem with parameter from Tux to win
-
- Level 2
- Posts: 22
- Joined: Sat Apr 25, 2009 8:49 am
[SOLVED]Problem with parameter from Tux to win
Hi,
I use K-Meleon under wine as browser, and Thunderbird (linux version) as mail client.
When I click on a link in Thunderbird, K-Meleon is opened, but the parameter isn't sent, instead of it I have just '%u', the parameter I have put on the line in default programs to say to pass the real parameter.
K-Meleon receive %u and modify the address to http://www.%u.com/
Is it a thunderbird or a wine bug, or have I missed something ?
Thanks
A+
I use K-Meleon under wine as browser, and Thunderbird (linux version) as mail client.
When I click on a link in Thunderbird, K-Meleon is opened, but the parameter isn't sent, instead of it I have just '%u', the parameter I have put on the line in default programs to say to pass the real parameter.
K-Meleon receive %u and modify the address to http://www.%u.com/
Is it a thunderbird or a wine bug, or have I missed something ?
Thanks
A+
Last edited by JujuLand46 on Wed May 20, 2009 3:19 pm, edited 1 time in total.
Problem with parameter from Tux to win
JujuLand46 wrote:
James McKenzie
You have to pass the actual parameter. %u will not work.Hi,
I use K-Meleon under wine as browser, and Thunderbird (linux version) as mail client.
When I click on a link in Thunderbird, K-Meleon is opened, but the parameter isn't sent, instead of it I have just '%u', the parameter I have put on the line in default programs to say to pass the real parameter.
K-Meleon receive %u and modify the address to http://www.%u.com/
Is it a thunderbird or a wine bug, or have I missed something ?
James McKenzie
-
- Level 2
- Posts: 22
- Joined: Sat Apr 25, 2009 8:49 am
Thanks for the answer, but it doesn't make me happy.
It obviously works with a linux browser, so I presume it's a bug of wine.
Or perhaps a limitation which can't be cleared ?
It would be interesting to have the info.
I can perhaps manually copy the link and try to paste it in the URL bar, but I'm not sure, having read some post about clipboard problems, that it will works. And it's a pain to have to make it manually.
A+
It obviously works with a linux browser, so I presume it's a bug of wine.
Or perhaps a limitation which can't be cleared ?
It would be interesting to have the info.
I can perhaps manually copy the link and try to paste it in the URL bar, but I'm not sure, having read some post about clipboard problems, that it will works. And it's a pain to have to make it manually.
A+
Re: Problem with parameter from Tux to win
There is no such expansion in windows shellexec.JujuLand46 wrote:K-Meleon receive %u and modify the address to http://www.%u.com/
-
- Level 2
- Posts: 22
- Joined: Sat Apr 25, 2009 8:49 am
-
- Level 2
- Posts: 22
- Joined: Sat Apr 25, 2009 8:49 am
In the tool to define the default programs for browsing and mailing, we can declare a personnalized program, instead of Firefox, for example.
For the browser, I have entered this:
"/opt/Program Files/K-Meleon/k-meleon.exe" %u
If I remove %u, K-Meleon is launched without parameter.
%u will be used to say that a parameter can be passed. I don't know how the parameter is passed to the target program, but I expect that in the command line, %u will be replaced by the real parameter.
It seems that it's not made like I thought, and perhaps the source program put it in an env variable, and the target source must read it. I can't clearly explain how it's made, but I need it and I'm really ennoyed.
But perhaps you know the way used by tux programs to pass parameters, and can explain it.
Thanks
A+
For the browser, I have entered this:
"/opt/Program Files/K-Meleon/k-meleon.exe" %u
If I remove %u, K-Meleon is launched without parameter.
%u will be used to say that a parameter can be passed. I don't know how the parameter is passed to the target program, but I expect that in the command line, %u will be replaced by the real parameter.
It seems that it's not made like I thought, and perhaps the source program put it in an env variable, and the target source must read it. I can't clearly explain how it's made, but I need it and I'm really ennoyed.
But perhaps you know the way used by tux programs to pass parameters, and can explain it.
Thanks
A+
-
- Level 2
- Posts: 22
- Joined: Sat Apr 25, 2009 8:49 am
-
- Level 2
- Posts: 22
- Joined: Sat Apr 25, 2009 8:49 am
I have filled a bug in Bugzilla (18463) for the impossibility of wine to receive the parameter from a linux program and to send it as a parameter to a windows program.
The bug has been quickly closed with this answer:
A+
The bug has been quickly closed with this answer:
In Administration > Prefered programs > Browser, I enter the entire path of the browser and a parameter %U to say allow the possibility to pass a parameter.Where did you set that "%U"? Obviously whatever parses it doesn't understand
it. Wine has no such expansion.
wine ought to pass the parametersInvalid - not Wine bug.
???Look at the place that starts Wine.
A+
You still not getting it... You can not enter magical expansion variables. "%U" doesn't mean anything to Wine or any other program.JujuLand46 wrote:In Administration > Prefered programs > Browser, I enter the entire path of the browser and a parameter %U to say allow the possibility to pass a parameter.
Where did you pulled that "%U" from? Why are you insisting that it somehow should be expanded to something you think it should?
-
- Level 2
- Posts: 22
- Joined: Sat Apr 25, 2009 8:49 am
When I look for epiphany properties in the Menu tool, the following string is entered :You can not enter magical expansion variables. "%U" doesn't mean anything to Wine or any other program.
epiphany-browser %U
So, in the Prefered Program tool, I replace the personnalized string with k-meleon path and %U
Here my last tests:
I have tried to replace, in the ubuntu tool to choose default browser, the k-meleon string with the epiphany string found in the shortcut,
When using it from Linux Thunderbird, it opens epiphany but the %U string isn't evaluated. If I delete %U it just opens epiphany without opening the link.
If I choose epiphany in the list, it opens the links.
From these results, we can say that %U parameter is never developped, even with a linux program. We can say too, that there is a difference between passing a parameter from a shortcut and a program.
So, the way is perhaps to make the windows program to appear in the program list, to make wine able to keep the parameter ? But how ?
In this case, it can't be considered purely as a wine bug, but it will be necessary to help to find a way to add windows programs in this list.
shortcuts in 'Main menu' tool.Where did you pulled that "%U" from?
Because this parameter, using probably another way, is used between programs to pass parameters. It's really an important need to make windows program integration in linux something natural and easy to use under Linux.Why are you insisting that it somehow should be expanded to something you think it should?
The way I wanted to use was probably wrong, but the necessity is right.
Hoping that a solution can be found, because it's really important.
How do other windows program to be able to keep parameters passed by linux programs ?
Thanks
A+
-
- Level 2
- Posts: 22
- Joined: Sat Apr 25, 2009 8:49 am
@demesio,
It seems the bug you're talking isn't the problem I describe. There is a few time I have solved it with a program which replace the linux path by a windows path. And, When I click on an html file, it transforms the windows path to a linux one, and K-Meleon opens it correctly.
No, the problem I talk is about the parameter passed by a linux program to a windows program using wine. It seems wine isn't able to receive it and pass it to the windows program.
I think it's an important feature to have a complete integration of a windows program into Linux.
A+
It seems the bug you're talking isn't the problem I describe. There is a few time I have solved it with a program which replace the linux path by a windows path. And, When I click on an html file, it transforms the windows path to a linux one, and K-Meleon opens it correctly.
No, the problem I talk is about the parameter passed by a linux program to a windows program using wine. It seems wine isn't able to receive it and pass it to the windows program.
I think it's an important feature to have a complete integration of a windows program into Linux.
A+
Problem with parameter from Tux to win
JujuLand46 wrote:
James McKenzie
Look for this in Bugzilla. If it is not present, file an enhancement bug.@demesio,
It seems the bug you're talking isn't the problem I describe. There is a few time I have solved it with a program which replace the linux path by a windows path. And, When I click on an html file, it transforms the windows path to a linux one, and K-Meleon opens it correctly.
No, the problem I talk is about the parameter passed by a linux program to a windows program using wine. It seems wine isn't able to receive it and pass it to the windows program.
I think it's an important feature to have a complete integration of a windows program into Linux.
James McKenzie
-
- Level 2
- Posts: 22
- Joined: Sat Apr 25, 2009 8:49 am
I have read with more attention all the comments of the bug related by demesio, and all the comments are about file association, which isn't my problem.
My problem is about how wine can receive a parameter from a linux program.
I'm using Ubuntu, and in my case it's how to send a parameter from Linux Thunderbird to windows K-Meleon program.
The way Ubuntu knows the program to use (mail client and browser) to open an URL is set by the tool 'Prefered programs'. This is the same parameter that when opening a local html file.
For an HTML file, the command : program %U works correctly. If I delete %U, the program is launched without opening the file. So I think it's obviously necessary to add %U
For an URL passed from Thunderbird to K-Meleon (with the use of wine, obviously), same result, except the parameter isn't passed by Thunderbird, or not received by wine.
I think the way used is different for Nautilus and Thunderbird.
If I replace a personnalized program with a program set in the list, it works.
Maybe when in the list, the parameters aren't read the same way, and wine is also able to read it and then send it to K-Meleon.
I'm really lost in these problems, because I'm a newbee in Linux.
Thank for your advice about the fact to fill a bug for this problem, and how to write it, because I think I don't explain clearly my problem.
A+
My problem is about how wine can receive a parameter from a linux program.
I'm using Ubuntu, and in my case it's how to send a parameter from Linux Thunderbird to windows K-Meleon program.
The way Ubuntu knows the program to use (mail client and browser) to open an URL is set by the tool 'Prefered programs'. This is the same parameter that when opening a local html file.
For an HTML file, the command : program %U works correctly. If I delete %U, the program is launched without opening the file. So I think it's obviously necessary to add %U
For an URL passed from Thunderbird to K-Meleon (with the use of wine, obviously), same result, except the parameter isn't passed by Thunderbird, or not received by wine.
I think the way used is different for Nautilus and Thunderbird.
If I replace a personnalized program with a program set in the list, it works.
Maybe when in the list, the parameters aren't read the same way, and wine is also able to read it and then send it to K-Meleon.
I'm really lost in these problems, because I'm a newbee in Linux.
Thank for your advice about the fact to fill a bug for this problem, and how to write it, because I think I don't explain clearly my problem.
A+
Problem with parameter from Tux to win
JujuLand46 wrote:
Mozilla Thunderbird list and ask how to pass parameters from the program
to another Linux program (that is basically what you are doing when you
call wine. It maybe the use of open -a or something like that.
James McKenzie
Ok. We are more knowledgeable about your situation. Please go to theI have read with more attention all the comments of the bug related by demesio, and all the comments are about file association, which isn't my problem.
My problem is about how wine can receive a parameter from a linux program.
I'm using Ubuntu, and in my case it's how to send a parameter from Linux Thunderbird to windows K-Meleon program.
Mozilla Thunderbird list and ask how to pass parameters from the program
to another Linux program (that is basically what you are doing when you
call wine. It maybe the use of open -a or something like that.
James McKenzie
-
- Level 2
- Posts: 22
- Joined: Sat Apr 25, 2009 8:49 am
Hum ... it's not me who wants to pass a parameter to another program, it's the program which must do it. It's not a macro or an extension, it's the normal use of a program, and I beg Thunderbird uses the way commonly used by other programs to pass parameters.
When I use a native Linux browser instead of K-Meleon and wine, it works, so I presume the problem is in wine which isn't able to receive the parameter. In fact I just have made a tool to look for the parameter, and I found no parameter passed by wine.
I will try to post on Thunderbird forums, but I don't think to have an answer.
A+
When I use a native Linux browser instead of K-Meleon and wine, it works, so I presume the problem is in wine which isn't able to receive the parameter. In fact I just have made a tool to look for the parameter, and I found no parameter passed by wine.
I will try to post on Thunderbird forums, but I don't think to have an answer.
A+
-
- Level 2
- Posts: 22
- Joined: Sat Apr 25, 2009 8:49 am
Hi,
I have post a message on Mozillazine forum and the answer was to replace %U by %s.
And it works
Here is a link for more explanations.
Mozillazine thread
Default Browser
Thanks
A+
I have post a message on Mozillazine forum and the answer was to replace %U by %s.
And it works

Here is a link for more explanations.
Mozillazine thread
Default Browser
Thanks
A+