Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Linux startup script fails if "arduino" is a link. [imported] #353

Closed
Labels
OS: LinuxSpecific to the Linux version of the Arduino IDE
@cmaglie

Description

This is Issue 353 moved from a Google Code project.
Added by 2010年09月20日T10:03:17.000Z by gooc...@top.geek.nz.
Please review that bug for more context and additional comments, but update this bug.
Closed (Fixed).

Original labels: Type-Defect, Priority-Medium, Component-Build, OpSys-Linux, Milestone-0022

Original description

Please apply the following patch:

--- arduino-0019/arduino.orig 2010年09月04日 11:43:29.000000000 +1200
+++ arduino-0019/arduino 2010年09月20日 21:30:10.000000000 +1200
@@ -1,6 +1,7 @@
#!/bin/sh

-APPDIR="$(dirname -- "${0}")"
+#APPDIR="$(dirname -- "${0}")"
+APPDIR="$(dirname -- $(readlink -f -- "${0}") )"

cd $APPDIR

Benefit: The IDE starts up, instead of crashing, when started via a symlink pointing to arduino-0019/arduino
This is needed to be able to install the IDE cleanly by unpacking the distributed tar file into some directory, and placing a symlink in /usr/local/bin pointing to the arduino-00xx/arduino script, like so:

/usr/local/bin/arduino -> ../pckg/arduino/arduino
/usr/local/pckg/arduino/arduino-0019/arduino

This then also solves the $PATH problem.
OS: Linux.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    OS: LinuxSpecific to the Linux version of the Arduino IDE

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /