modrinth / code

The Modrinth monorepo containing all code which powers Modrinth!
https://modrinth.com
Other
772 stars 124 forks source link

Ability to Shortcut the Launch of a Mod Profile #489

Open TheMaster223 opened 11 months ago

TheMaster223 commented 11 months ago

Is your suggested enhancement related to a problem? Please describe.

Having to open modrinth app (or any launcher for that matter), just to launch a specific instance can be annoying sometimes.

Describe the solution you'd like

Like prism launcher, I think it'd be very practical to be able to create a shortcut to a mod profile that launches that specified profile without opening the actual launcher. In my opinion, this would make launching the game much, much more efficient and is just a simple QoL change that makes life easier. The shortcut target would probably be structured similar to prism's like "[directory of modrinth app] --launch [profile name]"

Describe alternatives you've considered

The launcher wouldn't necessarily have to provide a button or such to create the shortcut for you, rather a doc could be provided telling you how to do so. Obviously the button idea would be a better solution in the long run though.

Additional context

How Prism Launcher Works: image

"Target" of prism shortcut: image

MulverineX commented 11 months ago

Ideally, this would not open the launcher GUI. Related issue (#575).

TheMaster223 commented 11 months ago

Ideally, this would not open the launcher GUI. Related issue (#575).

Not sure if I wasn't clear enough, but, to clarify, I was indeed referring to the ability to launch a profile without the launcher GUI opening.

natopotato390 commented 10 months ago

This would be a great feature, even just as a cli argument.

ImAvafe commented 8 months ago

A URI scheme like modrinth:// would be cool too. A standardized minecraft:// scheme shared by multiple launchers would be ideal but that's just overly-wishful.

TimotheFCN commented 5 months ago

I am using steam big picture to launch my games (game streaming), this is a must as I often have only a controller plugged to the remote device. Just having the ability to execute the app with an argument to launch directly a profile would let us add it as a non Steam game and launch directly !

Probably very simple to implement, I have never checked the code on this repo but I will try to make a pr

natopotato390 commented 5 months ago

While we're waiting, for anyone interested: MultiMc allows you to import modrinth profiles and create desktop shortcuts.

I've used this, works great with Steam big picture