nmzi/bgmapeditor

Linux - Errors when executing the script from a .desktop shortcut

Closed this issue · 1 comments

Going deeper into the issue, it seems that this pattern is problematic when executing the script outside of the terminal:

`# Préparation des tabs

&command_new_tab unless @argv;
foreach (@argv) {
&command_open_map($_)
}`

However, temporarily removing this pattern uncovers more issues, as the MainWindow dimension is now minimal. After manually resizing, another problem occurs with the editor panel being unable to automatically resize itself from that point. Not sure at the moment if there is a clean fix that would not impact the Windows version or the terminal mode, or if the solution would require to detect the OS and which mode the script is executed in.

Update: it seems that something fixed it after a reboot and multiple xdg-desktop-menu install, cannot reproduce anymore.