Giter Club home page Giter Club logo

Comments (6)

Matoking avatar Matoking commented on June 28, 2024 1

The order of parameters is correct: you have to put Protontricks related parameters first. The dots at the end (...) denote where you should put the Winetricks parameters, but the auto-generated message does not make this clear.


The parameters in the usage message (--verbose, -s SEARCH, etc.) are parameters that Protontricks itself supports, and must be added before the app ID. This is because the parameters after the app ID are given to Winetricks as-is without any validation. Protontricks doesn't know what parameters your Winetricks installation supports, and trying to detect which parameters are Protontricks related and which are Winetricks related would be extremely difficult.

For example, this is a valid command:

$ protontricks --no-runtime 377160 --gui
# GUI is shown as expected

but this isn't

$ protontricks 377160 --no-runtime --gui
# Winetricks doesn't know what to do with `--no-runtime`
------------------------------------------------------
unknown option --no-runtime
-----------------------------------------------------

Flags like -v are also accepted by both applications, so you can do this:

$ protontricks -v 377160 -v --gui
# Verbose flag is enabled for both Protontricks and Winetricks

from protontricks.

Matoking avatar Matoking commented on June 28, 2024 1

I'll look into clarifying the message when using incorrect parameters. The usage message alone is really terse, so it's probably better to show the full help message instead if the command is incorrect. This is already done in some cases.


Winetricks has a --gui flag that forces GUI even if the environment seems to be non-interactive. --gui in Protontricks means that the user will be prompted to choose the game from a dropdown list, which will then open the Winetricks GUI for that game.

from protontricks.

thaewrapt avatar thaewrapt commented on June 28, 2024

Thanks for the clarification, I'm aware of this as I use protontricks on a regular basis, but there is nothing about this (I mean, winetricks parameters) in the message I quoted. Maybe, it needs a special mention there?

Also, looking at protontricks -h output I actually see a mention of 'winetricks_command' once — in 'positional arguments' section, maybe it's possible to substitute '...' with it? I guess it should make more sense for people not so familiar with a tool.

from protontricks.

thaewrapt avatar thaewrapt commented on June 28, 2024

Btw, returning to my first post, I still see some confusion for '--gui' parameter. Do both protontricks and winetricks support it?

from protontricks.

thaewrapt avatar thaewrapt commented on June 28, 2024

I'll look into clarifying the message when using incorrect parameters. The usage message alone is really terse, so it's probably better to show the full help message instead if the command is incorrect. This is already done in some cases.

Agreed, that should give an end-user much more insight (and above all things, unify things some).

Winetricks has a --gui flag that forces GUI even if the environment seems to be non-interactive. --gui in Protontricks means that the user will be prompted to choose the game from a dropdown list, which will then open the Winetricks GUI for that game.

Thanks, now it's clear.

from protontricks.

thaewrapt avatar thaewrapt commented on June 28, 2024

Thanks for fixing!

from protontricks.

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.