brezerk / q4wine

Q4Wine is a Qt GUI for W.I.N.E. It will help you manage wine prefixes and installed applications.
http://q4wine.brezblock.org.ua/
GNU General Public License v3.0
207 stars 40 forks source link

Using Winetricks in q4wine gives an error #121

Closed melvincv closed 6 years ago

melvincv commented 6 years ago

/bin/bash: env WINEPREFIX='/home/melvin/.local/share/wineprefixes/office2010' WINE='/opt/wine-devel/bin/wine' WINEDLLPATH='/opt/wine-devel/lib' WINELOADER='/opt/wine-devel/bin/wine' WINESERVER='/opt/wine-devel/bin/wineserver' WINEARCH='win32' /bin/sh -c "/home/melvin/bin/winetricks --no-isolate fontsmooth=rgb": No such file or directory

melvincv commented 6 years ago

q4wine v1.3.7, compiled from source on Linux Mint

melvin@melvin-pc ~ $ inxi -b
System:    Host: melvin-pc Kernel: 4.13.0-26-generic x86_64 (64 bit) Desktop: Cinnamon 3.6.7
           Distro: Linux Mint 18.3 Sylvia
Machine:   Mobo: ASUSTeK model: M4A88T-M LE v: Rev X.0x Bios: American Megatrends v: 0311 date: 08/08/2012
CPU:       Quad core AMD Phenom II X4 960T (-MCP-) speed/max: 800/3000 MHz
Graphics:  Card: Advanced Micro Devices [AMD/ATI] Cape Verde XT [Radeon HD 7770/8760 / R7 250X]
           Display Server: X.Org 1.18.4 driver: radeon Resolution: 1920x1080@60.00hz
           GLX Renderer: AMD CAPE VERDE (DRM 2.50.0 / 4.13.0-26-generic, LLVM 5.0.0) GLX Version: 3.0 Mesa 17.2.8
Network:   Card-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller driver: r8169
           Card-2: Realtek RTL8188EUS 802.11n Wireless Network Adapter driver: r8188eu
Drives:    HDD Total Size: 1500.3GB (5.3% used)
Info:      Processes: 217 Uptime: 4:15 Memory: 2359.3/7976.9MB Client: Shell (bash) inxi: 2.2.35 
melvin@melvin-pc ~ $ ll /home/melvin/bin/winetricks
-rwxrwxr-x 1 melvin melvin 723360 Apr 24 21:24 /home/melvin/bin/winetricks*
brezerk commented 6 years ago

hi @melvincv

Can you show output for this commands please?

# which env
# which sh
# cat ~/.config/q4wine/default.conf  | grep -A3 console
melvincv commented 6 years ago
melvin@melvin-pc ~ $ which env
/usr/bin/env
melvin@melvin-pc ~ $ which sh
/bin/sh
melvin@melvin-pc ~ $ cat ~/.config/q4wine/default.conf  | grep -A3 console
[console]
args=
bin=/bin/bash
brezerk commented 6 years ago

hi @melvincv

[console]
args=
bin=/bin/bash

please consider using graphical console application like xterm or gnome/kde terminals instead. if you really would like to use bash you may wish to add -c argument to make it work:

-c string

If the -c option is present, then commands are read from string. If there are arguments after the string, they are assigned to the positional parameters, starting with $0. 

you can change this via q4wine settings -> General -> Utils.

melvincv commented 6 years ago

Yes, it works now. I just added the -c argument. Thanks!

On Mon, May 14, 2018 at 4:30 PM, Oleksii S. Malakhov < notifications@github.com> wrote:

hi @melvincv https://github.com/melvincv

[console] args= bin=/bin/bash

please consider using graphical console application like xterm or gnome/kde terminals instead. if you really would like to use bash you may wish to add -c argument to make it work:

-c string

If the -c option is present, then commands are read from string. If there are arguments after the string, they are assigned to the positional parameters, starting with $0.

you can change this via q4wine settings -> General -> Utils.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/brezerk/q4wine/issues/121#issuecomment-388778517, or mute the thread https://github.com/notifications/unsubscribe-auth/AS4W99gxvXd32C5CPeRWs6EIwC3iifUWks5tyWPGgaJpZM4T8scH .

-- Melvin C. Varghese Director BrahmaNet IT Solutions http://www.brahmanet.com/

DanielRios549 commented 5 years ago

@brezerk Using the -c argument works for me as well. The problem is that, when using the GUI only, there is no pop up to show me that it is downloading, it only shows the progress in terminal and it is not canceled after I close Q4wine, is there an option to use some GUI (maybe a terminal emulator), for show me the current state of download progress and an option to cancel and kill all instances of winetricks?

brezerk commented 5 years ago

hi @DanielRios549 sorry for late response.

If I got you correctly: you should have GUI Terminal emulator (like xterm, konsole or gnome-terminal) set in Q4Wine settings: General -> Console.

DanielRios549 commented 5 years ago

@brezerk Thanks man, I was using /bin/sh there, but now I changed for /usr/bin/tilix, the terminal opens but nothing happens, Do I need an argument for that?

brezerk commented 5 years ago

Yeah. Take a look into tilix manual. You need "execute command" option. Usually it is -c. You may need "no close" option also. In case if you would like to keep tilix window runnyng after the command execution. (May not be avaliable)

сб, 2 мар. 2019 г., 1:48 ДП Daniel Rios notifications@github.com:

@brezerk https://github.com/brezerk Thanks man, I was using /bin/sh there, but now I changed for /usr/bin/tilix, the terminal opens but nothing happens, Do I need an argument for that?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/brezerk/q4wine/issues/121#issuecomment-468851754, or mute the thread https://github.com/notifications/unsubscribe-auth/AABdDOPKMsnHi5wJ18AHdgwH7vLYDg-eks5vSbxkgaJpZM4T8scH .

DanielRios549 commented 5 years ago

@brezerk Thanks, the execute parameter tilix is "-e", not "-c"