cwd is not correctly set, that creates issue when using java applications
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Nautilus |
New
|
Medium
|
|||
nautilus (Ubuntu) |
Invalid
|
Low
|
Ubuntu Desktop Bugs |
Bug Description
Binary package hint: nautilus
I open a path through the terminal.
I launch a jar file using "java -jar".
Everything works.
I open a path through nautilus.
I launch a jar file with double-click.
The file's supposed to open with some
"Sun Java 6 Runtime" (I suppose it's /usr/bin/java...?)
The program is launched, but the current path is
my home folder ("/home/
I mean, this code:
will show the current directory when my program
is launched with "java -jar". But when launched by nautilus
it will always print my home folder (whatever the current folder is)!
Right-click -> Open with -> Open with another application... ->
-> Use a custom command -> (typing) "java -jar"
won't help. It's as if nautilus switched the current
directory specially for launching the JVM,
though I'm not sure it will only do that for
"/usr/bin/java" (but since that's the only
language I know that is launched through a VM...)
And, yes, I know, I'll take a good look at Python
as soon as I get some free time ;)
-------
Ubuntu version: Hardy
Nautilus package policy: 1:2.22.2-0ubuntu6
description: | updated |
description: | updated |
Changed in nautilus: | |
status: | Unknown → New |
Changed in nautilus: | |
status: | Unknown → New |
Changed in nautilus: | |
importance: | Unknown → Medium |
thank you for your bug report, the description is not clear though, why do you think the directory should be changed, nautilus call the command using the selected file filename or uri, the application should handle that correctly