Page 1 of 1

MX linux on raspberry pi and gtkdialog

Posted: Sat Mar 13, 2021 5:05 pm
by don570

MX linux on raspberry pi

I've been trying out mx linux on my raspberry pi b+ board
using mx linux
Installed mx linux on raspberry pi --->
because it has bluetooth installed as default -- very easy to set up.

https://mxlinux.org/blog/fluxbox-raspbe ... gout-beta/
_____________________________________________________
I noticed the following when using scripts written for puppy linux...

1) Xdialog is not installed

2) gtkdialog scripts need to use the bash shell rather than sh

So I change first line of scripts...
__________________________________________________


Re: MX linux on raspberry pi and gtkdialog

Posted: Sat Mar 13, 2021 5:08 pm
by taersh
don570 wrote: Sat Mar 13, 2021 5:05 pm

2) gtkdialog scripts need to use the bash shell rather than sh

So I change first line of scripts...

In Puppy sh is a symbolic link to bash.
Why not just doing a symbolic link?


Re: MX linux on raspberry pi and gtkdialog

Posted: Mon Mar 15, 2021 12:22 am
by misko_2083
don570 wrote: Sat Mar 13, 2021 5:05 pm

MX linux on raspberry pi

I've been trying out mx linux on my raspberry pi b+ board
using mx linux
Installed mx linux on raspberry pi --->
because it has bluetooth installed as default -- very easy to set up.

https://mxlinux.org/blog/fluxbox-raspbe ... gout-beta/
_____________________________________________________
I noticed the following when using scripts written for puppy linux...

1) Xdialog is not installed

2) gtkdialog scripts need to use the bash shell rather than sh

So I change first line of scripts...
__________________________________________________

1) You can install Xdialog, it has some Gtk+ 1.2 dependancies.
GTK+ 1.2 toolkit is unmaintained for a very long time.
Xdialog has issues on MX linux, it's impossible to double click on a dialog if I remember correctly
Though it worked fine on Debian Jessie though and I used that to see how an old idesktool script works so I can rewrite it to use yad instead of Xdialog
They picked up from there and now they call it mx-idesktool. It's a script that manages icons on idesk.

If you want to try Xdialog on MX, these are the packages:

https://snapshot.debian.org/package/gli ... _1.2.10-20
libglib1.2ldbl_1.2.10-20_amd64.deb 2009
https://snapshot.debian.org/package/gtk ... .2.10-18.1
libgtk1.2-common_1.2.10-18.1_all.deb 2012
libgtk1.2_1.2.10-18.1_amd64.deb 2012
https://snapshot.debian.org/package/xdialog/2.3.1-2/
xdialog_2.3.1-2_amd64.deb 2012

First install libgtk1.2-common then libglib1.2ldbl, libgtk1.2 and finally xdialog.
That's for 64bit. For 32bit install i386 deb packages.

P.S. You will have to recompile them for ARM architecture. :mrgreen:

2) You can install William's fork gtkwialog which is gtkdialog that uses bash by default.


Re: MX linux on raspberry pi and gtkdialog

Posted: Tue Mar 16, 2021 7:18 pm
by don570

YAD , gtkdialog , xmesage is installed by default.


Re: MX linux on raspberry pi and gtkdialog

Posted: Tue Mar 16, 2021 8:52 pm
by wiak
don570 wrote: Tue Mar 16, 2021 7:18 pm

YAD , gtkdialog , xmesage is installed by default.

Well, if it doesn't use bash as default system shell, then it wouldn't be enough to change first line of some/many Puppy bash_gtkdialog scripts to #!/bin/bash. You would indeed need to make /bin/sh itself a symlink to bash, as taersh suggests (i.e. make bash the system shell). That's because traditional gtkdialog itself will always use /bin/sh for its underlying/internal system() calls no matter what the shell script itself uses as the hash bang header. Of course if sh already bash then all will be fine out-of-the-box.