Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: GetOpenFileName & IFileDialog don't support DPI Scaling in AppSilo #39

Open
AndromedaMelody opened this issue Jun 9, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@AndromedaMelody
Copy link

AndromedaMelody commented Jun 9, 2023

Version

Windows Version: 10.0.25370.1
Win32 app isolation release version: 0.1.0

Repro Steps

  1. Write an application using winrt::com_ptr<IFileDialog>/GetOpenFileNameW()/GetSaveFileNameW().
  2. Write an fusion manifest and declare PerMonitorV2.
……
<application xmlns="urn:schemas-microsoft-com:asm.v3">
  <windowsSettings>
    <dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">PerMonitorV2</dpiAwareness>
  </windowsSettings>
</application>
……
  1. Package the app and run it in AppSilo.
<?xml version="1.0" encoding="utf-8"?>
<Package ……
  xmlns:previewsecurity2="http://schemas.microsoft.com/appx/manifest/preview/windows10/security/2" 
  IgnorableNamespaces="… previewsecurity2">
……
  <Dependencies>
    <TargetDeviceFamily Name="Windows.Desktop" MinVersion="10.0.25229.0" MaxVersionTested="10.0.25229.0" />
  </Dependencies>
  <Applications>
    <Application … uap10:TrustLevel="appContainer" previewsecurity2:RuntimeBehavior="appSilo"> …… </Application>
  </Applications>
</Package>

Unexpected Results

Open File Dialog is blurred.
Screenshot 2023-06-09 001626

@macruzco
Copy link
Contributor

Thanks for reporting this @AndromedaMelody ! Indeed we have to include support for DPI scaling options when brokering the file dialog.

Could you please clarify what exactly is blurry and where to look for the blur? I haven't been able to spot the blur myself, so it would be helpful to know exactly what to look for.

Thanks!

@macruzco macruzco self-assigned this Jul 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants