-
-
Notifications
You must be signed in to change notification settings - Fork 405
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
New Linux AppImage Launcher for gnomel #356
base: main
Are you sure you want to change the base?
Conversation
updated Linux_Install_ReadME.txt with Lubuntu details
Ideally it would be nice to have an appdata xml file provided with the ide too. |
There was a problem hiding this 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 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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:
arduino-ide/electron/packager/config.js
Line 137 in 0a87fd0
appId: 'cc.arduino.IDE2', |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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.
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. |
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! |
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...