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

Screenshot portal for elementary 8 should be backported for 7.1 #120

Open
phase1geo opened this issue Nov 11, 2024 · 0 comments
Open

Screenshot portal for elementary 8 should be backported for 7.1 #120

phase1geo opened this issue Nov 11, 2024 · 0 comments

Comments

@phase1geo
Copy link

What Happened?

When I attempt to use the screenshot portal when running on elementary OS 7.1, the screenshot panel is sometimes hidden behind other windows and/or not centered in the display and taking a screenshot with it returns an error to the requesting application instead of a valid image. The OS 8 implementation seems to be working properly in my testing.

Steps to Reproduce

With the following code:

portal.take_screenshot.begin( parent, Xdp.ScreenshotFlags.INTERACTIVE, null, (obj, res) => {
      try {
        var screenshot = portal.take_screenshot.end( res );
        var file       = File.new_for_uri( screenshot );
        ...
      } catch( Error e ) {
        stdout.printf( "ERROR: %s\n", e.message );
      }
    });

The portal for elementary 7.1 causes the "catch" code to execute with the message of "Screenshot failed" (or something close to that).

Expected Behavior

The expected behavior can be seen on elementary OS 8 RC which returns a valid screenshot file image that can be used by the calling application.

OS Version

7.x (Horus)

Session Type

Classic Session (X11, This is the default)

Software Version

Latest release (I have run all updates)

Log Output

No response

Hardware Info

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant