MarkHedleyJones / dmenu-extended

An extension to dmenu for quickly opening files and folders.
MIT License
388 stars 33 forks source link

Unable to launch steam games #110

Open shady-mathers opened 4 years ago

shady-mathers commented 4 years ago

Oh hi mark! Thanks a lot for a great project! definitely made my life easier. Now, there's a catch. In the original dmenu, I used to open steam games by typing "steam steam://run/xxxxxx" where xxxxxx is the 6 digit game id. But when I type the same thing in dmenu_extended it just says "can't find steam steam, is it installed?" I tried "steam: steam://run/xxxxxx", same result. Any pointers as to where I might be getting it wrong? I'm running ubuntu 20.04 with spectrwm and python version is 3.8 Thanks!

MarkHedleyJones commented 3 years ago

Hi, thanks for creating the issue. Hmmm, it seems to be related to the fact that there's a semi-colon in the path to the game which triggers dmenuExtended to split the command in two and try to run the second half of the command using a program with the name of the first (i.e., running //run/xxxxxx with a program called steam steam). As a bypass to that mechanism, what about if you add the following alias into you dmenuExtended_preferences.txt file:

    "include_items": [
        [
            "my_favourite_game", 
            "steam steam://run/xxxxxx"
        ]
    ],

Replacing "my_favourite_game" with the name of the game... Then rebuild the cache and try running the new entry. I know it's not ideal, but in your case it may be a more optimum solution as you can just alias it to a game name directly?

shady-mathers commented 3 years ago

Hi Mark! Sorry for the delayed response (my PC was dead, so couldn't try the solution out.) The problem persists. I made the alias as you instructed, but dmenu still asks, "Can't find steam steam, is it installed?"