Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Winetricks does not update #77

Open
rijnhard opened this issue Jun 17, 2016 · 14 comments
Open

Winetricks does not update #77

rijnhard opened this issue Jun 17, 2016 · 14 comments
Assignees
Labels
Milestone

Comments

@rijnhard
Copy link

@rijnhard rijnhard commented Jun 17, 2016

Hi

On:
Linux mint 17.3 (ubuntu 14.04)
QtWine 1.3 from technik ppa

when i try to update winetricks (inside qt4wine) I get this in terminal:

/bin/bash: /bin/sh -c "/usr/bin/wget http://kegel.com/wine/winetricks -O /home/rijnhard/.config/q4wine/winetricks && /bin/chmod +x /home/rijnhard/.config/q4wine/winetricks": No such file or directory

but if I run the commands manually in terminal it works, sort of.

# does not work
$ ./home/rijnhard/.config/q4wine/winetricks
bash: cd: /home/rijnhard/.config/q4wine/winetricks: Not a directory

# works
$ cd /home/rijnhard/.config/q4wine/
$ ./winetricks
@brezerk
Copy link
Owner

@brezerk brezerk commented Jun 18, 2016

Thanks for the bug report.

Can you show output of this command please:

ls -al /home/rijnhard/.config/q4wine/winetricks

Thanks.
On Jun 17, 2016 05:02, "Rijnhard Hessel" notifications@github.com wrote:

Hi

On:
Linux mint 17.3 (ubuntu 14.04)
QtWine 1.3 from technik ppa

when i try to update winetricks I get this in terminal:

/bin/bash: /bin/sh -c "/usr/bin/wget http://kegel.com/wine/winetricks -O /home/rijnhard/.config/q4wine/winetricks && /bin/chmod +x /home/rijnhard/.config/q4wine/winetricks": No such file or directory

but if I run the commands manually in terminal it works, sort of.

does not work

$ ./home/rijnhard/.config/q4wine/winetricks
bash: cd: /home/rijnhard/.config/q4wine/winetricks: Not a directory

works

$ cd /home/rijnhard/.config/q4wine/
$ ./winetricks


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#77, or mute the thread
https://github.com/notifications/unsubscribe/AABdDAejnMwK62AYv2Z6L8a8vf-j5qTEks5qMmKqgaJpZM4I4Ke6
.

@rijnhard
Copy link
Author

@rijnhard rijnhard commented Jun 20, 2016

Ok so i changed that.
it wasn't downloading so I downloaded it manually and overwrote the original.
So I'm not sure if that was a problem. but the manual download I did was owned by root, which I changed to my user.

unfortunately I can't confirm the issue. but I will try to uninstall q4wine and reinstall it and do before and after

@brezerk
Copy link
Owner

@brezerk brezerk commented Jun 28, 2016

Not sure too. The only thing I can do here: to add some checks to produce much more user-friendly error.

@brezerk brezerk self-assigned this Jul 25, 2016
@brezerk
Copy link
Owner

@brezerk brezerk commented Jul 26, 2016

This commit c7cf08f adds few checks to produce more user-friendly messages if designated winetricks file or folder has wrong permissions.

Thanks for reporting.

Reopen if needed.

@brezerk brezerk closed this Jul 26, 2016
@brezerk brezerk added this to the 1.3.2 milestone Jul 26, 2016
@rijnhard
Copy link
Author

@rijnhard rijnhard commented Feb 6, 2020

this has come back

/bin/bash: env WINEPREFIX='/home/rijnhard/.local/share/wineprefixes/Win10x86-stable' WINE='/opt/wine-stable/bin/wine' WINEDLLPATH='/opt/wine-stable/lib/wine' WINELOADER='/opt/wine-stable/bin/wine' WINESERVER='/opt/wine-stable/bin/wineserver' WINEARCH='win32' /bin/sh -c "/home/rijnhard/.config/q4wine/winetricks --no-isolate dotnet48": No such file or directory

