Skip to content

[BUG] Desktop shortcut removal dialog no longer opens automatically after package installation #5215

Description

@Mythos

Please confirm these before moving forward

  • I have searched for my issue and have not found a work-in-progress/duplicate/resolved issue.
  • I have tested that this issue has not been fixed in the latest (beta or stable) release.
  • I have checked the FAQ section for solutions.
  • This issue is about a bug (if it is not, please use the correct template).

UniGetUI Version

2026.2.6

Windows version, edition, and architecture

Windows 11 Pro 26200.8894 x64

Describe your issue

The desktop shortcut removal dialog no longer opens automatically after installing or updating a package.

The shortcut detection itself still appears to work:

  • Desktop shortcuts that I previously marked for automatic deletion are still deleted correctly.
  • Newly detected shortcuts appear in the desktop shortcut management dialog.
  • However, UniGetUI no longer opens that dialog automatically after the installation or update has finished.

To review newly created shortcuts, I have to manually open:

Settings → Operations → Manage desktop shortcuts

In previous versions, UniGetUI automatically displayed a dialog after an installation or update, allowing me to choose which newly created desktop shortcuts should be deleted.

This seems to be a regression in the newer Avalonia-based interface.

Steps to reproduce the issue

  1. Enable the option to detect and remove newly created desktop shortcuts.
  2. Make sure that automatic deletion of all unknown shortcuts is disabled, so UniGetUI should ask before deleting a new shortcut.
  3. Install or update a package that creates a new desktop shortcut.
  4. Wait for the installation or update to finish.
  5. Observe that no desktop shortcut selection dialog is opened.
  6. Open the desktop shortcut management dialog manually through the settings.
  7. Observe that the newly created shortcut is listed there and can be selected for deletion.

UniGetUI Log

[30.07.2026 10:02:34]    __  __      _ ______     __  __  ______
                        / / / /___  (_) ____/__  / /_/ / / /  _/
                       / / / / __ \/ / / __/ _ \/ __/ / / // /
                      / /_/ / / / / / /_/ /  __/ /_/ /_/ // /
                      \____/_/ /_/_/\____/\___/\__/\____/___/
                          Welcome to UniGetUI Version 2026.2.6
