Closed N0rbert closed 2 years ago
Exec doesn't have the full path since the file is linked in a folder in PATH, therefore it is not necessary. This is set up in PATH=/home/d/.local/share/umake/bin:$PATH
There must be another error with the .desktop file. Could you check that the icon and executable paths are correct?
After adjusting PATH variable I can start Arduino from mate-terminal
by arduino
or gtk-launch arduino.desktop
.
If I understand things correctly, then there is something wrong in Debian with the way of reading PATH variable from ~/.profile
and/or ~/.bashrc
by desktop environment.
Currently I can't find relevant bug report about this, so I placed full path to Exec
field manually. So there is no bug in ubuntu-make.
Update. The reason for the above behavior is the following. LightDM on Debian does not source ~/.profile
file because of a bug or maybe feature (see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=636108 and https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1024073 ). The workaround here is to install SDDM and use it instead of LightDM - use sudo apt-get install sddm --no-install-recommends --no-install-suggests
and then reboot and login to MATE session.
Steps to reproduce:
task-mate-desktop
on itumake electronics arduino
$ cat ~/.local/share/applications/arduino.desktop
!/usr/bin/env xdg-open
[Desktop Entry] Version=1.0 Type=Application Name=Arduino Icon=/home/d/.local/share/umake/electronics/arduino/lib/arduino_icon.ico TryExec=/home/d/.local/share/umake/electronics/arduino/arduino Exec=arduino Comment=The Arduino Software IDE Categories=Development;IDE; Terminal=false
$ grep -ira ".local/share/umake" ~ /home/d/.local/share/applications/arduino.desktop:Icon=/home/d/.local/share/umake/electronics/arduino/lib/arduino_icon.ico /home/d/.local/share/applications/arduino.desktop:TryExec=/home/d/.local/share/umake/electronics/arduino/arduino /home/d/.profile:PATH=/home/d/.local/share/umake/bin:$PATH