From 10f95cda321af10e63942a7121487f09826b2c6e Mon Sep 17 00:00:00 2001
From: Baptiste Augrain <daiyam@zokugun.org>
Date: Mon, 5 Sep 2022 11:17:56 +0200
Subject: [PATCH] fix(snap): set correct main part and update apps (#1240)

---
 stores/snapcraft/insider/snap/snapcraft.yaml | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/stores/snapcraft/insider/snap/snapcraft.yaml b/stores/snapcraft/insider/snap/snapcraft.yaml
index 4c7db43..be9c967 100644
--- a/stores/snapcraft/insider/snap/snapcraft.yaml
+++ b/stores/snapcraft/insider/snap/snapcraft.yaml
@@ -1,5 +1,5 @@
 name: codium-insiders
-adopt-info: codium-insiders
+adopt-info: codium
 summary: Code editing. Redefined.
 description: |
   Binary releases of Code without branding/telemetry/licensing
@@ -73,16 +73,16 @@ parts:
     source: snap/local
 
 apps:
-  codium:
-    command: electron-launch $SNAP/usr/share/codium/bin/codium --no-sandbox
-    desktop: usr/share/applications/codium.desktop
+  codium-insiders:
+    command: electron-launch $SNAP/usr/share/codium-insiders/bin/codium-insiders --no-sandbox
+    desktop: usr/share/applications/codium-insiders.desktop
     environment:
       DISABLE_WAYLAND: 1
       GSETTINGS_SCHEMA_DIR: $SNAP/usr/share/glib-2.0/schemas
 
   url-handler:
-    command: electron-launch $SNAP/usr/share/codium/bin/codium --open-url --no-sandbox
-    desktop: usr/share/applications/codium-url-handler.desktop
+    command: electron-launch $SNAP/usr/share/codium-insiders/bin/codium-insiders --open-url --no-sandbox
+    desktop: usr/share/applications/codium-insiders-url-handler.desktop
     environment:
       DISABLE_WAYLAND: 1
       GSETTINGS_SCHEMA_DIR: $SNAP/usr/share/glib-2.0/schemas