diff --git a/wino b/wino index 7adb483..8a16401 100755 --- a/wino +++ b/wino @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/perl -s # # wino v git # @@ -27,6 +27,9 @@ my $HELP_MSG = "wino v $VERSION\n\tusage: wino --list | [options] [comm "--trick \tRun winetricks with the specified options\n" . "--regedit\t\tRun regedit for the container\n"; + +my $winecmd = 'wine32'; + foreach (@ARGV) { die $HELP_MSG if (/^(--help)|(-h)$/); @@ -67,7 +70,7 @@ my $container_path = "$WINO_DIR/$prefix"; if ($command eq '--config') { # Run winecfg on the container - exec "WINEPREFIX=$container_path winecfg" + exec "WINEPREFIX=$container_path $winecmd winecfg" } elsif ($command eq '--default') { @@ -110,5 +113,5 @@ else $command .= ' ' . join(' ', @ARGV); } - exec "WINEPREFIX=$container_path wine \"$command\""; + exec "WINEPREFIX=$container_path $winecmd \"$command\""; }