[30.07.2026 10:02:34]   
[30.07.2026 10:02:34] Build 107
[30.07.2026 10:02:34] UI Framework: Avalonia
[30.07.2026 10:02:34] Data directory C:\Users\****\AppData\Local\UniGetUI
[30.07.2026 10:02:34] OS: Microsoft Windows 10.0.26200
[30.07.2026 10:02:34] Process arch: X64 (OS: X64)
[30.07.2026 10:02:34] Runtime: .NET 10.0.10
[30.07.2026 10:02:34] Loaded language locale: de
[30.07.2026 10:02:34] Elevated: False
[30.07.2026 10:02:34] Packaged (MSIX): False
[30.07.2026 10:02:34] Args: (none)
[30.07.2026 10:02:34] DXGI hardware GPU detection took 10,2 ms; hardware GPU: True
[30.07.2026 10:02:35] Command cargo-binstall.exe was not found on the system
[30.07.2026 10:02:35] Previous update attempt killed mid-flow but install succeeded (running version 2026.2.6 matches target 2026.2.6.0). Marking as finished.
[30.07.2026 10:02:35] Starting Avalonia shell bootstrap
[30.07.2026 10:02:35] Loaded language locale: de
[30.07.2026 10:02:35] Generated a IPC API auth token for the current session
[30.07.2026 10:02:35] Bun is not enabled
[30.07.2026 10:02:35] vcpkg is not enabled
[30.07.2026 10:02:35] Scoop is not enabled
[30.07.2026 10:02:35] Chocolatey is not enabled
[30.07.2026 10:02:35] Cargo is not enabled
[30.07.2026 10:02:35] PowerShell7 is enabled and was found on C:\Program Files\PowerShell\7\pwsh.exe
[30.07.2026 10:02:35] Npm is enabled and was found on C:\WINDOWS\system32\windowspowershell\v1.0\powershell.exe
[30.07.2026 10:02:35] PowerShell is enabled and was found on C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe
[30.07.2026 10:02:35] Pip is enabled and was found on C:\Users\****\AppData\Local\Microsoft\WindowsApps\python.EXE
[30.07.2026 10:02:35] Connected to WinGet API using packaged COM activation.
[30.07.2026 10:02:35] WinGet activation mode selected: packaged COM registration | Source: system COM registration
[30.07.2026 10:02:35] Winget is enabled and was found on C:\Users\****\AppData\Local\Microsoft\WindowsApps\winget.exe
[30.07.2026 10:02:35] Api running on named pipe UniGetUI.IPC
[30.07.2026 10:02:35] Auto-updater source 'ProductInfo' returned version 2026.2.6.0 (upgradable=False)
[30.07.2026 10:02:35] .NET Tool is enabled and was found on C:\Program Files\dotnet\dotnet.exe
[30.07.2026 10:02:35] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: PowerShell 7.x (aka PowerShell7)
                      █ Executable name: "pwsh.exe"
                      █ Executable path: "C:\Program Files\PowerShell\7\pwsh.exe"
                      █ Call arguments: " -NoProfile -Command"
                      █ Version: PowerShell 7.6.4
                      █          
                      █ PowerShell 7.x is enabled and ready to go.
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[30.07.2026 10:02:35] An error occurred while initialising package manager Pip
[30.07.2026 10:02:36] System.InvalidOperationException: Microsoft Store python alias is not a valid python install
                         at UniGetUI.PackageEngine.Managers.PipManager.Pip._loadManagerVersion(String&) + 0x14c
                         at UniGetUI.PackageEngine.ManagerClasses.Manager.PackageManager.Initialize() + 0xd7
