Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Add StartupWMClass to desktop file for proper icon matching

Prateek Sunal4d5026d19763
diff --git a/mobile/apps/auth/linux/packaging/build_rpm.sh b/mobile/apps/auth/linux/packaging/build_rpm.sh
index e9acc4b2ea..6a2a1f0cc7 100755
--- a/mobile/apps/auth/linux/packaging/build_rpm.sh
+++ b/mobile/apps/auth/linux/packaging/build_rpm.sh
@@ -64,11 +64,9 @@ cp -r "$BUNDLE_DIR"/* "$STAGING_DIR/usr/share/enteauth/"
echo -e "${YELLOW}Copying metainfo file...${NC}"
cp linux/packaging/enteauth.appdata.xml "$STAGING_DIR/usr/share/metainfo/"
-# Copy icon to multiple locations for better compatibility
+# Copy icon
echo -e "${YELLOW}Copying icon...${NC}"
cp "assets/icons/io.ente.auth.png" "$STAGING_DIR/usr/share/pixmaps/io.ente.auth.png"
-mkdir -p "$STAGING_DIR/usr/share/icons/hicolor/256x256/apps"
-cp "assets/icons/io.ente.auth.png" "$STAGING_DIR/usr/share/icons/hicolor/256x256/apps/io.ente.auth.png"
# Copy desktop file
echo -e "${YELLOW}Copying desktop file...${NC}"
diff --git a/mobile/apps/auth/linux/packaging/enteauth.desktop b/mobile/apps/auth/linux/packaging/enteauth.desktop
index d2a633c160..45ff2b64ac 100644
--- a/mobile/apps/auth/linux/packaging/enteauth.desktop
+++ b/mobile/apps/auth/linux/packaging/enteauth.desktop
@@ -8,3 +8,4 @@ Categories=Utility;
Keywords=Authentication;2FA;
MimeType=x-scheme-handler/enteauth;
StartupNotify=false
+StartupWMClass=io.ente.auth