2008-05-25 13:30:42 |
Silvio Ricardo Cordeiro |
bug |
|
|
added bug |
2008-05-25 13:32:14 |
Silvio Ricardo Cordeiro |
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/my-user/.")!
I mean, this code:
JOptionPane.showMessageDialog(null,
new File(".").getAbsolutePath());
will print the current directory when my program
is launched with "java -jar". But 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 |
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/my-user/.")!
I mean, this code:
JOptionPane.showMessageDialog(null,
new File(".").getAbsolutePath());
will print 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 |
|
2008-05-25 13:33:56 |
Silvio Ricardo Cordeiro |
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/my-user/.")!
I mean, this code:
JOptionPane.showMessageDialog(null,
new File(".").getAbsolutePath());
will print 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 |
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/my-user/.")!
I mean, this code:
JOptionPane.showMessageDialog(null,
new File(".").getAbsolutePath());
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 |
|
2008-05-25 14:28:53 |
Sebastien Bacher |
nautilus: status |
New |
Incomplete |
|
2008-05-25 14:28:53 |
Sebastien Bacher |
nautilus: assignee |
|
desktop-bugs |
|
2008-05-25 14:28:53 |
Sebastien Bacher |
nautilus: importance |
Undecided |
Low |
|
2008-06-25 13:59:08 |
Sebastien Bacher |
nautilus: status |
Incomplete |
Invalid |
|
2008-07-12 22:12:03 |
Kamil Páral |
nautilus: status |
Invalid |
New |
|
2008-08-01 09:25:40 |
Sebastien Bacher |
title |
jvm receives wrong path |
cwd is not correctly set, that creates issue when using java applications |
|
2008-08-01 09:30:04 |
Sebastien Bacher |
nautilus: status |
New |
Triaged |
|
2008-08-01 09:30:17 |
Sebastien Bacher |
bug |
|
|
assigned to nautilus |
2008-08-01 09:33:40 |
Bug Watch Updater |
nautilus: status |
Unknown |
New |
|
2008-08-01 14:03:40 |
Bug Watch Updater |
nautilus: status |
Unknown |
New |
|
2010-09-16 01:19:42 |
Bug Watch Updater |
nautilus: importance |
Unknown |
Medium |
|
2019-01-15 21:18:29 |
Sebastien Bacher |
nautilus (Ubuntu): status |
Triaged |
Invalid |
|