[30.07.2026 10:02:36] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: WinGet (aka Winget)
                      █ Executable name: "winget.exe"
                      █ Executable path: "C:\Users\****\AppData\Local\Microsoft\WindowsApps\winget.exe"
                      █ Call arguments: ""
                      █ Version: System WinGet (CLI) Version: v1.29.280
                      █          Using Native WinGet helper (COM Api)
                      █          Activation mode: packaged COM registration
                      █          Activation source: system COM registration
                      █          
                      █ WinGet is enabled and ready to go.
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[30.07.2026 10:02:36] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: .NET Tool (aka .NET Tool)
                      █ Executable name: "dotnet tool"
                      █ Executable path: "C:\Program Files\dotnet\dotnet.exe"
                      █ Call arguments: "tool "
                      █ Version: 10.0.302
                      █          
                      █ .NET Tool is enabled and ready to go.
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[30.07.2026 10:02:36] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: PowerShell 5.x (aka PowerShell)
                      █ Executable name: "powershell.exe"
                      █ Executable path: "C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe"
                      █ Call arguments: " -NoProfile -Command"
                      █ Version: Name                           Value                                                                                   
                      █          ----                           -----                                                                                   
                      █          PSVersion                      5.1.26100.8894                                                                          
                      █          PSEdition                      Desktop                                                                                 
                      █          PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}                                                                 
                      █          BuildVersion                   10.0.26100.8894                                                                         
                      █          CLRVersion                     4.0.30319.42000                                                                         
                      █          WSManStackVersion              3.0                                                                                     
                      █          PSRemotingProtocolVersion      2.3                                                                                     
                      █          SerializationVersion           1.1.0.1
                      █          
                      █ PowerShell 5.x is enabled and ready to go.
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[30.07.2026 10:02:36] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: Npm (aka Npm)
                      █ Executable name: "npm"
                      █ Executable path: "C:\WINDOWS\system32\windowspowershell\v1.0\powershell.exe"
                      █ Call arguments: "-NoProfile -ExecutionPolicy Bypass -Command "C:\Program` Files\nodejs\npm.cmd" "
                      █ Version: 11.12.1
                      █          
                      █ Npm is enabled and ready to go.
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[30.07.2026 10:02:41] Found 0 installed packages from .NET Tool
[30.07.2026 10:02:41] Found 0 installed packages from .NET Tool
[30.07.2026 10:02:41] Found 0 available updates from .NET Tool
[30.07.2026 10:02:41] Found 11 installed packages from PowerShell7
[30.07.2026 10:02:41] Found 11 installed packages from PowerShell7
[30.07.2026 10:02:42] Found 2 available updates from PowerShell7
[30.07.2026 10:02:42] Integrity check passed successfully!
[30.07.2026 10:02:42] Avalonia shell bootstrap completed
[30.07.2026 10:02:43] Found 2 installed packages from Npm
[30.07.2026 10:02:43] Found 0 available updates from Npm
[30.07.2026 10:02:44] Version string 4.6.7 Beta 2 appears to contain non-numeric characters within a numeric segment and will be treated as unknown
[30.07.2026 10:02:44] Version string 4.6.7 Beta 2 appears to contain non-numeric characters within a numeric segment and will be treated as unknown
[30.07.2026 10:02:44] Version string 1.2.94.583.g60394bd5 appears to contain non-numeric characters within a numeric segment and will be treated as unknown
[30.07.2026 10:02:44] Version string 1.2.94.583.g60394bd5 appears to contain non-numeric characters within a numeric segment and will be treated as unknown
[30.07.2026 10:02:45] Found 5 installed packages from PowerShell
[30.07.2026 10:02:45] Found 5 installed packages from PowerShell
[30.07.2026 10:02:45] Found 4 available updates from Winget
[30.07.2026 10:02:45] Found 240 installed packages from Winget
[30.07.2026 10:02:45] Found 0 available updates from PowerShell
[30.07.2026 10:02:45] Loaded operation parameters for package id=JanDeDobbeleer.OhMyPosh on manager Winget and operation Update: update --id "JanDeDobbeleer.OhMyPosh" --exact --source winget --accept-source-agreements --disable-interactivity --silent --include-unknown --accept-package-agreements --force 
[30.07.2026 10:02:45] [AgentBroker] ShouldUseAgentBroker check: eligible=False, manager=Winget, virtualSource=False
[30.07.2026 10:02:48] Could not resolve installer hosts for JanDeDobbeleer.OhMyPosh version 29.36.0.0: Failed during source operation 'manifest' for 'winget': While scanning a simple key, could not find expected ':'.
[30.07.2026 10:02:48] Could not resolve installer hosts for JanDeDobbeleer.OhMyPosh version 29.37.0: Failed during source operation 'manifest' for 'winget': While scanning a simple key, could not find expected ':'.
[30.07.2026 10:02:48] Cloud backup completed successfully.
[30.07.2026 10:02:56] Path returned by the package manager "C:\Program Files\WindowsApps\ohmyposh.cli_29.36.0.0_x64__96v55e8n804z4" did not exist while loading package install location for package Id=JanDeDobbeleer.OhMyPosh with Manager=Winget
[30.07.2026 10:02:56] Imported 325 lines of legacy operation history
[30.07.2026 10:02:56] Version string 4.6.7 Beta 2 appears to contain non-numeric characters within a numeric segment and will be treated as unknown
[30.07.2026 10:02:56] Version string 4.6.7 Beta 2 appears to contain non-numeric characters within a numeric segment and will be treated as unknown
[30.07.2026 10:02:56] Version string 1.2.94.583.g60394bd5 appears to contain non-numeric characters within a numeric segment and will be treated as unknown
[30.07.2026 10:02:56] Version string 1.2.94.583.g60394bd5 appears to contain non-numeric characters within a numeric segment and will be treated as unknown
[30.07.2026 10:02:57] Found 240 installed packages from Winget
[30.07.2026 10:03:28] Found 12 available packages from .NET Tool with the query nextcloud
[30.07.2026 10:03:28] Found 2 available packages from PowerShell7 with the query nextcloud
[30.07.2026 10:03:28] Found 20 available packages from Npm with the query nextcloud
[30.07.2026 10:03:28] Icon download attempt at https://upload.wikimedia.org/wikipedia/commons/thumb/e/ed/Nextcloud-svgrepo-com.svg/512px-Nextcloud-svgrepo-com.svg.png failed with code BadRequest
[30.07.2026 10:03:28] Icon download attempt at https://upload.wikimedia.org/wikipedia/commons/thumb/e/ed/Nextcloud-svgrepo-com.svg/512px-Nextcloud-svgrepo-com.svg.png failed with code BadRequest
[30.07.2026 10:03:29] Found 9 available packages from Winget with the query nextcloud
[30.07.2026 10:03:30] Found 3 available packages from PowerShell with the query nextcloud
[30.07.2026 10:03:30] Icon download attempt at https://upload.wikimedia.org/wikipedia/commons/thumb/e/ed/Nextcloud-svgrepo-com.svg/512px-Nextcloud-svgrepo-com.svg.png failed with code BadRequest
[30.07.2026 10:03:51] WinGet package Nextcloud.NextcloudDesktop is installed on a system-wide scope, forcing administrator rights...
[30.07.2026 10:03:51] Loaded operation parameters for package id=Nextcloud.NextcloudDesktop on manager Winget and operation Install: install --id "Nextcloud.NextcloudDesktop" --exact --source winget --accept-source-agreements --disable-interactivity --silent --accept-package-agreements --force 
[30.07.2026 10:03:53] WinGet package Nextcloud.NextcloudDesktop is installed on a system-wide scope, forcing administrator rights...
[30.07.2026 10:03:53] Loaded operation parameters for package id=Nextcloud.NextcloudDesktop on manager Winget and operation Install: install --id "Nextcloud.NextcloudDesktop" --exact --source winget --accept-source-agreements --disable-interactivity --silent --accept-package-agreements --force 
[30.07.2026 10:03:55] WinGet package Nextcloud.NextcloudDesktop is installed on a system-wide scope, forcing administrator rights...
[30.07.2026 10:03:55] Loaded operation parameters for package id=Nextcloud.NextcloudDesktop on manager Winget and operation Install: install --id "Nextcloud.NextcloudDesktop" --exact --source winget --accept-source-agreements --disable-interactivity --version "33.0.7" --silent --accept-package-agreements --force 
[30.07.2026 10:03:57] WinGet package Nextcloud.NextcloudDesktop is installed on a system-wide scope, forcing administrator rights...
[30.07.2026 10:03:57] Loaded operation parameters for package id=Nextcloud.NextcloudDesktop on manager Winget and operation Install: install --id "Nextcloud.NextcloudDesktop" --exact --source winget --accept-source-agreements --disable-interactivity --version "33.0.7" --silent --accept-package-agreements --force 
[30.07.2026 10:03:57] [AgentBroker] ShouldUseAgentBroker check: eligible=False, manager=Winget, virtualSource=False
[30.07.2026 10:04:17] Version string 4.6.7 Beta 2 appears to contain non-numeric characters within a numeric segment and will be treated as unknown
[30.07.2026 10:04:17] Version string 4.6.7 Beta 2 appears to contain non-numeric characters within a numeric segment and will be treated as unknown
[30.07.2026 10:04:17] Version string 1.2.94.583.g60394bd5 appears to contain non-numeric characters within a numeric segment and will be treated as unknown
[30.07.2026 10:04:17] Version string 1.2.94.583.g60394bd5 appears to contain non-numeric characters within a numeric segment and will be treated as unknown
[30.07.2026 10:04:18] Found 240 installed packages from Winget
[30.07.2026 10:04:18] Deleting shortcut C:\Users\Public\Desktop\Nextcloud.lnk
[30.07.2026 10:43:55] WinGet package Elgato.CameraHub is installed on a system-wide scope, forcing administrator rights...
[30.07.2026 10:43:55] Loaded operation parameters for package id=Elgato.CameraHub on manager Winget and operation Update: update --id "Elgato.CameraHub" --exact --source winget --accept-source-agreements --disable-interactivity --silent --include-unknown --accept-package-agreements --force 
[30.07.2026 10:43:55] [AgentBroker] ShouldUseAgentBroker check: eligible=False, manager=Winget, virtualSource=False
[30.07.2026 10:44:35] Version string 4.6.7 Beta 2 appears to contain non-numeric characters within a numeric segment and will be treated as unknown
[30.07.2026 10:44:35] Version string 4.6.7 Beta 2 appears to contain non-numeric characters within a numeric segment and will be treated as unknown
[30.07.2026 10:44:35] Version string 1.2.94.583.g60394bd5 appears to contain non-numeric characters within a numeric segment and will be treated as unknown
[30.07.2026 10:44:35] Version string 1.2.94.583.g60394bd5 appears to contain non-numeric characters within a numeric segment and will be treated as unknown
[30.07.2026 10:44:36] Found 241 installed packages from Winget
[30.07.2026 10:44:36] Marking the shortcut C:\Users\Public\Desktop\Elgato Camera Hub.lnk to be asked to be deleted
[30.07.2026 10:44:58] Loaded language locale: de
[30.07.2026 10:45:17] Deleting shortcut C:\Users\Public\Desktop\Elgato Camera Hub.lnk
[30.07.2026 11:02:36] Auto-updater source 'ProductInfo' returned version 2026.2.6.0 (upgradable=False)

Package Managers Logs

Manager WinGet with version:
System WinGet (CLI) Version: v1.29.280
Using Native WinGet helper (COM Api)
Activation mode: packaged COM registration
Activation source: system COM registration

——————————————————————————————————————————

Logged native task on manager Winget. Task type is ListSources
Process start time: 30.07.2026 10:02:36
Process end time:   30.07.2026 10:02:36

-- Task information
 ...

The task reported success

——————————————————————————————————————————
Logged subprocess-based task on manager Winget. Task type is RefreshIndexes
Subprocess executable: "C:\Users\****\AppData\Local\Microsoft\WindowsApps\winget.exe"
Command-line arguments: " source update --disable-interactivity "
Process start time: 30.07.2026 10:02:40
Process end time:   30.07.2026 10:02:41

-- Process STDOUT
 ...

Return code: SUCCESS (0)

——————————————————————————————————————————
Logged native task on manager Winget. Task type is ListInstalledPackages
Process start time: 30.07.2026 10:02:40
Process end time:   30.07.2026 10:02:45

-- Task information
 ...

The task reported success

——————————————————————————————————————————
Logged native task on manager Winget. Task type is OtherTask
Process start time: 30.07.2026 10:02:40
Process end time:   30.07.2026 10:02:42

-- Task information
 ...

The task reported success

——————————————————————————————————————————
Logged native task on manager Winget. Task type is ListUpdates
Process start time: 30.07.2026 10:02:41
Process end time:   30.07.2026 10:02:45

-- Task information
 ...

The task reported success

——————————————————————————————————————————
Logged native task on manager Winget. Task type is ListInstalledPackages
Process start time: 30.07.2026 10:02:56
Process end time:   30.07.2026 10:02:57

-- Task information
 ...

The task reported success

——————————————————————————————————————————
Logged native task on manager Winget. Task type is FindPackages
Process start time: 30.07.2026 10:03:27
Process end time:   30.07.2026 10:03:29

-- Task information
 ...

The task reported success

——————————————————————————————————————————
Logged native task on manager Winget. Task type is LoadPackageVersions
Process start time: 30.07.2026 10:03:51
Process end time:   30.07.2026 10:03:51

-- Task information
 ...

The task reported success

——————————————————————————————————————————
Logged native task on manager Winget. Task type is ListInstalledPackages
Process start time: 30.07.2026 10:04:15
Process end time:   30.07.2026 10:04:18

-- Task information
 ...

The task reported success

——————————————————————————————————————————
Logged native task on manager Winget. Task type is OtherTask
Process start time: 30.07.2026 10:04:15
Process end time:   30.07.2026 10:04:16

-- Task information
 ...

The task reported success

——————————————————————————————————————————
Logged native task on manager Winget. Task type is ListInstalledPackages
Process start time: 30.07.2026 10:44:32
Process end time:   30.07.2026 10:44:36

-- Task information
 ...

The task reported success

——————————————————————————————————————————
Logged native task on manager Winget. Task type is OtherTask
Process start time: 30.07.2026 10:44:32
Process end time:   30.07.2026 10:44:34

-- Task information
 ...

The task reported success

——————————————————————————————————————————
Logged native task on manager Winget. Task type is FindPackages
Process start time: 30.07.2026 11:34:11
Process end time:   30.07.2026 11:34:12

-- Task information
 ...

The task reported success

——————————————————————————————————————————
Logged native task on manager Winget. Task type is FindPackages
Process start time: 30.07.2026 11:34:21
Process end time:   30.07.2026 11:34:26

-- Task information
 ...

The task reported success

——————————————————————————————————————————

Relevant information

1. New shortcuts are still detected after installations and updates

After a successful installation, UniGetUI calls DesktopShortcutsDatabase.HandleNewShortcuts(...):

if (Settings.Get(Settings.K.AskToDeleteNewDesktopShortcuts))
{
    DesktopShortcutsDatabase.HandleNewShortcuts(DesktopShortcutsBeforeStart);
}

The same logic is also executed after a successful package update.

Source:

PackageOperations.cs

2. Known shortcuts are deleted, while unknown shortcuts are queued for a user decision

HandleNewShortcuts(...) checks the stored status of each shortcut.

Shortcuts that were previously approved for deletion are deleted immediately:

else if (status is Status.Delete)
{
    DeleteFromDisk(shortcut);
}

New shortcuts whose status is still unknown are added to an internal list:

else
{
    // Mark the shortcut as unknown and prompt the user.
    if (!UnknownShortcuts.Contains(shortcut))
    {
        Logger.Info($"Marking the shortcut {shortcut} to be asked to be deleted");
        UnknownShortcuts.Add(shortcut);
    }
}

This matches the observed behavior: previously selected shortcuts continue to be removed, while new shortcuts remain available in the management dialog.

Source:

DesktopShortcutsDatabase.cs

3. The Avalonia interface only displays a notification

After package operations have finished, the Avalonia operation registry checks for unknown shortcuts:

var unknownShortcuts = DesktopShortcutsDatabase.GetUnknownShortcuts();

if (unknownShortcuts.Count > 0)
{
    WindowsAppNotificationBridge.ShowNewShortcutsNotification(unknownShortcuts);
}

However, this code only requests a notification. It does not open the desktop shortcut management dialog.

Source:

AvaloniaOperationRegistry.cs

4. The notification does not open the shortcut management dialog

The shortcut notification currently uses the generic NotificationArguments.Show action:

Show(title, message, MainWindow.RuntimeNotificationLevel.Success, launchAction: NotificationArguments.Show);

This only opens or focuses UniGetUI. It does not navigate to or open ManageDesktopShortcutsWindow.

The comments in the same file also state that the inline action buttons used by the previous notification implementation were intentionally removed:

// The inline action buttons carried by the old WinRT toasts
// are intentionally dropped

Source:

WindowsAppNotificationBridge.cs

5. The previous WinUI implementation opened the dialog directly

The previous implementation explicitly opened the desktop shortcut dialog after detecting new shortcuts:

await Window.ShowDialogAsync(ShortcutsDialog);

Source:

Add notifications when a new desktop shortcut is detected

Screenshots and videos

No response

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions