Winetricks / winetricks

Winetricks is an easy way to work around problems in Wine
GNU Lesser General Public License v2.1
2.73k stars 398 forks source link

[Feature Request] Being able to set an exact location where a wine prefix will be created #1671

Open ghost opened 3 years ago

ghost commented 3 years ago

If I select to create a new prefix,I can only set the name and architecture and it will be created in the wine prefix folder,but I wanna create it in any folder I want.

austin987 commented 3 years ago

The GUI doesn't support it, but you can set WINEPREFIX to put the prefix in an arbitrary location, or WINE_PREFIXES to override where winetricks puts prefixes.

ghost commented 3 years ago

I don't use the terminal that much,I hope you guys will add that feature to the gui in the future. Also another cool thing would be to right click in a file manager and select "create new wine prefix,then select the name and then it will be created the. That would make my life so much easier.

austin987 commented 3 years ago

I don't actively use the GUI, so it's pretty much maintenance only at this point. That said, maybe someone else would find this useful and is interested, so I'll leave it open.

While the file manager request is doable, I'm not sure that's something that really belongs in winetricks. However, if there's large demand I'd reconsider.

ghost commented 3 years ago

I'm not sure that's something that really belongs in winetricks.

Is there a standalone programs that has that function? Cause I don't know any program where that function could fit more than for winetricks.

Valmar33 commented 3 years ago

A Wine prefix is just a directory that Wine has been told is, or should be, a Wine prefix.

You should really just get used to using a terminal, as almost everyone else does this.

WINEPREFIX=/path/to/chosen/directory winetricks should get you started.

ghost commented 3 years ago

I don't like using the terminal that much,cause I need muscle memory and I just like to use guis for everything,maybe it's an windows habbit,but I just like guis more than terminal.

Valmar33 commented 3 years ago

Linux is built around using a terminal. It's one of those things that you need to get used to.

The terminal on Linux is far more flexible than Windows' anemic Command Prompt...

The command I gave you is very simple, anyways.

If you don't want to learn, you'll just be stuck.

I know that I struggled with using the terminal at first, but then I grew to understand that it's a lot more powerful than a GUI. Then I transitioned to learning how to script things, and run scripts instead.

ghost commented 3 years ago

Linux is built around using a terminal. It's one of those things that you need to get used to.

If you don't want to learn, you'll just be stuck.

Linux is very easy for normie use,I don't do any programing or system admininestration,I only use some programs,play games and work and I can do that all with guis and don't have to use the terminal anytime,this is one of the only features that I saw where I need to use the terminal.

The terminal on Linux is far more flexible than Windows' anemic Command Prompt...

That's for sure,cmd and powershel is the crappiest thing ever and even the system guis aren't good at all.

The command I gave you is very simple, anyways.

Yeah it is and I will use it until the feature I want gets hopefully implemented for the gui,but it would be faster to do that in a file manager with a gui,cause I do all my file things in a file manager and not a terminal,I'm very slow at using the terminal.

I know that I struggled with using the terminal at first, but then I grew to understand that it's a lot more powerful than a GUI. Then I transitioned to learning how to script things, and run scripts instead.

I can belief that this is true,that the terminal is faster,but for that I would have to learn to use the terminal fastly,and I don't wanna learn anything and using guis is fast enough for me and I don't have to learn anything.

austin987 commented 3 years ago

I'm not aware of a program that does, but I also don't use GUI wine management apps ;)

@Valmar33, this issue tracker isn't the place for telling people your views on how they should run their computer, thanks

hikagura99 commented 3 years ago

You can go through the problem writing WINEPREFIX=/place/you/want/the/prefix/to/be/, and specifing WINEARCH=win32/64 before the winetricks command. If you set the prefix's location to ~/.local/share/wineprefixes/ it will show up in the GUI's main menu

ghost commented 3 years ago

@austin987 You mentioned that I can change where default prefixes will be created in Winetricks gui instead of the default location,how can I do that?

ghost commented 3 years ago

@hikagura99 what do you mean by;

it will show up in the GUI's main menu

What will show up?

austin987 commented 3 years ago

@Toadfield set the environmental variable WINE_PREFIXES

ghost commented 3 years ago

@austin987 How can I do that properly? For the command to launch winetricks,I set this:WINE_PREFIXES=/home/toadfield/Non Steam Games/Windows Games winetricks --gui,but if I do that,then winetricks has no logo and it can't launch.

Chiitoo commented 3 years ago

For the command to launch winetricks,I set this:WINE_PREFIXES=/home/toadfield/Non Steam Games/Windows Games winetricks --gui,but if I do that,then winetricks has no logo and it can't launch.

If this is exactly how you launched it, the content of 'WINE_PREFIXES' would be '/home/toadfield/Non' due to word splitting, and the shell would try to find a command named 'Steam' and bail out unless you actually have an executable called 'Steam' in your 'PATH' (in which case you'd be running 'Steam' with the rest of the words as arguments to it).

You'll want to protect the spaces by using quotes, like so:

WINE_PREFIXES="/home/toadfield/Non Steam Games/Windows Games" winetricks --gui

Or alternatively, by using backslashes:

WINE_PREFIXES=/home/toadfield/Non\ Steam\ Games/Windows\ Games winetricks --gui