Frisbee Network Manager - Beta 2

Configuration wizards, scanners, remote desktop, etc.
Message
Author
User avatar
Argolance
Posts: 3767
Joined: Sun 06 Jan 2008, 22:57
Location: PORT-BRILLET (Mayenne - France)
Contact:

#166 Post by Argolance »

Hello rerwin,
Now, xerrs.log is clean! :D
The added "gettexted" items seems working too. Nevertheless, one is still missing (Please see attached picture).

About Network-tray improvements: Although they are much better in my opinion, I am not convinced by these xpm new icons... However, may I suggest rounded network pictures are to big?
... But it is a detail: the more important is Frisbee to work fine now and this is so. :wink:

Cordialement.
Attachments
105011_630x431_easyshot.png
(30.63 KiB) Downloaded 797 times
Last edited by Argolance on Wed 13 Feb 2013, 15:11, edited 1 time in total.

User avatar
ASRI éducation
Posts: 3197
Joined: Sat 09 May 2009, 12:10
Location: France
Contact:

#167 Post by ASRI éducation »

At this rate, Frisbee will soon become indispensable Puppy!

@ Argolance
A few mods for langue FR : cf. your screenshot.
=> Outilsl WPA_Supplicant
=> Détermniner le délai d'interruption

@ Rerwin
I believe it is possible to determine the size of the buttons (it will be more attractive if they are all the same size).

User avatar
Argolance
Posts: 3767
Joined: Sun 06 Jan 2008, 22:57
Location: PORT-BRILLET (Mayenne - France)
Contact:

#168 Post by Argolance »

Hello,
ASRI wrote:@ Argolance
A few mods for langue FR : cf. your screenshot.
=> Outilsl WPA_Supplicant
=> Détermniner le délai d'interruption
J'ai mis à jour le fichier po rapidement juste pour test et remarqué ces erreurs en me disant que, dès que la "gettextisation" sera achevée (ça ne saurait tarder!), comme convenu, nous allons ensemble peaufiner cette traduction et y apporter certaines corrections/modifications. Outre les fautes de frappe (et autres!), il me semble avoir vu, pour certaines phrases, sur le Frisbee de la Puplette de Petihar, des tournures plus convaincantes/précises que celles que j'ai trouvées...

@rerwin
Should the 2 first buttons of the frame "Other actions" not rather be "gtk-preferences icons"?

Cordialement.
Last edited by Argolance on Wed 13 Feb 2013, 15:08, edited 2 times in total.

User avatar
ASRI éducation
Posts: 3197
Joined: Sat 09 May 2009, 12:10
Location: France
Contact:

#169 Post by ASRI éducation »

Argolance wrote:Hello,
ASRI wrote:@ Argolance
A few mods for langue FR : cf. your screenshot.
=> Outilsl WPA_Supplicant
=> Détermniner le délai d'interruption
J'ai mis à jour le fichier po rapidement juste pour test et remarqué ces erreurs en me disant que, dès que la "gettextisation" sera achevée (ça ne saurait tarder!), comme convenu, nous allons ensemble peaufiner cette traduction et y apporter certaines corrections/modifications. Outre les fautes de frappe (et autres!), il me semble avoir vu, pour certaines phrases, sur le Frisbee de la Puplette de Petihar, des tournures plus convaincantes/précises que celles que j'ai trouvées...

Cordialement.
Ok, tu me contacteras quand tu auras besoin.

User avatar
mavrothal
Posts: 3096
Joined: Mon 24 Aug 2009, 18:23

#170 Post by mavrothal »

peebee wrote: I think that is because the output from ifconfig or iwconfig (I forget which) is formated differently on Archpup and ipinfo can't parse it correctly.
Right.
All it needs actually is change

Code: Select all

var02=`ifconfig`
to

Code: Select all

