Netbeans error "Cannot run /usr/bin/firefox" when try running html

I have checked

  1. The file /usr/bin/firefox exists
  2. Firefox running normal
    how to fix this?

How is netbeans installed ?

Im using netbeans from third party snap.
i was using manjaro KDE before, and netbeans running normal.
but when try using gnome manjaro, this problem appear

I deleted a lot of other words.
To put it simply - SNAP should be containerized by default … and thus you should not expect it to automatically function the same way as other ‘regular’ packages.