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 Thu 09 Jul 2020, 14:45
All times are UTC - 4
 Forum index » Advanced Topics » Cutting edge
Gtkwialog
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 3 of 3 [34 Posts]   Goto page: Previous 1, 2, 3
Author Message
wiak

Joined: 11 Dec 2007
Posts: 2073
Location: not Bulgaria

PostPosted: Wed 02 Jan 2019, 00:06    Post subject:  

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:
gtkwialog --help


wiak
Back to top
View user's profile Send private message 
wiak

Joined: 11 Dec 2007
Posts: 2073
Location: not Bulgaria

PostPosted: Sat 23 Nov 2019, 10:56    Post subject:  

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.
_________________
WeeDogLinux forum: https://weedoglinux.rockedge.org/viewforum.php?f=4
Tiny Linux Blog: https://www.tinylinux.info/
Check Firmware: http://murga-linux.com/puppy/viewtopic.php?p=1022797
Back to top
View user's profile Send private message 
fredx181


Joined: 11 Dec 2013
Posts: 4476
Location: holland

PostPosted: Sat 23 Nov 2019, 14:10    Post subject:  

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/viewtopic.php?p=1041645#1041645
Quote:
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

_________________
Dog Linux website
Tinylinux blog by wiak
Back to top
View user's profile Send private message 
wiak

Joined: 11 Dec 2007
Posts: 2073
Location: not Bulgaria

PostPosted: Sat 23 Nov 2019, 22:46    Post subject:  

fredx181 wrote:

Question:
Zigbert wrote here: http://www.murga-linux.com/puppy/viewtopic.php?p=1041645#1041645
Quote:
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

_________________
WeeDogLinux forum: https://weedoglinux.rockedge.org/viewforum.php?f=4
Tiny Linux Blog: https://www.tinylinux.info/
Check Firmware: http://murga-linux.com/puppy/viewtopic.php?p=1022797
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 3 of 3 [34 Posts]   Goto page: Previous 1, 2, 3
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Cutting edge
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.0553s ][ Queries: 13 (0.0245s) ][ GZIP on ]