On 05/11/2024 18:46, Ralph Corderoy wrote:
Hi Peter,

Alter the menu item to run a simple, non-AppImage, graphical
program, e.g. /usr/bin/xclock.  If that works, add the -digital
argument to learn if arguments can be given.
Ran Ralphs suggestion for xclock fine,
Good.  Including the -digital argument as a second test?
Interesting. With the -digital added it failed as unable to find program.
the path in the menu item is
"/usr/local/bin/arduino-ide_2.3.3.Appimage --no-sandbox" and
when i tried to start it I see an error message that it is not
found.
Browsed to usr/local/bin/ and ran the program from terminal and it
worked, albeit with some errors that i ignored.

peterm@peterm-kubuntu:/usr/local/bin$ arduino-ide_2.3.3.AppImage --no-sandbox
Arduino IDE 2.3.3
Don't change directory to /usr/local/bin as the menu item probably isn't
doing that.  At the shell prompt, do what you're asking the menu item to
do:

     cd
     /usr/local/bin/arduino-ide_2.3.3.Appimage
peterm@peterm-kubuntu:~$ cd
peterm@peterm-kubuntu:~$ /usr/local/bin/arduino-ide_2.3.3.Appimage
bash: /usr/local/bin/arduino-ide_2.3.3.Appimage: No such file or directory
peterm@peterm-kubuntu:~$



Is the whole string treated as the path.  Try using
"/usr/local/bin/arduino-ide_2.3.3.Appimage" instead just to see if
it starts, even if it later fails because of the sandbox's
constraints.

seen above, didn't work. Added it back to menu item:

"Launching Arduino-IDE failed

Could not find the program '/usr/local/bin/arduino-ide_2.3.3.Appimage' "


Is the /usr/local/bin/arduino-ide_2.3.3.Appimage file readable and
executable?  ‘chmod a+rx
/usr/local/bin/arduino-ide_2.3.3.Appimage’.
Yes. This gets done ever since I used my first Appimage!
These are unanswered.

That ‘arduino-ide_2.3.3.AppImage --no-sandbox’ worked when the current
directory was /usr/local/bin doesn't mean the arduino-ide_2.3.3.AppImage
which was run was the one in that directory.  Perhaps you've another
elsewhere.  What gets run depends on your PATH.  What's the output of:

     cd /usr/local/bin
     echo $PATH
     type arduino-ide_2.3.3.AppImage
     stat arduino-ide_2.3.3.AppImage

peterm@peterm-kubuntu:~$ cd /usr/local/bin 
peterm@peterm-kubuntu:/usr/local/bin$ echo $PATH 
/home/peterm/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/peterm/
 .local/bin peterm@peterm-kubuntu:/usr/local/bin$ type 
arduino-ide_2.3.3.AppImage arduino-ide_2.3.3.AppImage is 
/usr/local/bin/arduino-ide_2.3.3.AppImage peterm@peterm-kubuntu:/usr/local/bin$ 
  stat arduino-ide_2.3.3.AppImage  File: arduino-ide_2.3.3.AppImage  Size: 
190624130       Blocks: 372328     IO Block: 4096   regular file Device: 8,7    
 Inode: 1837989     Links: 1 Access: (0755/-rwxr-xr-x)  Uid: (    0/    root)   
Gid: (    0/    root) Access: 2024-11-05 15:55:20.771128388 +0000 Modify: 
2024-10-31 19:25:50.745678601 +0000 Change: 2024-10-31 19:25:50.745678601 +0000 
Birth: 2024-10-31 19:25:48.893679345 +0000 peterm@peterm-kubuntu:/usr/local/bin$

Have you a text file .xsession-errors in your home directory which grows
over time?  You could ‘tail -f .xsession-errors’ to watch it and run the
broken menu item to see if an error appears.
No Error appeared.

Really, we don't know what this menu editor is doing.  Presumably,
creating a FreeDesktop file under your home directory somewhere
containing the definition.  ~/.config/menus?  Recent configuration files
would probably be at the top of the list:

     cd
     find .??* -type f -printf '%T@ %Tc %p\n' | sort -nr | less

1730841651.6303174020 Tue 05 Nov 2024 21:20:51 GMT 
.config/plasma-org.kde.plasma.desktop-appletsrc 1730841637.3343401440 Tue 05 
Nov 2024 21:20:37 GMT .cache/plasma-svgelements 1730841602.9573947110 Tue 05 
Nov 2024 21:20:02 GMT .thunderbird/s15ank2c.Default User/AlternateServices.txt 
1730841581.4974286900 Tue 05 Nov 2024 21:19:41 GMT .config/plasmashellrc 
1730841580.8744296750 Tue 05 Nov 2024 21:19:40 GMT 
.cache/ksycoca5_en-GB_Ooo9q2_kJO821yytcatiX7iSXuA= 1730841579.7344314780 Tue 05 
Nov 2024 21:19:39 GMT .local/share/applications/Arduino-IDE.desktop Went to the 
last one and opened with kate:

[Desktop Entry] Comment[en_GB]=19/12/23 Comment=19/12/23 
Exec=/usr/local/bin/arduino-ide_2.3.3.Appimage GenericName[en_GB]=IDE 2.3.3 
Appimage GenericName=IDE 2.3.3 Appimage MimeType= Name[en_GB]=Arduino-IDE 
Name=Arduino-IDE NoDisplay=false Path= StartupNotify=true Terminal=false 
TerminalOptions= Type=Application X-KDE-SubstituteUID=false X-KDE-Username=

Added the path to the PATH= line and removed it from the Exec= line, also added 
the --no-sandbox to the 'parameters' field, but it still failed to start 
because it couldn't find the path.

Will try again tomorrow. head booming and I have missed the LUG on-line mtg. 
--- Peter
--
 Next meeting: Online, Jitsi, Tuesday, 2024-11-12 20:00
 Check to whom you are replying
 Meetings, mailing list, IRC, ...  https://dorset.lug.org.uk
 New thread, don't hijack:  mailto:dorset@mailman.lug.org.uk

Reply via email to