the funny thing is the directory exists and is owned by my user, I manually installed the winetricks script again, but now i cant install any dll's

@rijnhard
Copy link
Author

@rijnhard rijnhard commented Feb 6, 2020

again if I run it manually it works

@brezerk
Copy link
Owner

@brezerk brezerk commented Feb 6, 2020

hm...
it looks like for some reasons your bash is taking ENTIRE line as a single command.
i.e.:

brezerk@himera ~ $ 'make all good'
bash: make all good: command not found

instead of running make and sullying all good as an arguments:

brezerk@himera ~ $ make all good 
make: *** No rule to make target 'all'.  Stop.

this makes me think that it is something to do with terminal program on it's arguments you specified in q4wine settings.

can you send me yor ~/.config/q4wine/default.conf to my mail?

@brezerk brezerk reopened this Feb 8, 2020
@brezerk
Copy link
Owner

@brezerk brezerk commented Feb 8, 2020

yeah

you are using bash as gui terminal :) this is a bit unexpected. but anyway, let me see i can proved any workaround:

 71 [console]                                                                                                                                                                                                                               
 72 args=                                                                                                                                                                                                                                   
 73 bin=/bin/bash  
@brezerk
Copy link
Owner

@brezerk brezerk commented Feb 8, 2020

on the other hand, it does not makes any seance to use bash as you won't be able to see the winetricks output b/c it would be running in background.

can you try to use xterm instead?

@rijnhard
Copy link
Author

@rijnhard rijnhard commented Feb 10, 2020

@brezerk did you mean to set the terminal as xterm?

this happens

/usr/bin/xterm: No absolute path found for shell: env WINEPREFIX='/home/rijnhard/.local/share/wineprefixes/Win10x86-stable' WINE='/opt/wine-stable/bin/wine' WINEDLLPATH='/opt/wine-stable/lib/wine' WINELOADER='/opt/wine-stable/bin/wine-preloader' WINESERVER='/opt/wine-stable/bin/wineserver' WINEARCH='win32' /bin/sh -c "/home/rijnhard/.config/q4wine/winetricks --no-isolate allcodecs"
@brezerk
Copy link
Owner

@brezerk brezerk commented Feb 11, 2020

@rijnhard yes, you need to install it.
also, you need to supply -c as an option:

       -c        If the -c option is present, then commands are read from the first non-option argument command_string.  If there are arguments after the command_string, the first argument is assigned to $0 and any remaining argu‐
                 ments are assigned to the positional parameters.  The assignment to $0 sets the name of the shell, which is used in warning and error messages.

btw: you may try to use this option for bash too.

@rijnhard
Copy link
Author

@rijnhard rijnhard commented Feb 12, 2020

so my xterm no longer has a -c option. and doing it with bash lead to the output being hidden.

Playing around this is what worked, but this should REALLY be documented somewhere, if you can tell me where I won't mind adding it (if I have rights).

Screenshot from 2020-02-12 08-05-08

It should either have xterm as a dependency and be preconfigured for it, or detect the configured shell and use that with presets.

@brezerk
Copy link
Owner

@brezerk brezerk commented Feb 19, 2020

hi @rijnhard

i guess you don't need extra '/bin/bash -c' in arguments.

As for documentation... It looks like it is a bit outdated: https://q4wine.brezblock.org.ua/documentation/en_us/11-settings.html#userutils

Any suggestions on what would be the best description for this fields?

Thanks

@kkomara
Copy link

@kkomara kkomara commented Feb 22, 2020

I had the same problem in my Ubuntu 18.04 LTS. I use "/usr/bin/gnome-terminal" for my console and I could not get Winetricks to work properly. After I dug around and read these set of posts I figured it out. In the version of gnome-terminal I am using allot of the older commands are depricated. To get it to work on my system I had to add "--command " to the arguments. Not there is a blank space after the d in command. This if VERY important and took quite a bit of trail and error to find. Good Luck !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.