Desktop path string get cut when it is too long
In short, when the entry's image path or the .desktop path are too long, the path as string will be cut silently and make the launching action fails. My setup is basically identical with the https://complexlogic.github.io/flex-launcher/setup_linux#kiosk-mode-setup. My path is so long because I want to use Jellyfin media player and their recommended installation is thru flatpak.
# Menu configurations
[Main]
Entry1=JF;/home/USERNAME/.config/flex-launcher/assets/icons/kodi.png;~/.local/share/jellyfin-media-player.desktop;TVF
Entry2=term;/home/USERNAME/.config/flex-launcher/assets/icons/kodi.png;/usr/share/applications/Alacritty.desktop
Entry3=Steam;/home/USERNAME/.config/flex-launcher/assets/icons/steam.png;/usr/share/applications/steam.desktop;BigPicture
Entry4=System;/home/USERNAME/.config/flex-launcher/assets/icons/system.png;:submenu System
The work around is create a sym link which makes the path shorter. I spent quite a while on this bug until I use the debug mode and examine the log. Anyone should be able to reproduce pretty quick by using a very long path.
Thanks for the report. This is actually a compile time configuration variable in the inih library, which Flex Launcher uses to read the ini file. Since I don't control the library or the packaging of it, changing it will not be easy. However, I will consider adding a note to the documentation to inform users of the limitation.
In that way, I am cool to close this issue. Thanks for the response. I will leave it open in case you want to use this ticket to track the doc update.
I had this mainly when starting Chrome with user agents (as for YouTube for example). My current workaround is a script that starts chrome with user agents and takes in the URL as an argument.