Browse Source

fix: put linux high dpi icons in the correct dir (#4281)

Didrik Nordström 3 years ago
parent
commit
c2b7c77517
2 changed files with 7 additions and 1 deletions
  1. 6 0
      .changes/linux-icon-high-dpi.md
  2. 1 1
      tooling/bundler/src/bundle/linux/debian.rs

+ 6 - 0
.changes/linux-icon-high-dpi.md

@@ -0,0 +1,6 @@
+---
+"tauri-bundler": patch
+---
+
+On Linux, high-dpi icons are now placed in the correct directory
+and should be recognized by the desktop environment.

+ 1 - 1
tooling/bundler/src/bundle/linux/debian.rs

@@ -276,7 +276,7 @@ fn generate_icon_files(settings: &Settings, data_dir: &Path) -> crate::Result<BT
       "{}x{}{}/apps/{}.png",
       width,
       height,
-      if is_high_density { "@2x" } else { "" },
+      if is_high_density { "@2" } else { "" },
       settings.main_binary_name()
     ))
   };