Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#36 freemind.sh -- symbolic link resolution of $full

closed-fixed
nobody
None
5
2005-12-05
2005-01-09
Suraj Kurapati
No

This patch allows a symbolic link chain to freemind.sh
to execute properly.

For example, consider that I have installed freemind to
some long and obscure path: /foo/bar/baz/123/456/freemind/

Next I create some symbolic links for easy access:
ln -s /foo/bar/baz/123/456/freemind/freemind.sh
~/bin/freemind
ln -s ~/bin/freemind /tmp/freemind
ln -s /tmp/freemind /foo/my_link

With this patch, we can run freemind without problems,
even if we invoke "/foo/my_link".

Discussion

  • Suraj Kurapati
    Suraj Kurapati
    2005-01-09

    unified diff of changes

     
    Attachments
  • Eric L.
    Eric L.
    2005-01-16

    Logged In: YES
    user_id=318488

    Hi Suraj,

    I looked at your patch and even introduced it test-wise in
    the current freemind.sh, and I have 2 problems with this:
    1. I have the feeling that the ratio (<usefulness>x<persons
    interested>)/<added complexity> is pretty low, but I'm open
    to arguments.
    2. your patch does only work if all the links are absolute,
    which reduces again the ratio above.

    I can offer you two alternatives to discuss:
    1. use one of the Linux packages offered (RPM or Debian).
    2. I thought about adding the usage of an environment
    variable, something like FREEMIND_BASE_DIR, that you could
    use the following way:
    export FREEMIND_BASE_DIR=/foo/bar/baz/123/456/freemind/
    /foo/my_link would then work.

    Would one of this solve as well your problem?

    Eric

     
  • Suraj Kurapati
    Suraj Kurapati
    2005-01-16

    Logged In: YES
    user_id=315014

    Hello Eric,

    #1 isn't very portable, as not all distros (e.g.
    slackware) use RPM/DEB.

    Bravo! #2 is a very clever solution (using
    FREEMIND_BASE_DIR), and it definitely solves my original
    problem. I would like to see it implemented, if possible.

    Thanks.

     
  • Eric L.
    Eric L.
    2005-01-16

    Logged In: YES
    user_id=318488

    Hi,

    I will create a new patch with the freemind.sh patched from
    version 0.8.0, it should be easy to back-port it to 0.7.x
    for your needs (just modify the java call in the last line),
    or install 0.8.0.rc1 from
    http://freemind.sourceforge.net/testversions/ .

    Tell us if this works for you and Chris will be happy to
    introduce the change for RC2... ;-)

    Eric

    PS: and if you're willing to package FreeMind for Slackware,
    I'm happy to give a hand...

     
  • Eric L.
    Eric L.
    2005-12-05

    Logged In: YES
    user_id=318488

    Solved with FreeMind 0.8.0, as announced... :-)

     
  • Eric L.
    Eric L.
    2005-12-05

    • status: open --> closed-fixed