Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 20 Oct 2014, 19:25
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
Winetricks GUI Broken Again -- a Zenity Problem?
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [6 Posts]  
Author Message
mikeslr


Joined: 16 Jun 2008
Posts: 790
Location: Union New Jersey USA

PostPosted: Tue 11 Mar 2014, 14:19    Post subject:  Winetricks GUI Broken Again -- a Zenity Problem?  

Hi All,
There was a time, and a version, of wine during which there was a GUI for winetricks which worked. Since wine 1.4, however, although the GUI can be started, after making a selection and checking the "ok" button, the GUI immediately crashes. Winetricks is a bash-script located in /usr/sbin. I've tested several by substituting various builds from several wine pets, including wine-1.3.13-Lucid52, which I know worked.
yes, starting winetricks from the terminal still works, but the GUI doesn't. While I can't be certain --I don't know enough-- searching the web reveals a problem with winetricks in other Linux distributions that may be related, http://code.google.com/p/winetricks/issues/detail?id=393, and suggests that the root of the problem isn't winetricks, itself, but a change in the code in zenity which provides the GUI for winetricks. In each instance winetricks works, but not the GUI. If the problem in puppy is related to that discussed above, then the solution may be similar to that found here: https://git.gnome.org/browse/zenity/commit/?id=80bc8ce643979fec201c4ebd5cd6405b6310357f

Or not.

Either way, could someone familiar with zenity please look into this problem.

Thanks in advance,

mikesLr

Last edited by mikeslr on Sun 16 Mar 2014, 23:30; edited 1 time in total
Back to top
View user's profile Send private message 
8-bit


Joined: 03 Apr 2007
Posts: 3380
Location: Oregon

PostPosted: Wed 12 Mar 2014, 01:28    Post subject:  

Now you have me thinking!
Since Puppy by default does not include Zenity, is it included in an install of wine?
Back to top
View user's profile Send private message 
mikeslr


Joined: 16 Jun 2008
Posts: 790
Location: Union New Jersey USA

PostPosted: Sun 16 Mar 2014, 23:36    Post subject: Zenity in wine?  

I don't think Zenity is automatically included just by installing a wine pet or loading a wine sfs. Wine tricks is usually part of such install/loading. When it is, it can be initiated via the terminal. But then you have to understand the arguments to type into the terminal to use it. Most recent Puppies have been deployed with zenity built in as it is an alternative to gtk-dialog, yad and bash's own scripting language for creating dialog boxes.

mikesLr
Back to top
View user's profile Send private message 
666philb


Joined: 07 Feb 2010
Posts: 1770
Location: wales

PostPosted: Wed 19 Mar 2014, 02:37    Post subject:  

hi Mikeslr,

I don't think that zenity isn't in puppy, it is just a symlink to yad

_________________
Tahrpup, built with trusty tahr packages http://murga-linux.com/puppy/viewtopic.php?t=93998
Quickpet_Precise, install popular apps quickly http://www.murga-linux.com/puppy/viewtopic.php?t=83642
Back to top
View user's profile Send private message 
solo


Joined: 14 Nov 2013
Posts: 140

PostPosted: Wed 19 Mar 2014, 14:23    Post subject:  

If I may chime in for a moment. I am working on two configurations, both Precise Puppy 5.7.1..
One of those is without Wine, and it only has a symlink called zenity in /usr/bin to yad. The other one has wine-1.3.6-i486-sfs4.sfs loaded, and this configuration has an additional zenity.sh in /root/.wine/drive_c/winetrickstmp/.
And it works.
Back to top
View user's profile Send private message 
solo


Joined: 14 Nov 2013
Posts: 140

PostPosted: Thu 20 Mar 2014, 06:32    Post subject:  

Okay, so, a little more information on this wine-1.3.6-i486-sfs4.sfs, so as to compare it with other versions.
In /usr/sbin/winetricks, this code is relatively at the beginning:

Code:
# Internal variables; these locations are not too important
WINETRICKS_CACHE_WIN="`$XXXPATH -w $WINETRICKS_CACHE | tr '\012' ' ' | sed 's/ $//'`"
WINETRICKS_TMP="$DRIVE_C"/winetrickstmp
WINETRICKS_TMP_WIN='c:\winetrickstmp'
mkdir -p "$WINETRICKS_TMP"


Then, further down, we find this code:

Code:
showmenu()
{
    case $MENU in
    zenity)
        echo "zenity --title 'Winetricks' --text 'Select packages to install' --list --checklist --column '' --column Package --column Description --height 440 --width 600 \\" > "$WINETRICKS_TMP"/zenity.sh
        usage | grep '^ [0-9a-z]' | sed 's/^ \([^ ]*\) *\(.*\)/FALSE "\1" '"'\2'/" | sed 's/$/ \\/' >> "$WINETRICKS_TMP"/zenity.sh
        todo="`sh "$WINETRICKS_TMP"/zenity.sh | tr '|' ' '`"
        ;;
    kdialog)
        packages=`usage | awk '/^ [0-9a-z]/ {print $1}'`
        todo="`kdialog_showmenu "winetricks" "Select a package to install" "Install?" "Package" $packages`"
        ;;
    xmessage)
        packages=`usage | awk '/^ [0-9a-z]/ {print $1}'`
        todo="`xmessage_showmenu "winetricks" "Select a package to install" "Install?" "Package" $packages`"
        ;;
    esac

    if test "$todo"x = x
    then
       exit 0
    fi
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [6 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0593s ][ Queries: 11 (0.0070s) ][ GZIP on ]