#73 starting freemind with soft link to freemind.sh does not wor

closed-accepted
None
5
2006-10-29
2006-10-20
No

The file freemind.sh contains the code

freepath=$(dirname "$0")
freepath="${freepath%/bin}" # nothing happens if
freemind is not installed
# under something/bin

This breaks when freemind.sh is called via a soft link
from some ..../bin directory.

There is code out there that follows soft links in a
bash shell script to derive the proper installation
path. Another solution could be to write a minimal
install script that only once has to be called in the
freemind directory to edit the $PWD into freemind.sh.

Discussion

  • Eric L.

    Eric L. - 2006-10-29

    Logged In: YES
    user_id=318488

    Just for me to remember when I find time to solve this bug:
    'readlink' is the function to use to resolve the symlink!

     
  • Eric L.

    Eric L. - 2006-10-29
    • milestone: 542159 --> 648240
     
  • Eric L.

    Eric L. - 2006-10-29

    Logged In: YES
    user_id=318488

    Hehe, I couldn't wait longer and fixed the issue in the
    script from FreeMind 0.9.0.beta8. The script now spits more
    information in DEBUG mode, and also checks for non
    Sun/Blackdown Java VMs (only a warning, the script still runs).

    Chris, I attach complete script and diff file. Could you
    please test it a bit, and check it in CVS for the next version?

    Thanks, Eric

     
  • Eric L.

    Eric L. - 2006-10-29

    Patched freemind.sh

     
  • Eric L.

    Eric L. - 2006-10-29
    • assigned_to: ewl --> nobody
    • labels: 789259 -->
    • milestone: 648240 -->
     
  • Eric L.

    Eric L. - 2006-10-29

    Diff file for freemind.sh

     
  • Eric L.

    Eric L. - 2006-10-29
    • assigned_to: nobody --> christianfoltin
     
  • Christian Foltin

    • status: open --> closed-accepted
     
  • Christian Foltin

    Logged In: YES
    user_id=885594

    hi,

    integrated without longer hazzle... Chris.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks