bburky / playnite-non-steam-shortcuts

A Playnite extension to create non-Steam shortcuts
MIT License
38 stars 2 forks source link

How to remove a game from launching through steam #25

Open xVenomDestroyerx opened 3 years ago

xVenomDestroyerx commented 3 years ago

I have a shortcut on Playnite that opens a folder and I accidentally clicked the "Create non-Steam shortcuts" option and now it pops up with an annoying steam message that it could not launch and if I close the folder, I cannot reopen it as Playnite still thinks it is running. Is there any way to remove a game from trying to launch through steam? I even tried uninstalling the extension and reinstalling it but it appears it kept all its previous data.

NightHammer1000 commented 3 years ago

I made a C# extension that Deletes the First Playaction and moves the Second One in the First spot to get rid of the steam Launching. But it wont work with any other setup than mine. Give me a few days and I make it Universal for you.

bburky commented 3 years ago

@xVenomDestroyerx Do you have everything working now, or do you still need help? I see you opened both this issue and #24.

The non-steam shortcut is setup in steam by moving the default play action into other actions. Then this extension creates a new default action that has a steam://... URL. To remove undo it you would have to copy the other action into the play action manually, there is currently no way to do it automatically.

The default play action actually has an invisible name field, I put use the value "Non-Steam Steam Shortcut" for the actions created by this shortcut. There's enough data to be able to undo it automatically, I just haven't ever done it. Maybe a second menu item "Remove non-steam shortcuts"? I suppose it should also delete the shortcut out of Steam itself too.

@NightHammer1000 Is this also a problem you're having?

NightHammer1000 commented 3 years ago

Its not really a Problem. I just dont like it very much to start everything through steam. I commented the Part that makes the Steam Playaction out in my local copy of the Script and wrote a cleanup Plugin to revert the Changes Made.

It can be reveresed automaticly. I have over 800 Entrys in my DB. Doing it manually was out of the Question. Basicly check every Database entry if there is a Second Play Action. If there is filter out if the playaction is a Steam URL. If it is check if it uses the Steam Plugin. If not its a Non-Steam Game that uses a Steam playaction. Then Simply copy the Second Playaction into the First and delete the Second one.

Thats how I did it. Sadly I lost the C# Project. My SSD died on my Yesterday.

bburky commented 3 years ago

I've thought about reimplementing this extension at some point, Playnite won't support Python forever. When I do I'll keep these usecases in mind.

I'm very sorry to hear that your SSD died.