Skip to content

add support for running winetricks in unattended mode - #492

Open
Renari wants to merge 1 commit into
Matoking:masterfrom
Renari:unattended
Open

add support for running winetricks in unattended mode#492
Renari wants to merge 1 commit into
Matoking:masterfrom
Renari:unattended

Conversation

@Renari

@Renari Renari commented Jul 24, 2026

Copy link
Copy Markdown

The 32 bit warnings everytime I open proton tricks really annoys me so I added an option to pass the -q flag to winetricks which hides them. I'm not sure what else this actually does it seems it automates some installers?

@Matoking

Matoking commented Aug 3, 2026

Copy link
Copy Markdown
Owner

There is no need to add Winetricks options specifically in Protontricks; everything after the app ID is passed to the Winetricks as-is and the following already works:

$ protontricks <APPID> -q

I suppose -q/--unattended could be mentioned in the help text as a common Winetricks option. But supporting it in Protontricks itself is not desirable, especially since the short-form can be confused with the existing -v/--verbose flag which also affects Protontricks logging.

@Renari

Renari commented Aug 3, 2026

Copy link
Copy Markdown
Author

This does not work for the gui however, since there is no appid.

So:

$ protontricks --no-term --gui

Has no way to pass options to winetricks.

@Renari

Renari commented Aug 3, 2026

Copy link
Copy Markdown
Author

Hmm, I think maybe a better solution than pulling this flag into protontricks would maybe be something like.

$ protontricks --no-term --gui -- -q

Thus passing all params after -- to winetricks.

@Renari

Renari commented Aug 3, 2026

Copy link
Copy Markdown
Author

I mocked the above up, what do you think about doing something like this instead?

    winetricks_args = []
    if "--" in args:
        delimiter_idx = args.index("--")
        args_before_delimiter = parser.parse_args(args[:delimiter_idx])

        if args_before_delimiter.gui:
            winetricks_args = list(args[delimiter_idx + 1:])
            args = args_before_delimiter
        else:
            args = parser.parse_args(args)
    else:
        args = parser.parse_args(args)

    args.winetricks_command += winetricks_args

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants