[Bug 234777] Re: jvm receives wrong path
I reopen this bug since I have provided additional information in bug #73401, which is a duplicate of this bug. Please read it. Easily said, when I have ~/app/app.jar and launch it, currently the nautilus do: $ java -jar ~/app/app.jar (cwd is undefined, mostly ~) and should do: $ cd ~/app $ java -jar app.jar# or 'java -jar ~/app/app.jar', this doesn't matter (cwd set to ~/app) This is because java applications have NO WAY of determining their run location. It's the limitation of the platform. Therefore if they want to use additional files addressed by relative paths, they must be run with cwd set correctly to program directory. On Windows this issue doesn't exist, clearly their launcher implementation always change cwd appropriately. Ubuntu should do this too. I'm Java developer, this issue makes me a lot of troubles for linux users. ** Changed in: nautilus (Ubuntu) Status: Invalid = New -- jvm receives wrong path https://bugs.launchpad.net/bugs/234777 You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is a bug assignee. -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 234777] Re: jvm receives wrong path
We are closing this bug report because it lacks the information we need to investigate the problem, as described in the previous comments. Please reopen it if you can give us the missing information, and don't hesitate to submit bug reports in the future. To reopen the bug report you can click on the current status, under the Status column, and change the Status back to 'New'. Thanks again! ** Changed in: nautilus (Ubuntu) Status: Incomplete = Invalid -- jvm receives wrong path https://bugs.launchpad.net/bugs/234777 You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is a bug assignee. -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 234777] Re: jvm receives wrong path
could you open the bug on bugzilla.gnome.org since you get the issue and can easily reply to their comments there? -- jvm receives wrong path https://bugs.launchpad.net/bugs/234777 You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is a bug assignee. -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 234777] Re: jvm receives wrong path
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 ** Changed in: nautilus (Ubuntu) Importance: Undecided = Low Assignee: (unassigned) = Ubuntu Desktop Bugs (desktop-bugs) Status: New = Incomplete -- jvm receives wrong path https://bugs.launchpad.net/bugs/234777 You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is a bug assignee. -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 234777] Re: jvm receives wrong path
I don't think the directory should be changed. I think nautilus should call the JVM using the current directory, but it seems to be calling it using my home (/home/my-user). When I launch java in the terminal, the JVM thinks the current directory is the current directory. When I launch java through nautilus, the JVM thinks the current directory is /home/my-user, regardless of the current directory. In this case, launching through nautilus, printing the current directory will always print /home/my-user, no matter which directory my .jar file actually is in. -- jvm receives wrong path https://bugs.launchpad.net/bugs/234777 You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is a bug assignee. -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs