Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-4524

Screenshot is saved and viewable without the need to interact with Portal window.

    • None
    • None
    • rhel-sst-display-window-management
    • ssg_display
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • If docs needed, set a value
    • None

      Description of problem:

      I can capture screenshot via dbus, the Portal window shows but I have no need to interact with it to see the image. Is this intended behavior or am I doing something wrong? I would assume the image would not be accessible before confirming the Portal window and definitely should not be seen if I cancel it. No matter what I click in the Portal application I will get the screenshot.

      Version-Release number of selected component (if applicable):
      xdg-desktop-portal-1.12.4-1.el9.x86_64.

      How reproducible:
      100%

      Steps to Reproduce:
      1. Capture the screenshot:

      >#!/usr/bin/env python3
      >from dasbus.connection import SessionMessageBus
      >MESSAGE_BUS = SessionMessageBus()
      >SCREENSHOT_PROXY_OBJECT = MESSAGE_BUS.get_proxy(
      > service_name="org.freedesktop.portal.Desktop",
      > object_path="/org/freedesktop/portal/desktop"
      >)
      >SCREENSHOT_PROXY_OBJECT.Screenshot("/home/test/Pictures/", {})

      2. Try to open the screenshot.
      3.

      Actual results:
      Screenshot can be opened without any interaction with the Portal app.

      Expected results:
      The screenshot should not be viewable before interacting with the Portal app.

      Additional info:
      No matter the interaction with Portal app the screenshot can be opened.
      Reproducible on rhel-8 also

              jadahl@redhat.com Jonas Ådahl
              modehnal@redhat.com Michal Odehnal
              Jonas Ådahl Jonas Ådahl
              Filip Pokryvka Filip Pokryvka
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: