Code Monkey home page Code Monkey logo

Comments (5)

kra-mo avatar kra-mo commented on September 6, 2024

Hi,

Could you please run Cartridges from the terminal via flatpak run hu.kramo.Cartridges, try to launch a game and then post your output?

from cartridges.

vitor251093 avatar vitor251093 commented on September 6, 2024

Sure thing. This is the output:

vitor@vitor-debian:~$ flatpak run hu.kramo.Cartridges
gio: steam://rungameid/22330: Operation not supported

It's worth noting that the command below also fails, so it seems like the URI scheme is not associated with Steam for some reason.

vitor@vitor-debian:~$ xdg-open steam://rungameid/22330
gio: steam://rungameid/22330: The specified location is not supported

The Steam generated Desktop files have the following exec line:

Exec=steam steam://rungameid/22330

EDIT: It may be related with that issue:
ValveSoftware/steam-for-linux#7076

If that's the case, it may not be a Cartridges issue. But still, an error message explaining the issue would be useful in case somebody else has that problem. It's worth saying I still don't know how to fix it.

from cartridges.

vitor251093 avatar vitor251093 commented on September 6, 2024

Curiously enough, there is also this:

vitor@vitor-debian:~$ xdg-mime query default x-scheme-handler/steam
steam.desktop

So the scheme is associated to the Steam desktop file, which does exist.

Using the command below, it works:

vitor@vitor-debian:~$ steam steam://rungameid/22330
steam.sh[7028]: Running Steam on debian 12 64-bit
steam.sh[7028]: STEAM_RUNTIME is enabled automatically
setup.sh[7097]: Steam runtime environment up-to-date!
steam.sh[7028]: Steam client's requirements are satisfied
[...]

And if I try to open the steam://rungameid/22330 scheme in my browser, it tries to open it with xdg-open, and fails as well.

from cartridges.

kra-mo avatar kra-mo commented on September 6, 2024

Yeah, this is an issue on Steam/Debian's side.

But still, an error message explaining the issue would be useful in case somebody else has that problem.

I don't currently have a mechanism to do this and I think you understand why I could not add hard-coded error messages for specific bugs on specific distros.

The best thing you could do now is either manually change the executable inside of Cartridges from xdg-open to steam or try this solution.

from cartridges.

vitor251093 avatar vitor251093 commented on September 6, 2024

My steam.desktop exec line actually looks like that:

Exec=/usr/games/steam %U

So that solution won't work for me.

The best thing you could do now is either manually change the executable inside of Cartridges from xdg-open to steam

Oh, I didn't figure I could update games that were imported automatically. Just tried that and it worked btw.

I don't currently have a mechanism to do this and I think you understand why I could not add hard-coded error messages for specific bugs on specific distros.

Makes perfect sense to me. Still, considering that replacing xdg-open with steam worked in my case, maybe that could be added as a fallback while importing the Steam library? If the Steam scheme doesn't work, it uses "steam" instead of "xdg-open" automatically.

I don't know if that would be simple to implement, since apparently the scheme is associated with Steam, and it still doesn't work, but that may be a possibility worth investigating if other people report the same issue in the future.

Until then, in case anyone stumbles with that issue in the future, that works:

change the executable inside of Cartridges from xdg-open to steam

from cartridges.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.