rpm2xzm bug in Porteus 5.0 rc2 XFCE
Code: Select all
/usr/bin/rpm2xzm: line 100: gtkdialog.py: command not found
is always the last line displayed…
Added in 9 minutes 19 seconds:
that has an easy fix
Code: Select all
root@porteus:/# ln -s /usr/share/porteus/gtkdialog.py /usr/bin/gtkdialog.py
but one issue remains:
the
graphic info window that now pops up at the end of rpm2xzm
disappears in less than a second, so it is impossible to read.
Added in 11 minutes 46 seconds:
The way I can read the code in gtkdialog.py (that is, not that well, I am not really acquainted with gtkdialog) is that timeout is always set to 0 (as in zero, not "Ohh") unless the dialogue is of type Gtk.MessageType.INFO
Code: Select all
if args.timeout:
t = int(args.timeout)
# Make readable dialogs
if t <= 1000 or dt != Gtk.MessageType.INFO:
t = 0
else:
t = 0
I think the meaning to that code is, all messages but Gtk.MessageType.INFO are set to t = 0
But of what Gtk.MessageType is
Code: Select all
gtkdialog.py -p "Success! Module created as $mod" -t 2000
?
When I presume that the default type for gtkdialog.py unless specified is Gtk.MessageType.INFO then the setting of t = 0 would not apply to
Code: Select all
gtkdialog.py -p "Success! Module created as $mod" -t 2000
Still, even when run via terminal (because of debugging) directly, the message disappears almost instantly.
Added in 14 minutes 26 seconds:
At least on my dated 8 Core machine
Code: Select all
gtkdialog.py -p "Success! Module created as $mod" -t 3000
is a much more sane option, then I can actually read the message box.
Added in 16 minutes 4 seconds:
Here my changes:
Code: Select all
root@porteus:/mnt/live/memory/images# diff /opt/porteus-scripts/rpm2xzm ./002-xorg.xzm/opt/porteus-scripts/rpm2xzm
3c3
< #small change by Rava
---
>
100c100
< gtkdialog.py -p "Success! Module created as $mod" -t 3000
---
> gtkdialog.py -p "Success! Module created as $mod" -t 2000
Added in 11 minutes 4 seconds:
And while I was at it, I checked the other *2xzm scripts and also patched deb2xzm:
Code: Select all
root@porteus:/opt/porteus-scripts# diff deb2xzm /mnt/live/memory/images/002-xorg.xzm/opt/porteus-scripts/deb2xzm
3c3
< #small changes by Rava
---
>
108c108
< gtkdialog.py -p "Success! Module created as $mod" -t 3000
---
> gtkdialog.py -p "Success! Module created as $mod" -t 2000
116c116
< gtkdialog.py -p "Success! Module created as $mod" -t 3000
---
> gtkdialog.py -p "Success! Module created as $mod" -t 2000
124c124
< gtkdialog.py -p "Success! Module created as $mod" -t 3000
---
> gtkdialog.py -p "Success! Module created as $mod" -t 2000
132c132
< gtkdialog.py -p "Success! Module created as $mod" -t 3000
---
> gtkdialog.py -p "Success! Module created as $mod" -t 2000