34 Commits
Author SHA1 Message Date
Robo 4ae4d96052 chore: update to Electron 43 (#332935)
* chore: bump electron@43.4.1

* linux: align desktop name and StartupWMClass

Give DEB and RPM installs a package owned reverse DNS desktop name
so runtime wayland portal identity resolves to an installed desktop file.
Keep snap and archive runtime identities aligned with their distribution
specific desktop file behavior.

Set StartupWMClass to the same identity used by the runtime.

* linux: respect native window controls layout

Reserve both left and right WCO safe areas so custom title bar content
does not overlap controls when the desktop environment places them on
either side.

* dialogs: preserve native locations

Electron 43 defaults native dialogs without a defaultPath to the
Downloads directory instead of allowing the platform to retain its
last location. Resolve existing file or folder history before
invoking native open and save dialogs, while preserving an explicit
caller-provided URI.

* protocol: migrate from deprecated handlers

Replace deprecated registerFileProtocol, registerBufferProtocol,
registerHttpProtocol, and interceptFileProtocol APIs with protocol.handle().

* test: migrate unit test protocol handler

* chore: remove obsolete WebSQL preferences

Electron 43 removes WebSQL and its enableWebSQL web preference.

* fix: wco position for windows

* protocol: avoid exposing managed resource errors

* test: preserve file URLs in protocol handler

* test: adopt worker parent identifiers in CDP golden

Electron 43 target lifecycle payloads include parentId and
parentFrameId for worker targets.

* build: support V8 headers with GCC 12

* test: use platform native dialog paths

* build: install custom electron headers

* build: bootstrap electron headers in compile job

* build: bootstrap Electron headers for Alpine and web

* chore: bump electron@43.5.1

* chore: revert system fontconfig init workaround

* temp: bump distro

* chore: bump electron@43.6.0

* test: skip Dev Container agent host smoke test for exploration

The exploration update channel serves an outdated agent host server that
does not include the bundled Copilot CLI, causing the smoke test to time out.

* chore: bump distro
2026-09-16 08:59:16 +02:00
Pavel Prchal eecb98b9a2 Added localization to right-click on icon (#243679) 2025-03-17 18:11:00 +00:00
Tony Ivanov f1c007109d Fixed #114425 prevent mime pollution on install (#209510)
This software is not a plain text editor, and it's definitely not a file manager.
Advertising compatibility with such overrides default OS handlers on many distributions, unnecessarily.
2024-04-17 20:42:51 +00:00
Raymond Zhao 0da22a2260 fix: deprecate unity-launch flag (#209471) 2024-04-04 15:18:19 -07:00
Raymond Zhao 00a6c60eeb feat: add translations for renamed desktop action (#199241) 2023-11-28 00:34:36 +01:00
Jack Nolddor 3e7b108f16 fix: missing translation for new-empty-windows desktop action (#199129) 2023-11-27 22:08:13 +00:00
Daniel Imms 27e5924ff8 Remove from Utility catagory
This was from advice from the Raspberry Pi team as it causes the application to show
up in multiple menus on some desktop managers.
2022-01-13 06:44:24 -08:00
Benjamin Pasero e2954beb4b Remove --no-sandbox (#122909)
* linux - remove `--no-sandbox` flag

We should not disable sandbox on Linux.
We only added this to support running on Kernel <= 3.8 where setuid sandbox is used.

* fix ci

* add some docs
2021-05-04 11:18:19 +02:00
Daniel Imms 65b4134965 Merge pull request #95637 from luqmana/workspace-mimetype
Register mimetype for *.code-workspace
2020-09-09 05:55:27 -07:00
Daniel Imms 10c24b0773 Add executable bit to code.desktop
Part of #95459
2020-04-25 05:38:58 -07:00
Luqman Aden 828389d890 Register mimetype for *.code-workspace 2020-04-19 04:57:06 -07:00
Benjamin Pasero 23956cc5e2 update to electron 6.0.x (#81644)
* update to electron 6.0.x

* chore: bump electron@6.0.12
2019-10-10 12:26:28 -07:00
Benjamin Pasero da76f05e7a electron - revert to Electron 4 2019-09-30 14:55:17 +02:00
Benjamin Pasero afde7913eb build - set no-sandbox everywhere (#81096) 2019-09-18 13:55:03 +02:00
Sergio Schvezov 19526f4123 snap: add assets verbatim (#80585)
* snap: add assets verbatim

Providing the desktop files in snap/gui will have snapcraft copy over
those assets into the snaps meta/gui verbatim.

Addtionally, add a leading ${SNAP} to the Icon entry which was also
moved to snap/gui for the "package" to have an icon by default
(which is important when sideloading).

Signed-off-by: Sergio Schvezov <sergio.schvezov@canonical.com>

* escape

* fix snapcraft.yml

* use @@EXEC@@ in desktop files

* fix bad path

* fix snap desktop file
2019-09-10 17:12:45 +02:00
Daniel Imms 363e829071 Fix clicking on dock in Ubuntu opening additional windows
Fixes #65460
2019-01-28 06:59:31 -08:00
钊哥 c8e3e33045 Wrong placeholder in the .desktop file 2018-02-28 23:54:41 +08:00
Daniel Imms 633901769a Rename New Window action to New Empty Window
New versions of Gnome name the default action as New Window, this breaks
workspace restoring under Ubuntu 17.10 and presumably other distros on the
same verison of Gnome as well.

Fixes #36695
2017-10-25 10:23:59 -07:00
Daniel Imms d2b2b4d7ea Add support for building x64 snap package 2017-09-26 14:18:00 -04:00
Benjamin Pasero d77532402a linux: remove background color from icon for now 2017-08-31 09:26:29 +02:00
Benjamin Pasero e243bad3f2 set background color for code icon on linux 2017-08-23 07:37:19 +02:00
Daniel Imms 189a17e23c Use %F for new windows too
Part of ##25987
2017-07-31 13:17:38 -07:00
Daniel Imms 2c745007c3 Use %F in code.desktop instead of %U
%U may pass in file:// format which isn't supported.

Fixes #25987
2017-07-31 11:57:37 -07:00
Daniel Imms 69e4e5bc46 Don't use the CLI for the desktop entry
Fixes #24961
2017-04-27 10:24:04 -07:00
Rômulo Guimarães b31dde368f Update Exec param at code.desktop
The `/usr/share/code/code/` path opens a new window with errors.
Adding bin to the path fixes it.
2017-04-11 12:23:42 -03:00
Christof Marti fc92ea41fd Do not force new window when opening file or folder with launch on Unity (fixes #21133) 2017-02-23 11:07:51 -08:00
Daniel Imms 94f30c3e8b Add --new-window-if-not-first CLI arg
This allows shift+click/middle+click/num+super Windows and Unity shortcuts to
work as expected while not changing regular launch behavior.

Part of #48
2017-01-05 10:10:38 -08:00
Daniel Imms 23217e2f4b Indicate that code opens directories in code.desktop
Fixes #15741
2016-11-18 17:09:42 -08:00
Urban Dove e7f6f45f14 Add 'vscode' as a keyword in the .desktop file so you can search for vscode not only for code 2016-06-19 01:19:40 -04:00
Daniel Imms 069e325d0b Use electron binary over CLI in desktop entry
Fixes #6110
2016-05-27 16:12:56 -07:00
Daniel Imms 4c71c3ed16 Use correct StartupWMClass in desktop entry
This prevents two entries appearing in the launcher.

Fixes #6593
2016-05-27 16:11:01 -07:00
Daniel Imms 9b8383faac Localize "New Window" in desktop entry
Fixes #5234
2016-04-13 13:36:56 -07:00
Xaver Hellauer 5852199686 Add "new window" action to code.desktop
In Gnome and Unity desktop (and maybe some others) this can be used to open a new Code window through right click on the launcher icon and then on "New Window".
2016-04-04 17:59:09 +02:00
Daniel Imms 3ddbbe9a95 Implement .rpm package gulp task
.rpm packages can now be build with:

    gulp vscode-linux-<arch>-build-rpm

The resulting package will be output to ~/rpmbuild/RPMS/<arch>/ and can be
installed on a Red Hat-based distro with:

    yum localinstall <path>

Note that Debian systems can build the package after installing the 'rpm'
package:

    apt-get install rpm

This was tested building 64-bit on Ubuntu 15.10 and installing on CentOS 7.

Fixes #3595
2016-03-07 12:36:26 -08:00