Skip to content
Closed
Show file tree
Hide file tree
Changes from all 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
3 changes: 3 additions & 0 deletions src/cli/global/update.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ pub async fn execute(args: Args) -> miette::Result<()> {
.expose_executables_from_environment(env_name)
.await?;

// Sync shortcuts
state_changes |= project.sync_shortcuts(env_name).await?;

Ok(state_changes)
}

Expand Down
8 changes: 4 additions & 4 deletions src/global/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -783,10 +783,10 @@ pub(crate) fn shortcut_sync_status(
.swap_take(&record.repodata_record.package_record.name)
.is_some()
{
if !has_installed_system_menus {
// The package record isn't installed, but it is requested
records_to_install.push(record);
}
// Always install shortcut.
// Because pixi doesn't know if it is already installed,
// and still exists in system.
records_to_install.push(record);
} else if has_installed_system_menus {
// The package record is installed, but not requested
records_to_uninstall.push(record);
Expand Down
Loading