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

[RuneLite] Right clicking screenshot button doesn't open the screenshots folder #46

Open
1 of 5 tasks
USA-RedDragon opened this issue Jan 16, 2024 · 4 comments
Open
1 of 5 tasks
Assignees
Labels
bug Something isn't working new

Comments

@USA-RedDragon
Copy link
Owner

USA-RedDragon commented Jan 16, 2024

This is an issue with (choose one):

  • RS3
  • Official Jagex OSRS
  • RuneLite
  • HDOS
  • Something else

Describe the bug
Right clicking screenshot button doesn't open the screenshots folder. Currently screenshots are stored in $HOME/Pictures/RuneLite

@USA-RedDragon USA-RedDragon added bug Something isn't working new labels Jan 16, 2024
@USA-RedDragon USA-RedDragon self-assigned this Jan 16, 2024
@Calvinman
Copy link

Hey Dragon, have you had any luck figuring this one out? What I've noticed is Runelite attempts to use xdg-open to open the file or web browser, but the steam deck in gaming mode doesn't provide the correct service in the gamescope iteration of xdg-desktop-portal. XDG-open itself does work, but I think flatpak doesn't call the correct service.

@USA-RedDragon
Copy link
Owner Author

So on my Arch desktop it definitely works as expected:

2024-03-23.20-53-57.mp4

I'll pull out my Steam Deck and try that out. I believe the inode/directory mime handler is the one that's invoked, and xdg-mime query default inode/directory should show the currently-registered handler for it.

@Calvinman
Copy link

When I'm operating in desktop mode on the Steam Deck, things work perfectly fine. It's only in gaming mode that it begins running into issues. My exact error message within Runelite is:

Unable to open folder. Press 'OK' and the folder directory will be copied to your clipboard.

After a bit of digging, I found the error message being returned by trying to use xdg-open within the running flatpak is:

Failed to call portal: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface ?org freedesktop.portal.OpenURI? on object at path /org/freedesktop/portal/desktop

And sure enough, inspecting it with DSpy showed that the portal used in gamescope which is gaming mode does not provide OpenURI whereas the one used by kde in desktop mode does provide it. The funny thing is that calling xdg-open from Konsole from gaming mode does work, but instead of trying to call org freedesktop.portal.OpenURI, it opens a flatpakked instance of whichever browser is the default handler for http/https.

My practical experience in this domain is quite limited, so I'm not sure if the issue lies within this Flatpak, Flatpak itself, or even gamescope.

@Calvinman
Copy link

It might have been better of me to create a separate issue since my primary concern is that I'd like to be able to open links, but at least in my case, the bugs preventing both screenshots and links from opening are actually the same thing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working new
Projects
None yet
Development

No branches or pull requests

2 participants