VS code dialogs do not appear in foreground (cinnamon)

That is a common bug in electron applications when they are using GTK (see here and here).

Add to your .bashrc the line:

export GTK_USE_PORTAL=1  

Then edit the menu of the operating system as follows:

  • Right click on the menu
  • Select configure
  • Open the menu editor
  • Select the application
  • Click properties
  • Add the following:
env GTK_USE_PORTAL=1 /usr/share/code/code --unity-launch %F

Screenshots:

Leave a comment