Page 9 of 24

Posted: Wed 13 Feb 2013, 14:25
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.

Posted: Wed 13 Feb 2013, 14:43
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).

Posted: Wed 13 Feb 2013, 15:00
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.

Posted: Wed 13 Feb 2013, 15:06
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.

Posted: Wed 13 Feb 2013, 16:37
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

Posted: Thu 14 Feb 2013, 02:25
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

Posted: Thu 14 Feb 2013, 04:45
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

Posted: Thu 14 Feb 2013, 10:49
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.

Posted: Thu 14 Feb 2013, 15:51
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

Integrated set of network tray icons added

Posted: Fri 15 Feb 2013, 00:28
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.

Posted: Fri 15 Feb 2013, 08:56
by 01micko
Richard

This works...

Code: Select all

  echo '<vbox><text><label>"'we will try \<\> this and see'"</label></text></vbox>'|gtkdialog -s
HTH

Posted: Fri 15 Feb 2013, 10:59
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?

Posted: Fri 15 Feb 2013, 11:46
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

Posted: Fri 15 Feb 2013, 12:24
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.

Posted: Fri 15 Feb 2013, 12:53
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..

Network tray updated

Posted: Sat 16 Feb 2013, 03:03
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

Posted: Sat 16 Feb 2013, 17:52
by Argolance
Hello,
... It is noted, downloaded but not tested: I have to go! :cry:
See you tomorrow...

Cordialement.

Re: Network tray updated

Posted: Sat 16 Feb 2013, 18:40
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

Posted: Sun 17 Feb 2013, 17:28
by Argolance
Hello,
Tested on Precise 5.4.3. OK!
Another proposal for tray icons.

Cordialement.

Posted: Mon 18 Feb 2013, 01:50
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