Frisbee Network Manager - Beta 2
- Argolance
- Posts: 3767
- Joined: Sun 06 Jan 2008, 22:57
- Location: PORT-BRILLET (Mayenne - France)
- Contact:
Hello rerwin,
Now, xerrs.log is clean!
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.
Cordialement.
Now, xerrs.log is clean!
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.
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.
- ASRI éducation
- Posts: 3197
- Joined: Sat 09 May 2009, 12:10
- Location: France
- Contact:
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).
@ 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).
- Argolance
- Posts: 3767
- Joined: Sun 06 Jan 2008, 22:57
- Location: PORT-BRILLET (Mayenne - France)
- Contact:
Hello,
@rerwin
Should the 2 first buttons of the frame "Other actions" not rather be "gtk-preferences icons"?
Cordialement.
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...ASRI wrote:@ Argolance
A few mods for langue FR : cf. your screenshot.
=> Outilsl WPA_Supplicant
=> Détermniner le délai d'interruption
@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.
- ASRI éducation
- Posts: 3197
- Joined: Sat 09 May 2009, 12:10
- Location: France
- Contact:
Ok, tu me contacteras quand tu auras besoin.Argolance wrote:Hello,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...ASRI wrote:@ Argolance
A few mods for langue FR : cf. your screenshot.
=> Outilsl WPA_Supplicant
=> Détermniner le délai d'interruption
Cordialement.
Right.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.
All it needs actually is change
Code: Select all
var02=`ifconfig`
Code: Select all
var02=`ifconfig | tr '<' '(' | tr '>' ')'`
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] ==
Thanks for reporting that. It is now fixed in version 20120213 back on page 11.Argolance wrote:Nevertheless, one is still missing
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
You are correct. The "<" and ">" characters are actually messing up gtkdialog formatting.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.
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] ==
- Argolance
- Posts: 3767
- Joined: Sun 06 Jan 2008, 22:57
- Location: PORT-BRILLET (Mayenne - France)
- Contact:
Hello,
In a previous post, I asked you if it would be possible to give the preference to a wireless network when several available?
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.
In a previous post, I asked you if it would be possible to give the preference to a wireless network when several available?
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...The preference seems like something I can try to add to frisbee.
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.
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.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)
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
You have convinced me that implementing that is important. That will be my next frisbee task to research and solve.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...
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...
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.
Richard
This works...
HTH
This works...
Code: Select all
echo '<vbox><text><label>"'we will try \<\> this and see'"</label></text></vbox>'|gtkdialog -s
Puppy Linux Blog - contact me for access
But you still need to manipulate the ifconfig etc, output to escape ">" and "<", no?01micko wrote:Richard
This works...HTHCode: Select all
echo '<vbox><text><label>"'we will try \<\> this and see'"</label></text></vbox>'|gtkdialog -s
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] ==
mavrothal
You mean like this?
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
like that is fine but ipinfo is a bit more complex and does not work ie01micko wrote:mavrothal
You mean like this?
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 `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] ==
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..
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
Network tray updated
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
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
Re: Network tray updated
Hi Richardrerwin 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
Tested on both Precise 5.4.90 and Slacko 5.4.0.3 - all seems AOK.
Regards
Peter
LxPup = Puppy + LXDE
Main version used daily: LxPupSc; Assembler of UPups, ScPup & ScPup64, LxPup, LxPupSc & LxPupSc64
Main version used daily: LxPupSc; Assembler of UPups, ScPup & ScPup64, LxPup, LxPupSc & LxPupSc64
- Argolance
- Posts: 3767
- Joined: Sun 06 Jan 2008, 22:57
- Location: PORT-BRILLET (Mayenne - France)
- Contact:
Hello,
Tested on Precise 5.4.3. OK!
Another proposal for tray icons.
Cordialement.
Tested on Precise 5.4.3. OK!
Another proposal for tray icons.
Cordialement.
- Attachments
-
- frisbee_icons.png
- (4.86 KiB) Downloaded 1541 times
Argolance,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?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...The preference seems like something I can try to add to frisbee.
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...
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.
Richard