var02=`ifconfig | tr '<' '(' | tr '>' ')'` 
in ipinfo.
Thx
== [url=http://www.catb.org/esr/faqs/smart-questions.html]Here is how to solve your[/url] [url=https://www.chiark.greenend.org.uk/~sgtatham/bugs.html]Linux problems fast[/url] ==

User avatar
rerwin
Posts: 2017
Joined: Wed 24 Aug 2005, 22:50
Location: Maine, USA

#171 Post by rerwin »

Argolance wrote:Nevertheless, one is still missing
Thanks for reporting that. It is now fixed in version 20120213 back on page 11.

mavrothal & peebee, I think the ipinfo problem is caused by the output of ifconfig and the other assignments not being specified as strings, so they could be parsed as commands. The "<" and ">" characters are probably being treated as redirection. Seems like a security and integrity hazard, to me. I think all of those "var..." assignments should be double-quoted.

As for the icon size, we can change the "circle" icons, but maybe not in time for the beta. I will experiment a little, but am open to other ideas for the xml 24x24 type.

ASRI éducation, re "I believe it is possible to determine the size of the buttons (it will be more attractive if they are all the same size)." I tried that initially but found that they seemed to merge into a block, making it more difficult to find the one you need. The different-sized buttons make it easier to spot a uniquely sized button, instead of having to look for the "middle" button in a block of them.
Richard

User avatar
mavrothal
Posts: 3096
Joined: Mon 24 Aug 2009, 18:23

#172 Post by mavrothal »

rerwin wrote:mavrothal & peebee, I think the ipinfo problem is caused by the output of ifconfig and the other assignments not being specified as strings, so they could be parsed as commands. The "<" and ">" characters are probably being treated as redirection. Seems like a security and integrity hazard, to me. I think all of those "var..." assignments should be double-quoted.
You are correct. The "<" and ">" characters are actually messing up gtkdialog formatting.
Unfortunately is not very simple (for me) to double quote a variable that is the concatenation of other variables which are the output of the shell commands (var12 for example)
Till someone comes up with this solution the patch below works fine for this porpuse

Code: Select all

--- a/usr/sbin/ipinfo	2012-03-23 14:55:52.000000000 +0200
+++ b/usr/sbin/ipinfo	2013-02-14 06:28:53.000000000 +0200
@@ -23,7 +23,7 @@
 	var0="$(gettext 'External IP:') ""$var0"
 	# tab 1 - interfaces
 	var01=`echo $(gettext 'Hostname:') "$HOSTNAME"`
-	var02=`ifconfig`
+	var02=`ifconfig | tr '>' ')' | tr '<' '(' `
 	# tab 3 - routing
 	var03="`route -n | sed -e 's%Kernel IP routing table%%'`"
 	# tab 2
@@ -42,7 +42,7 @@
 		var11=`iwlist rate 2>&1 | grep Current`
 		# concatenate wireless data for display
 		var12="$var06""$nl""$var07""$nl""$var08""$nl""$var09""$nl""$var10""$nl""$var11""$nl"
-		var12=`echo "$var12" | sed '/^$/d' ` 
+		var12=`echo "$var12" | tr '>' ')' | tr '<' '(' |sed '/^$/d' ` 
 	else
 		var12="<b>$(gettext 'No wireless extensions detected.')</b>"
 	fi
== [url=http://www.catb.org/esr/faqs/smart-questions.html]Here is how to solve your[/url] [url=https://www.chiark.greenend.org.uk/~sgtatham/bugs.html]Linux problems fast[/url] ==

User avatar
Argolance
Posts: 3767
Joined: Sun 06 Jan 2008, 22:57
Location: PORT-BRILLET (Mayenne - France)
Contact:

#173 Post by Argolance »

Hello,
In a previous post, I asked you if it would be possible to give the preference to a wireless network when several available?
The preference seems like something I can try to add to frisbee.
As simple user, I really think it is important: every time I start my laptop (this may happen several times a day, because of tests I am doing with!) Frisbee automatically connect to an available public network. The tray icon let me think all is ok but while running "Seamonkey", for example, I am immediately redirected to an inscription web page to create an account to use this public network (... and some Windoze user at home to promptly say "aahhh, LINUX is crappy"!)! Then I close Seamonkey, run Frisbee to get a connection to my private network, and so on... :shock:
Frisbee is a little bit more convenient for setting/configuring a wireless network than the Dougal's GUI, but this one has not this inconvenience...

Cordialement.

User avatar
rerwin
Posts: 2017
Joined: Wed 24 Aug 2005, 22:50
Location: Maine, USA

#174 Post by rerwin »

mavrothal wrote:The "<" and ">" characters are actually messing up gtkdialog formatting.
Unfortunately is not very simple (for me) to double quote a variable that is the concatenation of other variables which are the output of the shell commands (var12 for example)
I see what you mean. I tried quoting all of the "`...`" instances, which did not harm anything; but it did not solve the problem. Gtkdialog simply will not accept < and > in label text strings. Maybe there is -- or should be -- a way to override that intolerance. But I do not know what it is. I tried several levels of escapes (\), which did not fix it, either.

The idea of using externally generated text in a label seems dangerous, to me. Substituting for those characters does work around that problem.
Richard

User avatar
rerwin
Posts: 2017
Joined: Wed 24 Aug 2005, 22:50
Location: Maine, USA

Integrated set of network tray icons added

#175 Post by rerwin »

Argolance wrote:I really think it is important: every time I start my laptop (this may happen several times a day, because of tests I am doing with!) Frisbee automatically connect to an available public network. The tray icon let me think all is ok but while running "Seamonkey", for example, I am immediately redirected to an inscription web page to create an account to use this public network (... and some Windoze user at home to promptly say "aahhh, LINUX is crappy"!)! Then I close Seamonkey, run Frisbee to get a connection to my private network, and so on... :shock:
Frisbee is a little bit more convenient for setting/configuring a wireless network than the Dougal's GUI, but this one has not this inconvenience...
You have convinced me that implementing that is important. That will be my next frisbee task to research and solve.

Back to the icon debate: I used my new-found "expertise" in making .xpm icons to adapt the current puppy network_tray icons to create the extended set for the dialup and wireless connections. I posted the updated network_tray package on page 11. I am open to improvements to make for those icons, but want to keep the "puppy look" of them.

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#176 Post by 01micko »

Richard

This works...

Code: Select all

  echo '<vbox><text><label>"'we will try \<\> this and see'"</label></text></vbox>'|gtkdialog -s
HTH
Puppy Linux Blog - contact me for access

User avatar
mavrothal
Posts: 3096
Joined: Mon 24 Aug 2009, 18:23

#177 Post by mavrothal »

01micko wrote:Richard

This works...

Code: Select all

  echo '<vbox><text><label>"'we will try \<\> this and see'"</label></text></vbox>'|gtkdialog -s
HTH
But you still need to manipulate the ifconfig etc, output to escape ">" and "<", no?
Is there any gtkdialog string formatting to pass spacial characters in a string as text without individual character escaping/formatting etc?
== [url=http://www.catb.org/esr/faqs/smart-questions.html]Here is how to solve your[/url] [url=https://www.chiark.greenend.org.uk/~sgtatham/bugs.html]Linux problems fast[/url] ==

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#178 Post by 01micko »

mavrothal

You mean like this?

Code: Select all

#!/bin/sh

export XX="<this statement>
something else
<some more stuff>"

export gui='<vbox>
  <text><input>echo "$XX"</input></text>
</vbox>'
gtkdialog -p gui
Puppy Linux Blog - contact me for access

User avatar
mavrothal
Posts: 3096
Joined: Mon 24 Aug 2009, 18:23

#179 Post by mavrothal »

01micko wrote:mavrothal

You mean like this?
like that is fine but ipinfo is a bit more complex and does not work ie

Code: Select all

var12="$var06""$nl""$var07""$nl""$var08""$nl""$var09""$nl""$var10""$nl""$var11""$nl"
var12=`echo "$var12" | sed '/^$/d' ` 
[........]
<vbox>
					<text use-markup="true" wrap="false">
						<label>"<tt><b>${nl}$(gettext 'Wireless configuration:')${nl}</b>${nl}${var12}</tt>"</label> 
					</text>
</vbox>
so a < or > in var[06-11] is giving the problem.
So `echo "$var12" ' and variants of it will not do it.
== [url=http://www.catb.org/esr/faqs/smart-questions.html]Here is how to solve your[/url] [url=https://www.chiark.greenend.org.uk/~sgtatham/bugs.html]Linux problems fast[/url] ==

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#180 Post by 01micko »

May as well rewrite the whole thing using <input> tag, I'm pretty sure it supports mark up. I'm sure one of my proggy's use it with mark up.

At the time vovchik wrote the script I think the <input> tag for <text> widget was either non-existent or broken.

Should just echo the lot to a temp file and cat the file I suppose.

EDIT: maybe getting a bit off topic. I wonder if vovchik made a thread about ipinfo ? Maybe..
Puppy Linux Blog - contact me for access

User avatar
rerwin
Posts: 2017
Joined: Wed 24 Aug 2005, 22:50
Location: Maine, USA

Network tray updated

#181 Post by rerwin »

Argolance & other testers,
Note that I uploaded another version of the network_tray package on page 11. It has "integrated" icons and a script to switch between analog and wireless dialup icons.
Richard

User avatar
Argolance
Posts: 3767
Joined: Sun 06 Jan 2008, 22:57
Location: PORT-BRILLET (Mayenne - France)
Contact:

#182 Post by Argolance »

Hello,
... It is noted, downloaded but not tested: I have to go! :cry:
See you tomorrow...

Cordialement.

User avatar
peebee
Posts: 4370
Joined: Sun 21 Sep 2008, 12:31
Location: Worcestershire, UK
Contact:

Re: Network tray updated

#183 Post by peebee »

rerwin wrote:Argolance & other testers,
Note that I uploaded another version of the network_tray package on page 11. It has "integrated" icons and a script to switch between analog and wireless dialup icons.
Richard
Hi Richard
Tested on both Precise 5.4.90 and Slacko 5.4.0.3 - all seems AOK.
Regards
Peter
ImageLxPup = Puppy + LXDE
Main version used daily: LxPupSc; Assembler of UPups, ScPup & ScPup64, LxPup, LxPupSc & LxPupSc64

User avatar
Argolance
Posts: 3767
Joined: Sun 06 Jan 2008, 22:57
Location: PORT-BRILLET (Mayenne - France)
Contact:

#184 Post by Argolance »

Hello,
Tested on Precise 5.4.3. OK!
Another proposal for tray icons.

Cordialement.
Attachments
frisbee_icons.png
(4.86 KiB) Downloaded 1541 times

User avatar
rerwin
Posts: 2017
Joined: Wed 24 Aug 2005, 22:50
Location: Maine, USA

#185 Post by rerwin »

Argolance wrote:In a previous post, I asked you if it would be possible to give the preference to a wireless network when several available?
The preference seems like something I can try to add to frisbee.
As simple user, I really think it is important: every time I start my laptop (this may happen several times a day, because of tests I am doing with!) Frisbee automatically connect to an available public network. The tray icon let me think all is ok but while running "Seamonkey", for example, I am immediately redirected to an inscription web page to create an account to use this public network (... and some Windoze user at home to promptly say "aahhh, LINUX is crappy"!)! Then I close Seamonkey, run Frisbee to get a connection to my private network, and so on... :shock:
Frisbee is a little bit more convenient for setting/configuring a wireless network than the Dougal's GUI, but this one has not this inconvenience...
Argolance,
I have been researching this and now understand (I think) how the choice is made about connecting to a network. When there are no network profiles saved, the networks found are given priority 0. When a profile is saved, it is given a priority greater than zero and greater than any already saved. Only when multiple networks of the same (0) priority are discovered are the strength values considered -- but only for those of the same priority. So there are several ways to control the automatic choice of network.
  • 1. Save profiles for only those networks you want to connect to, leaving the others at priority 0.

    2. If the less desired network is already in a saved profile, delete that profile.

    3. If you sometimes need the "stronger" public network, save its profile before saving the preferred network's profile.

    4. Adjust the relative priorities of the profiles so that the preferred networks have a higher (greater value) priority than the competitors in the same geographic area.
If none of these work for you, please PM me a pdiag file from frisbee's Diagnose dialog. If they work, maybe we should mention the priority scheme in a tool-tip or elsewhere. Thanks for your concern about this issue.
Richard

Post Reply