Commit Graph

57 Commits (a6de21e1a45e970ee1f1ca9410a36b7d2af66580)

Author SHA1 Message Date
Robo 4b19907cc8
fix[x11]: crash in gpu process with software compositor (#216661)
* fix[x11]: crash in gpu process with software compositor

* chore: bump distro
2024-06-20 07:02:04 +02:00
Robo 3b80131054
chore: add missing gl libraries for snap (#215493)
* chore: add missing gl libraries for angle

* chore: add wayland egl library
2024-06-14 01:36:01 +02:00
Robo 6facfe23b3
fix: snap packaging for argument parsing (#214560) 2024-06-07 09:45:12 +02:00
Robo 6e6d38007e
fix: force software gl backend for snap (#214548)
Refs https://github.com/microsoft/vscode/issues/212494

When using the default ANGLE gl/gles backend, v1.90 attempts
to get display refresh rate for vsync from an internal implementation
instead of using the gl extension EGL_CHROMIUM_sync_control,
this eventually ends up loading display info from XRandr and chromium
attempts to set a label for the data from the shipped resource pak
file that is not accessible to the gpu process triggering a SIGTRAP
in ui::ResourceBundle::GetSharedInstance.
2024-06-07 06:16:32 +02:00
João Moreno a19614e8e2
fix build (#186470) 2023-06-28 09:29:16 +02:00
Robo 42457bdb9f
fix: snap env variables leaking into terminal env (#185834)
* fix: snap env variables leaking into terminal env

* chore: add spec
2023-06-22 21:52:08 +09:00
Robo 9c8c21872a
chore: disable portals for snap (#180238) 2023-04-18 18:52:06 +02:00
Robo e7155a90da
fix: glib schema generation for snaps (#179089) 2023-04-04 18:27:03 +09:00
Robo b2a1932329
fix: gtk module search paths for snap (#177976) 2023-03-22 08:58:15 +01:00
Robo 502ac5b213
ci: switch to core20 for snap (#127320)
* ci: switch to core20 for snap

* chore: update rpath of crashpad handler

* chore: remove unused exports
2023-03-08 18:14:55 -08:00
Evpok dbae720630
Enable Wayland build for snaps (#156551)
Enable Wayland build
2022-07-30 03:59:55 +02:00
Issam Maghni 0f7982a344
Fix mkdir arguments order (#135182)
When lauching with `env POSIXLY_CORRECT=y code [...]`, VSCode creates two directories named `-m` and `700`. This is because the order of arguments, in a POSIX strict environment, matters.
2021-10-25 14:40:32 +02:00
deepak1556 7eae810d8a chore: disable sandbox on snap package
Fixes https://github.com/microsoft/vscode/issues/127081
Refs https://github.com/microsoft/vscode/issues/127140
2021-06-25 19:26:08 +09:00
Robo 92999c339e
fix: setuid helper permission (#126798)
* ci: fix setuid helper binary permission

* ci: allow privilege for CLONE_NEWPID | CLONE_NEWNET

* ci: fix chrome-sandbox permission with rpm

* ci: fix permissions on snap

* ci: download electron earlier for arm builds
2021-06-22 08:42:30 -07:00
Rachel Macfarlane 79e2119c5e Revert "snap: set compression to lzo, #117852 (#118116)"
This reverts commit e22c2be14d.
2021-03-09 10:55:22 -08:00
soredake e22c2be14d
snap: set compression to lzo, #117852 (#118116) 2021-03-08 16:23:35 +01:00
João Moreno edf43e529a
build snap packages for linux arm 2020-11-18 10:04:55 +01:00
Daniel Imms b0baa3a2d8
Update deps to include libgbm (#107611)
Fixes #106936
2020-10-19 11:47:07 -07:00
champignoom e125e0a4d5
stage ibus-gtk3 to try to make ibus work (#100480)
try to address #96041
2020-06-21 17:05:58 +02:00
Sergio Schvezov d4da28357f snap launcher: avoid exporting XDG_CACHE_HOME
Exporting XDG_CACHE_HOME affects applications launched from within
the context of code.

Rename it to GDK_CACHE_DIR and do not export it. Also test for
existence before creating to avoid shelling out to mkdir if not
needed.

Signed-off-by: Sergio Schvezov <sergio.schvezov@canonical.com>
2020-02-21 17:26:57 -03:00
Sergio Schvezov a100802412 snap launcher: fix quoting in script
Avoid any potential issue with globbing or word splitting.

Signed-off-by: Sergio Schvezov <sergio.schvezov@canonical.com>
2020-02-21 17:23:26 -03:00
João Moreno ab10e26096
Fixes #80702 (#80705) 2019-09-11 13:31:42 +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
Robert Ancell 05ceb5e8ac snapcaft.yaml: Set the AppStream ID in the Snap metadata
This allows software store to recognise this snap matches Visual Studio Code in
other formats (.deb, .rpm, Flatpak etc). It also means reviews on ODRS are
grouped together.
2019-07-02 10:19:28 +12:00
Martin Wimpress 24e592c52c snapcraft.yaml: Add the url-handler 2019-03-21 08:49:53 +00:00
Martin Wimpress 7f9406d777 snapcraft.yaml: Source Glib schemas from within the snap. 2019-03-21 08:49:05 +00:00
Martin Wimpress d5c14c6300 snapcraft.yaml: Fallback to XWayland if running in a Wayland session 2019-03-21 08:48:23 +00:00
Martin Wimpress e07c331459 snapcraft.yaml: Remove braces from ${SNAP} in command: 2019-03-21 08:47:13 +00:00
Martin Wimpress 73b7ed584f snapcraft.yaml: Remove unnecessary data from the snap 2019-03-21 08:45:32 +00:00
Martin Wimpress c134334c4c snapcraft.yaml: Update stage-packages
Clean up the stage-packages: to drop any unnecessary libraries and ensure all required libraries to maintain ABI compatibility are bundled in the snap.
2019-03-21 08:44:47 +00:00
Martin Wimpress e91b073155 snapcraft.yaml: Add the GNOME 3.26 PPA.
Adds the PPA for the GNOME 3.26 framework which is maintained by the Ubuntu Desktop team.

This PPA includes GTK3 and GNOME3 components used to create the GNOME 3.26 Framework snap for Ubuntu 16.04.

  * Fixes:  https://github.com/Microsoft/vscode/issues/63194
  * Fixes:  https://github.com/Microsoft/vscode/issues/57019
2019-03-21 08:42:01 +00:00
Martin Wimpress 04639e468c electron-launch: ABI compatible GDK PixBuf modules
Use ABI compatible GDK PixBuf modules from within the snap and build gdk-pixbuf-loaders.cache in the snaps common user data.
2019-03-21 08:34:21 +00:00
Martin Wimpress c8493b459f electron-launch: Create $XDG_CACHE_HOME
Relocate $XDG_CACHE_HOME within the snaps common user data.
2019-03-21 08:32:13 +00:00
Martin Wimpress 07f2bdc176 electron-launch: Add architecture detection 2019-03-21 08:29:33 +00:00
Martin Wimpress 22dc561765 electron-launch: Correctly map the /snap directory on Fedora 2019-03-21 08:28:45 +00:00
Martin Wimpress 16a06aceb3 electron-launch: Use bash 2019-03-21 08:26:07 +00:00
João Moreno eb69d48499
Merge pull request #65579 from Kedstar99/snapFix
Removed snapUpdate.sh and replaced with inline command
2019-01-28 15:30:29 +01:00
Daniel Imms ffe6f7950e Drop gconf dependency
Fixes #62580
2018-12-27 11:03:06 -08:00
Krish De Souza 4c02c554ce Removed snapUpdate.sh and replaced with inline command
+Simplifies the build process.
+Avoids creating a new shell that simply spawns another shell environment.
+Simplifies the update mechanism by removing the need to track the existence of snapUpdate.sh.
+Keeps the logic for snapUpdate.sh close to updateService.snap.ts
2018-12-22 11:53:22 +05:30
Krish De Souza d37f1c01ec Fixed snapUpdate.sh to use environment variable to spawn a new instance of vscode. 2018-12-06 11:36:36 +00:00
Joao Moreno 5c3e3ec85a snap updates 2018-11-08 14:44:32 +00:00
Joao Moreno df6ca821a6 remove args from electron launch 2018-11-07 12:41:17 +00:00
Joao Moreno 4ae69c8c4a cleanup snapcraft.yaml 2018-11-07 12:41:03 +00:00
Joao Moreno 9c4b3954c2 update snapcraft.yaml 2018-11-06 16:16:35 +00:00
Joao Moreno e840e83ff9 set executable bits 2018-11-06 15:08:02 +00:00
Daniel Imms 9d75305b7f Add fix for EACCES socket error
Fixes #44758
2018-03-05 10:06:04 -08:00
Daniel Imms 79b79309ce Call a script on update 2018-02-08 09:09:12 -08:00
Daniel Imms 90385c778b Remove post-refresh hook 2018-02-07 11:13:50 -08:00
Daniel Imms d9fd598afd Fix post refresh hook to use electron-launch 2018-02-02 12:04:27 -08:00
Daniel Imms 648a5b0869 Fix post refresh hook 2018-02-02 10:26:26 -08:00