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

New Linux AppImage Launcher for gnomel #356

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ArduinoShop wants to merge 12 commits into arduino:main
base: main
Choose a base branch
Loading
from ArduinoShop:Linux_Install

Conversation

Copy link

@ArduinoShop ArduinoShop commented May 6, 2021

The following files would need to be added to the Linux package:

1). Linux_Install.sh
2). desktop.template
3). Linux_Install_ReadME.txt
4). arduino2.png -- this is my icon that I used for testing - you may have much better ideas...

If you need these don in Spanish or French let me know...

matan-h reacted with thumbs up emoji LumitoLuma reacted with heart emoji
Copy link

CLAassistant commented May 6, 2021
edited
Loading

CLA assistant check
All committers have signed the CLA.

@per1234 per1234 added os: linux Specific to Linux operating system topic: infrastructure Related to project infrastructure type: enhancement Proposed improvement labels Oct 25, 2021
@per1234 per1234 linked an issue Nov 30, 2021 that may be closed by this pull request
3 tasks
@ubidefeo ubidefeo requested review from fstasi and removed request for fstasi November 30, 2021 22:37
@rsora rsora added the criticality: medium Of moderate impact label Dec 21, 2021
Copy link

SuperNinja-4965 commented May 21, 2022
edited
Loading

Ideally it would be nice to have an appdata xml file provided with the ide too.
like the one i have used here: https://github.com/joshuag1000/flathub/blob/cc.arduino.arduinoide2/cc.arduino.arduinoide2.appdata.xml

Copy link

@hfiguiere hfiguiere left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I come for the XDG and flatpak perspective, since this is to some extent closely related, getting it right from start is probably the best.

# Create a temp dir accessible by all users
TMP_DIR=`mktemp --directory`

# Create *.desktop file using the existing template file
Copy link

@hfiguiere hfiguiere May 21, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the icon and desktop file should follow the proper app-id convention, like the one used for flathub.

See https://specifications.freedesktop.org/desktop-entry-spec/latest/ar01s02.html#desktop-file-id

The id should be cc.arduino.arduinoide2 as suggested for the flathub submission.
Note that if you app register an app-id for DBus use (like Qt or Gtk do) then that's the one that should be used and coordinate with the flathub submission (flathub/flathub#3176 ) to changed it there too.

With that the .desktop should be cc.arduino.arduinoide2.desktop and the icon should be cc.arduino.arduinoide2.png. Note: if you have a SVG icon it would be so much better.

A 48x48 icon is way too small. 128x128 is the current standard.

Copy link

@SuperNinja-4965 SuperNinja-4965 May 21, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a note the flatpak pr request was updated to change the id to cc.arduino.IDE2 to match what is used here:

appId: 'cc.arduino.IDE2',

Copy link

@hfiguiere hfiguiere May 21, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

then that's what shall be used here too.

# Create *.desktop file using the existing template file
sed -e "s,<BINARY_LOCATION>,${EXE_PATH}/${RESOURCE_NAME},g" \
-e "s,<id>,local,g" \
-e "s,<ICON_NAME>,${LIB_PATH}/arduino2.png,g" "${SCRIPT_PATH}/desktop.template" > "${TMP_DIR}/${RESOURCE_NAME}l.desktop"
Copy link

@hfiguiere hfiguiere May 21, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

instead of using sed you should use destkop-file-edit. It's way easier to understand and exactly designed for that. There is also desktop-file-install to install it.

@ArduinoShop ArduinoShop changed the title (削除) Linux install (削除ここまで) (追記) New Linux AppImage Launcher for gnomel (追記ここまで) May 23, 2022
Copy link
Author

Hi - I have been working with the Arduino team to write "Linux Launcher" scripts. The idea is to be able to Launch IDE 2.0 from icons in a Gnome dock..

I have the scripts posted on my github...

https://github.com/ArduinoShop/arduino-ide/tree/main/AppImage%20Launcher

I am not an adept at using git so I am not sure how to "merge" them with Arduino's efforts.

@per1234 per1234 mentioned this pull request Aug 1, 2022
3 tasks
@fstasi fstasi removed their assignment Sep 14, 2022
Copy link

Hey everyone,

Is this PR still active? If not, I’d be happy to pick it up and continue the work or start fresh if needed. 😄

I think it’s a fantastic idea to include desktop files and installation scripts for the Arduino IDE in future distributions. I've actually developed a similar solution for my workspace and wanted to share it with the community. That’s when I stumbled upon this PR by accident.

Here are the scripts I’ve created: https://github.com/ben-sembira-1/workspace/tree/master/scripts/arduino.

I’m not sure if this should be part of the same PR, but I believe aiming for a stable APT release could significantly enhance installation stability and accessibility on Linux systems. These two efforts seem closely related as they both target easier and more stable installations on Linux.

I also found issue #2138 about creating an APT package for the Arduino IDE, but it seems to lack recent activity. While there is an APT package for Arduino, it appears to only support IDE 1.x versions. I couldn’t find an equivalent for IDE 2.x.

Looking forward to your thoughts!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers
2 more reviewers

@hfiguiere hfiguiere hfiguiere left review comments

@SuperNinja-4965 SuperNinja-4965 SuperNinja-4965 left review comments

Reviewers whose approvals may not affect merge requirements

At least 1 approving review is required to merge this pull request.

Assignees
No one assigned
Labels
criticality: medium Of moderate impact os: linux Specific to Linux operating system topic: infrastructure Related to project infrastructure type: enhancement Proposed improvement
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Provide an installer for Linux

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