Skip to content

Commit 67ffa19

Browse files
fix(bundler): make .desktop and .DirIcon relative symlinks (#15596)
* fix(bundler): make .desktop and .DirIcon relative symlinks * fmt * Update .changes/appimage-diricon.md Co-authored-by: Tony <68118705+Legend-Master@users.noreply.github.com> * Update .changes/appimage-diricon.md --------- Co-authored-by: Tony <68118705+Legend-Master@users.noreply.github.com>
1 parent c5c8b2b commit 67ffa19

2 files changed

Lines changed: 9 additions & 5 deletions

File tree

.changes/appimage-diricon.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
tauri-bundler: patch:bug
3+
tauri-cli: patch:bug
4+
"@tauri-apps/cli": patch:bug
5+
---
6+
7+
Fixed an issue in the AppImage bundler that caused the `/.desktop` and `.DirIcon` files to be absolute symlinks instead of relative symlinks which caused problems with AppImage installers like `AppManager`.

crates/tauri-bundler/src/bundle/linux/appimage/linuxdeploy.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -171,12 +171,9 @@ pub fn bundle_project(settings: &Settings) -> crate::Result<Vec<PathBuf>> {
171171
app_dir_path.join(larger_icon_path),
172172
app_dir_path.join(format!("{product_name}.png")),
173173
)?;
174+
std::os::unix::fs::symlink(format!("{product_name}.png"), app_dir_path.join(".DirIcon"))?;
174175
std::os::unix::fs::symlink(
175-
app_dir_path.join(format!("{product_name}.png")),
176-
app_dir_path.join(".DirIcon"),
177-
)?;
178-
std::os::unix::fs::symlink(
179-
app_dir_path.join(format!("usr/share/applications/{product_name}.desktop")),
176+
format!("usr/share/applications/{product_name}.desktop"),
180177
app_dir_path.join(format!("{product_name}.desktop")),
181178
)?;
182179

0 commit comments

Comments
 (0)