Gtkwialog

Under development: PCMCIA, wireless, etc.
Message
Author
wiak
Posts: 2040
Joined: Tue 11 Dec 2007, 05:12
Location: not Bulgaria

#31 Post by wiak »

scsijon wrote:Just saw this so had to ask,

What happens if bash is not the system default? I know at last one that the default is locked to dash (on purpose and not changeable) for the features it includes.
Very sorry, I'm not online much these days and just noticed your post. Gtkwialog is happy no matter what the system default shell is. By default, if system shell is dash, or ash, or whatever, gtkwialog will still use bash for its actions (so bash function-driven programs will work with Gtkwialog that would not work with traditional Gtkdialog if dash, say, was the underlying system shell). However, if you want Gtkwialog to use actual system shell rather than bash you can instruct it to do that; all you need to do is set environment variable GTKWMODE=S (where S means system shell) before using gtkwialog or gtkdialog-based scripts. If that env variable is not set (or is set to GTKWMODE=B) gtkwialog purposively always uses bash no matter the actual underlying system shell.

You can find some more info by running command:

Code: Select all

gtkwialog --help
wiak

wiak
Posts: 2040
Joined: Tue 11 Dec 2007, 05:12
Location: not Bulgaria

#32 Post by wiak »

I must have been drinking too much coffee today. I had promised myself never to bother with Gtkwialog further development since its original development gave me more grief from so many quarters that I decided never again. Anyway, some say never say never so I found myself looking into adding gtk_file_chooser_set_file () function as an alternative 'current' default... Then I thought, "why am I doing this, do I never learn?". Fortunately there are a couple of things I want to add to WeeDog, which are far more important to me personally, and I haven't completely finished some website dev work that indirectly actually brings in some cash that can be used to pay for the coffees so thankfully I have stopped myself in my tracks and resisted getting back into this seriously less-than-encouraging old gtkwialog/gtkdialog nightmare!!! That was close to being a recurring nightmare, which I simply never want involved in again.

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#33 Post by fredx181 »

Hi wiak, you did very nice work, I can imagine that you feel frustrated because of so little positive feedback, but I think it's great that gtkwialog supports bash as well as dash being the default shell, as you probably know it's included in the most recent 'Dog' systems.
I had the plan to make dash default shell in Dog systems (instead previously bash) but ended up by playing safe, many gtkdialog scripts include bashisms and have #!/bin/sh on top, so should be changed to #!/bin/bash and didn't want to risk making mistakes and break things.

I guess the same obstacle goes for Puppy developers, (if they are motivated to change default shell to "dash" (or "ash") anyway).
I wonder btw if gtkwialog works well if "sh" is symlink to "ash", since Puppy doesn't have "dash" included.

Question:
Zigbert wrote here: http://www.murga-linux.com/puppy/viewto ... 45#1041645
You are really close... Your gtkdialog 0.8.3 is basically working, but misses the latest features included in version 0.8.4.
Is gtkwialog as new as 0.8.4, or is it corresponding with 0.8.3 ?

Ok, take it easy (it's beginning summer at your end, isn't it ? :wink: )

Fred

wiak
Posts: 2040
Joined: Tue 11 Dec 2007, 05:12
Location: not Bulgaria

#34 Post by wiak »

fredx181 wrote: Question:
Zigbert wrote here: http://www.murga-linux.com/puppy/viewto ... 45#1041645
You are really close... Your gtkdialog 0.8.3 is basically working, but misses the latest features included in version 0.8.4.
Is gtkwialog as new as 0.8.4, or is it corresponding with 0.8.3 ?

Ok, take it easy (it's beginning summer at your end, isn't it ? :wink: )

Fred
It was forked from the latest gtkdialog on 01mickos site, and I don't think anything added there since (EDIT: yes, just checked configure.ac, was 0.8.4 version I started from). (I even included the aarch64 fix suggested by barryk, which hadn't been done in gtkdialog itself at the time at least). Yes works with ash too. Believe it or not I spent more than a couple of hours looking at the source code last night, but I am no longer fluent with it as I was, not by a long shot, so I elected to 'take it easy' though I do feel some things easy enough to add (well much easier for me back then when I was on top of it all).

wiak

Post Reply