Author |
Message |
peebee

Joined: 21 Sep 2008 Posts: 3668 Location: Worcestershire, UK
|
Posted: Sat 02 May 2015, 07:21 Post subject:
|
|
Hi rerwin
Topic: frisbee interaction with network_tray
Test environment: pristine frugal install of tahrpup-6.0.2 k3.14.20-pae with no updates
Problem: neither the "built-in" version of frisbee (frisbee-1.1-20130415-bashfix) nor frisbee-1.3.4-20150426 updates the network_tray icon or status message when "Disconnect from Network" is chosen.
Behaviour does not change if I also install network_tray-2.9.1-i486
sns in the same test environment behaves correctly.
Let me know if I can pm you any diagnostic information.
Regards
peebee
_________________
LxPup = Puppy + LXDE
|
Back to top
|
|
 |
rerwin

Joined: 24 Aug 2005 Posts: 1922 Location: Maine, USA
|
Posted: Sun 31 May 2015, 19:47 Post subject:
|
|
peebee wrote: | Problem: neither the "built-in" version of frisbee (frisbee-1.1-20130415-bashfix) nor frisbee-1.3.4-20150426 updates the network_tray icon or status message when "Disconnect from Network" is chosen. | Thanks for mentioning that. After a far-to-long delay, I have fixed the problem as network_tray-2.7.5.
Richard
Description |
pet package
|

Download |
Filename |
network_tray-2.7.5-i486.pet |
Filesize |
13.3 KB |
Downloaded |
462 Time(s) |
Description |
Source code tarball
|

Download |
Filename |
network_tray-2.7.5.tar.gz |
Filesize |
17.31 KB |
Downloaded |
416 Time(s) |
|
Back to top
|
|
 |
xanad

Joined: 28 Feb 2014 Posts: 400 Location: 2 locations: MonteRosa Alp and Milano
|
Posted: Sun 25 Oct 2015, 16:32 Post subject:
|
|
Hi rerwin
I noticed that to translate frisbee-1.3.4, lack these changes:
- /usr/local/bin/frisbee
line 916
from
Code: | <label>"Configure PPPoE for DSL"</label> |
to
Code: | <label>"$(gettext 'Configure PPPoE for DSL')"</label> |
line 929
from
Code: | <label>"Configure mobile wireless"</label> |
to
Code: | <label>"$(gettext 'Configure mobile wireless')"</label> |
- /usr/local/frisbee/func
missing:
Code: | export TEXTDOMAIN=frisbee
export OUTPUT_CHARSET=UTF-8
. gettext.sh |
_________________ www.xanad.tk Html5 Parallax
|
Back to top
|
|
 |
rerwin

Joined: 24 Aug 2005 Posts: 1922 Location: Maine, USA
|
Posted: Sat 31 Oct 2015, 15:32 Post subject:
|
|
xanad,
Thank you for catching and reporting those items. I will add them for 1.3.5, but am waiting for any further bugs to be found for it. I have some internal changes to go into it, but they do not change the behavior nor provide any user-perceivable benefits.
However, I do not believe that the addition to func is necessary. That file is always "sourced" (. /usr/local/frisbee/func) so is considered to be part of the sourcing script. The ". gettext.sh" in frisbee and its profile_editor and diag functions should allow eval_gettext to be recognized in all of the supporting functions defined in func.
If you know of a case where the absence of gettext.sh in func itself is causing a problem, please tell me about that.
Richard
|
Back to top
|
|
 |
01micko

Joined: 11 Oct 2008 Posts: 8683 Location: qld
|
Posted: Sat 31 Oct 2015, 16:12 Post subject:
|
|
Hi Richard.
Just a request with the pinstall.sh
I am aware you have a bunch of code in there that runs to detect old frisbee files and correct them for the new frisbee version. Unfortunately, these are running in the woof build system. It does no harm (for me, but perhaps for some will run on their woof host system) but it may be disconcerting for the woof builder to see a bunch of 'sed' errors when the main woof pinstall.sh is run.
TIA
Mick
_________________ Puppy Linux Blog - contact me for access
|
Back to top
|
|
 |
rerwin

Joined: 24 Aug 2005 Posts: 1922 Location: Maine, USA
|
Posted: Sat 31 Oct 2015, 17:57 Post subject:
|
|
01micko,
Thanks for mentioning that impact. I am adding in 8 places:
[ "$(ls root/.packages/frisbee-1.*.files 2>/dev/null)" ] \
&& ahead of each sed...files line. Will that take care of it?
Do you have any further thoughts on improving frisbee?
Richard
|
Back to top
|
|
 |
01micko

