vscodium icon indicating copy to clipboard operation
vscodium copied to clipboard

"--unity-launch" flag in Linux desktop file breaks file opening from the outside

Open xalt7x opened this issue 3 months ago • 1 comments

Describe the bug Since v1.89.0.24126, when Linux user tries to open a file from external program (e.g., file manager), VSCodium doesn't open a file but instead it simply launches a new VSCodium window.
VSCodium's Linux desktop file still has a recently removed "--unity-launch" flag.
When I launch VSCodium with that flag, I receive such message in a terminal:

Warning: 'unity-launch' is not in the list of known options, but still passed to Electron/Chromium.

And like any other non-existing flag, it breaks opening files from the outside (e.g., codium --unity-launch launch ~/.bash_history).

Please confirm that this problem is VSCodium-specific

  • [*] This bug doesn't happen if I use Microsoft's Visual Studio Code. It only happens in VSCodium.

Please confirm that the issue/resolution isn't already documented

To Reproduce Steps to reproduce the behavior:

  1. On Linux desktop open any file manager (e.g., KDE Dolphin)
  2. Right click on any text file
  3. Choose "Open With VSCodium"
  4. New VSCodium window without requested file is launched

Expected behavior Requested file is opened in VSCodium

Desktop (please complete the following information):

  • OS: Fedora 40
  • Architecture: x64
  • Version: v1.89.0.24126
  • App Manager: RPM
  • Sandboxed: no

Additional context The problem is reproducible with different desktops (GNOME 46, KDE Plasma 6.0) so I presume it affects all Linux users. If possible, please make a new release with the fix to avoid duplicated reports for downstream packagers (Flathub, AUR etc.)

xalt7x avatar May 06 '24 13:05 xalt7x

Not yet complete. It has to be released.

daiyam avatar May 06 '24 14:05 daiyam

It works for me again with https://github.com/VSCodium/vscodium/releases/tag/1.89.0.24127 so I'm pretty sure this can be closed now.

ipkpjersi avatar May 09 '24 00:05 ipkpjersi

It works for me again with https://github.com/VSCodium/vscodium/releases/tag/1.89.0.24127 so I'm pretty sure this can be closed now.

No , don't close please ! It doesn't work with that version neither on my machine nor other (see here : https://bbs.archlinux.org/viewtopic.php?id=295570). Had to downgrade for version 1.88.1.24104-1

resu-xuniL avatar May 09 '24 09:05 resu-xuniL

I forgot about Arch!

daiyam avatar May 09 '24 09:05 daiyam

How dare you ?! ;) ;) ;)

resu-xuniL avatar May 09 '24 10:05 resu-xuniL

Please fix

ChocoTaco1 avatar May 13 '24 23:05 ChocoTaco1

vscodium and vscodium-git have been fixed. Since I'm not co-maintainer for vscodium-bin, I'm not able to do it. I've asked the maintainer but no answer.

daiyam avatar May 14 '24 00:05 daiyam