Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .changes/appimage-diricon.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
tauri-bundler: patch:bug
Comment thread
FabianLars marked this conversation as resolved.
Resolved
tauri-cli: patch:bug
@tauri-apps/cli: patch:bug
Comment thread
Legend-Master marked this conversation as resolved.
Resolved
---

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`.
7 changes: 2 additions & 5 deletions crates/tauri-bundler/src/bundle/linux/appimage/linuxdeploy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,12 +171,9 @@ pub fn bundle_project(settings: &Settings) -> crate::Result<Vec<PathBuf>> {
app_dir_path.join(larger_icon_path),
app_dir_path.join(format!("{product_name}.png")),
)?;
std::os::unix::fs::symlink(format!("{product_name}.png"), app_dir_path.join(".DirIcon"))?;
std::os::unix::fs::symlink(
app_dir_path.join(format!("{product_name}.png")),
app_dir_path.join(".DirIcon"),
)?;
std::os::unix::fs::symlink(
app_dir_path.join(format!("usr/share/applications/{product_name}.desktop")),
format!("usr/share/applications/{product_name}.desktop"),
app_dir_path.join(format!("{product_name}.desktop")),
)?;

Expand Down
Loading