Joined: 11 Oct 2008 Posts: 8683 Location: qld
|
Posted: Sat 31 Oct 2015, 18:24 Post subject:
|
|
rerwin wrote: | 01micko,
Thanks for mentioning that impact. I am adding in 8 places:
[ "$(ls root/.packages/frisbee-1.*.files 2>/dev/null)" ] \
&& ahead of each sed...files line. Will that take care of it?
Do you have any further thoughts on improving frisbee?
Richard |
I think that should be sufficient.
I do have some ideas, mostly around notifications. However for some future version; no rush.
My idea is, that it would be nice to have a function that detects if a notification daemon is installed, for example dunst or Xfce4-notifyd and pop the messages using that, of course with the current method as a fallback.
I'm going to work on a similar idea for my mtp program (for mounting android phones) at some point.
Cheers.
_________________ Puppy Linux Blog - contact me for access
|
Back to top
|
|
 |
rerwin

Joined: 24 Aug 2005 Posts: 1922 Location: Maine, USA
|
Posted: Sat 31 Oct 2015, 18:34 Post subject:
|
|
01micko,
I, too, would like the dhcpcd notifications to use whichever method is available in a puppy distro, but am unsure how to go about it. Please let me know how you do it and I will use the concept.
Richard
|
Back to top
|
|
 |
01micko

Joined: 11 Oct 2008 Posts: 8683 Location: qld
|
Posted: Sat 31 Oct 2015, 19:12 Post subject:
|
|
Hi Richard
I just tweaked my function to detect 'dunst', the notification daemon I have installed. Just tested. If I comment dunst then gtkdialog-splash is used. You could get fancy and use other pop ups (like gxmedssage) but I don't think it necessary, however some older pups don't have gtkdialog-splash so maybe it would be useful.
Code: | func_note() {
OPT0=$1
NOTIFY="gtkdialog-splash"
which dunst 2>&1 > /dev/null && NOTIFY="notify-send"
which xfce4-notifyd 2>&1 > /dev/null && NOTIFY="notify-send"
case $NOTIFY in
notify-send*)
case $OPT0 in
l)T=2000
OPT1='--urgency=low' ;;
n)T=2000
OPT1='--urgency=normal' ;;
c)T=5000
OPT1='--urgency=critical' ;;
esac
MSG="$2"
notify-send -t $T "$OPT1" "$MSG" ;;
gtkdialog-splash*)
case $OPT0 in
l)OPT1="yellow" ;;
n)OPT1="green" ;;
c)OPT1="red" ;;
esac
MSG=$2
gtkdialog-splash -bg $OPT1 -close never -timeout 3 -text "$2" ;;
esac
} |
It is a little general but with more options could be well suited.
EG: the '-close' and '-timeout' options could be soft coded, and I'm pretty sure that if you call a function and fork it, its PID will be $! just as if you call another app.
Here is an example of how I use it.
Code: | err_func() {
func_note c "$@"
exit 1
} |
.. as a splash to pop on fatal errors
or as a useful notification
Code: | func_note n "Device mounted successfully." |
Integration with a notification daemon restricts the colors to 3, but that shouldn't be an issue.
For more on notification daemons Arch wiki has a useful page. https://wiki.archlinux.org/index.php/Desktop_notifications
HTH
_________________ Puppy Linux Blog - contact me for access
|
Back to top
|
|
 |
peebee

Joined: 21 Sep 2008 Posts: 3668 Location: Worcestershire, UK
|
Posted: Sun 28 Feb 2016, 17:04 Post subject:
Re: Updated frisbee and dhcpcd packages Subject description: frisbee-1.3.3 & dhcpcd-dropwait-6.7.1 |
|
rerwin wrote: | I have built new frisbee and dhcp packages ....
The dhcpcd-dropwait-6.7.1 is the current release at this time and includes a wait of up to 3 seconds for a lost carrier (connection) to get re-detected.
As always, please report any misbehavior of frisbee or dhcpcd so that I might address it.
Richard |
Hi Richard
I have been using dhcpcd-dropwait-6.7.1 in my LxPup builds for some time succesfully.
Recently, I changed my build process to be 100% woof-ce and this has exposed an issue.
Basically dhcpcd-dropwait-6.7.1 does not include /etc/dhcpcd.conf and as a result when used in a woof-ce build sns fails to set up a wifi connection (Frisbee works ok because it has a local dhcpcd.conf - netwiz also works).
If I copy the /etc/dhcpcd.conf from dhcpcd-5.5.6-dropwait-slacko14.pet then sns works correctly.
Perhaps you could reissue dhcpcd-dropwait-6.7.1 with /etc/dhcpcd.conf included?
Thanks
peebee
_________________
LxPup = Puppy + LXDE
|
Back to top
|
|
 |
rerwin

