NOTICE! This is a static HTML version of a legacy Fiji BugZilla bug.

The Fiji project now uses GitHub Issues for issue tracking.

Please file all new issues there.

Bug 589 - Fiji cannot be started via symlink
Fiji cannot be started via symlink
Status: RESOLVED WONTFIX
Product: Fiji
Classification: Unclassified
Component: Other
unspecified
PC Linux
: P5 minor
Assigned To: ImageJ Bugs Mailing List
Depends on:
Blocks:
 
Reported: 2013-04-18 11:24 CDT by Daniel Hornung
Modified: 2013-04-23 12:19 CDT
2 users (show)

See Also:

Description Daniel Hornung 2013-04-18 11:24:22 CDT
When starting Fiji via a symlink reachable from the PATH, it does not start but prints an error message:

$ cd ~/.local/bin
$ ln -s /path/to/Fiji.app/ImageJ-linux64
$ echo $PATH
/usr/local/bin:/usr/bin:/bin:<snip></snap>:~/.local/bin
$ cd
$ ImageJ-linux64
Could not find ImageJ-linux64 in PATH

This is no big problem but a bit annoying.
Comment 1 Curtis Rueden 2013-04-18 12:43:19 CDT
I tested on a Linux 64-bit VM using the latest Fiji snapshot available for download at http://fiji.sc/Downloads. It works for me:

> : curtis@rook-linux64 ~
> which fiji
> /home/curtis/bin/fiji
> : curtis@rook-linux64 ~
> ls -l $(which fiji)
> lrwxrwxrwx 1 curtis curtis 37 Apr 18 12:38 /home/curtis/bin/fiji -> > /home/curtis/apps/fiji/ImageJ-linux64*
> : curtis@rook-linux64 ~
> pwd
> /home/curtis
> : curtis@rook-linux64 ~
> fiji
> : curtis@rook-linux64 ~
Comment 2 Johannes Schindelin 2013-04-23 12:18:17 CDT
I *think* it is due to the non-standard '~' in the PATH. Please use the absolute path, like 'export PATH=$PATH:$HOME/.local/bin'. I do not want to teach the launcher to resolve ~ in all the ways bash would...
Comment 3 Johannes Schindelin 2013-04-23 12:19:00 CDT
Oops. I meant to say that I won't implement the ~ handling unless absolutely necessary.