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

Can't start from File Explorer on Linux #690

Open
Assignees
Labels
criticality: mediumOf moderate impact os: linuxSpecific to Linux operating system priority: highResolution is a high priority type: imperfectionPerceived defect in any part of project
@NormanDunbar

Description

Describe the bug
The arduino-ide application has a file type of 'shared object' and as such, cannot be executed from within a file manager, only from the command line in a terminal session.

To Reproduce
Steps to reproduce the behavior:

  1. Download IDE 2.0 rc2 (or whatever version) for linux 64 bit.
  2. Extract the file.
  3. Open the extracted folder in a file manager.
  4. Double-click on arduino-ide
  5. "Unknown file type" apears.
  6. View the file's details in the file manager, and it is listed as a shared object, not an application or program.

Expected behavior
Double click arduino-ide in my file explorer to open the IDE.

Screenshots
Not applicable.

Desktop (please complete the following information):

  • OS:Linux Mint 64-bit
  • Version: 20.2 "Uma"
  • Arduino IDE 2.0.0-rc2

Additional context
According to https://docs.arduino.cc/software/ide-v2/tutorials/getting-started/ide-v2-downloading-and-installing#linux, the new 2.0 IDE can only be executed from a terminal session. This is a bug, however, I have a possible fix.

If I view the extracted files in the file explorer, I see that the arduino-ide file shows up as a shared object. The same is true in a terminal session with the file command:

$ file arduino-ide
arduino-ide: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, BuildID[sha1]=7836c459ba61a264a29878f37b81cd4047746e3a, stripped

I've had this problem since updatinggcc some time back, and discovered that there is an option when linking to make the output an executable file, not a shared object. The option is -no-pie.

If you compile with that option, then the new IDE will be able to be executed from the file manager.

Kind regards,
Norm.

Metadata

Metadata

Assignees

Labels

criticality: mediumOf moderate impact os: linuxSpecific to Linux operating system priority: highResolution is a high priority type: imperfectionPerceived defect in any part of project

Type

No type

Projects

No projects

Milestone

No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

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