Skip to content

Conversation

@marcofranzen99
Copy link
Contributor

@marcofranzen99 marcofranzen99 commented Feb 25, 2025

Resolved / Related Issues

explanation
The LaunchArgs are evaluated here when Files is started. Here an explicit check is made for files-dev.exe or files-dev. (Or, depending on the environment, for files-stable, ...)

After the update, however, files-dev.exe is not called from the %localappdata%\Microsoft\WindowsApps folder, but rather Files.exe is called directly from the C:\Program Files\WindowsApps<AppDirectory>\ folder.
Example: “C:\Program Files\WindowsApps\FilesPreview_3.8.0.0_x64__cnsc1k9bd01st\Files.App\Files.exe”
Since there is also a space at the end of the LaunchArgs, the TrimEnd is required so that no additional empty tab is opened.

image

Steps used to test these changes
For testing I built two Files versions locally and customized the Updater class to use the local msix packages. Code can be found here

After the update, Files is now started and no additional tab is opened.

@marcofranzen99 marcofranzen99 force-pushed the 16707_update_did_you_delete_this_folder branch from 841e1e0 to 3d9cd99 Compare February 25, 2025 21:46
@yaira2 yaira2 added the ready for review Pull requests that are ready for review label Feb 25, 2025
@yaira2 yaira2 changed the title Fixed: Fixed issue where the “Did you delete this folder” dialog was displayed after each update Fix: Fixed error dialog from appearing after updates Feb 25, 2025
Copy link
Member

@yaira2 yaira2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@yaira2 yaira2 added ready to merge Pull requests that are approved and ready to merge and removed ready for review Pull requests that are ready for review labels Mar 2, 2025
@yaira2 yaira2 merged commit e921b40 into files-community:main Mar 2, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready to merge Pull requests that are approved and ready to merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: Did you delete this folder error after each update

2 participants