Joined: 24 Aug 2005 Posts: 1922 Location: Maine, USA
|
Posted: Mon 07 Mar 2016, 21:50 Post subject:
Re: Updated dhcpcd package Subject description: dhcpcd-dropwait-6.7.1 |
|
peebee wrote: | Perhaps you could reissue dhcpcd-dropwait-6.7.1 with /etc/dhcpcd.conf included? | Although it got a bit complicated, I have now done just that. Thank you for reporting the problem.
The attached pet packages were built in tahrpup and tahr64 for adoption by woof-CE. The only additions to the original set (posted here:
http://www.murga-linux.com/puppy/viewtopic.php?p=832546&sid=de2235c59793e4ac49b1f247600679f2#832546)
are the addition of dhcpcd.conf (as dhcpcd.conf.tmp) and some logic in the pinstall script to install dhcpcd.conf only if it is not present, as would be the case in a woof-CE build. That logic deletes the ".tmp" copy if the file is already present or renames the ".tmp" file to remove ".tmp". It then corrects the /root/.packages/dhcpcd....files file as appropriate,
Users of the original versions of dhcpcd-dropwait need not install these new packages, other than to verify they are ready for woof-CE. They have been tested on tahrpup, tahr64 and slacko64.
The attached source tarballs contain updated instructions for building dhcpcd for puppy, in README-puppy.
Richard
 |
Description |
The 64-bit version, intended for woof-CE
|

Download |
Filename |
dhcpcd-6.7.1-dropwait-x86_64.pet |
Filesize |
120.79 KB |
Downloaded |
297 Time(s) |
Description |
The 32-bit version, intended for woof-CE
|

Download |
Filename |
dhcpcd-6.7.1-dropwait-i686.pet |
Filesize |
125.92 KB |
Downloaded |
294 Time(s) |
Description |
Source for dhcpcd with the dropwait addition and a small timeout increase. md5sum: 22a4150d54145cad78aba607056235e1
|

Download |
Filename |
dhcpcd-6.7.1-patched-dropwait.tar.gz |
Filesize |
245.24 KB |
Downloaded |
295 Time(s) |
Description |
Source for dhcpcd without the dropwait feature, but with a small timeout increase. md5sum: a54a13cc7d080d17af6cb2aa12a88de4
|

Download |
Filename |
dhcpcd-6.7.1-patched.tar.gz |
Filesize |
243.32 KB |
Downloaded |
293 Time(s) |
|
Back to top
|
|
 |
peebee

Joined: 21 Sep 2008 Posts: 3668 Location: Worcestershire, UK
|
Posted: Wed 06 Apr 2016, 02:38 Post subject:
|
|
Hi Richard
Do you think you will be making any dropwait versions of more recent dhcpcd?
Slackware-current now ships with dhcpcd-6.8.2
and Arch Linux with dhcpcd-6.10.1
Thanks
peebee
_________________
LxPup = Puppy + LXDE
|
Back to top
|
|
 |
rerwin

Joined: 24 Aug 2005 Posts: 1922 Location: Maine, USA
|
Posted: Sat 09 Apr 2016, 11:56 Post subject:
|
|
peebee,
I expect to, at some point. Right now I have all I can handle (pgprs 2.0 & frisbee 1.4). I want to prepare some of my lupu fixes to go into woof, which could get complicated.
Is there any reason to focus on a particular version of dhcpcd for upgrade? Or anything needed that makes an upgrade urgent?
R
|
Back to top
|
|
 |
zagreb999
Joined: 11 Apr 2014 Posts: 424 Location: Yugoslavija
|
Posted: Sun 10 Apr 2016, 10:54 Post subject:
frisbee for mx15linux |
|
Hi peebbe!
Our friends from MX 15 Linux like to add frisbee to their repository.
Please, do explain to them that frisbee is free , without
licence limitations.
Thanks.
|
Back to top
|
|
 |
peebee

Joined: 21 Sep 2008 Posts: 3668 Location: Worcestershire, UK
|
Posted: Mon 11 Apr 2016, 04:36 Post subject:
|
|
rerwin wrote: | peebee,
I expect to, at some point. Right now I have all I can handle (pgprs 2.0 & frisbee 1.4). I want to prepare some of my lupu fixes to go into woof, which could get complicated.
Is there any reason to focus on a particular version of dhcpcd for upgrade? Or anything needed that makes an upgrade urgent?
R |
Hi Richard
No & no....just noted during building LxPupSc that later versions were available. I'm currently building LxPupSc with the 6.10.1 version from Arch Linux and this seems to be working OK apart from @Marv's troublesome wifi which resets itself every 108secs....but he is happy to use sns or pwf for that.
I'll send you a pm re: woof-ce
@zagreb999 - that would be rerwin's call rather than mine although the original author of frisbee - jemimah - is no longer in contact....anyways we would need contact details - suggest you pm them to rerwin.
Cheers
peebee
_________________
LxPup = Puppy + LXDE
|
Back to top
|
|
 |
|