Home

Advertisement

Customize

Some small tweaks

One of the things I've been looking at again recently is the initial experience for the desktop. Previously we investigated reducing the number of steps by starting the browser by default; incidentally I have plan for a more refined version of that kicking around that isn't quite ready but should hopefully be soon.


In the context of the Online Desktop work we want to get the user logged in online. However, this requires a network connection. Pretend for a moment you're new to the system. Look at a default desktop, say one from the Phoronix Fedora 9 review, without the obligatory window to 1970 in the middle.


How do you know what to do to get online? If you're using a wired connection then you don't have to know anything; NetworkManager does it automatically. However a much more common case now is wireless networks, and you would have to know to click on the "two computer and broken X" icon in the top right. A simple solution is to have a notification pointing to it:



How to connect to a wireless network


Cooking up the patch for that, I quickly ran into the problem though of notifications pointing to the wrong place. If you've used GNOME for long enough you probably know what I mean; on login sometimes getting a notification in the top left instead of the top right, or it could just be off by 10 pixels. This usually wasn't too bad because the notification was more about the content, but in this case a notification pointing to the wrong thing was actually worse than nothing.


Fixing this right ended up taking me though a number of layers in the stack, from the application displaying the notification, to libnotify, to GtkStatusIcon, to the notification protocol, and finally to the notification daemon, which needed a fairly big patch. However after spending a bit of time this weekend I finally got it to work:



Link to Theora video


Not earth shattering, but it has been a pretty longstanding bug in the desktop. It was actually sort of fun to get back to grubbing around with the low level of Xlib.

Comments

Thanks!

This has annoyed me for a while. Thanks for fixing it!

(Anonymous)

very nice

Legend of the day award goes to... you.

Fix the gnome panel text color issue and you'll have solved the 2 most annoying panel issues
This may be a daft question, but here goes: If it found that the strongest wireless network was unencrypted, is there any reason it shouldn't take that one, or at least just tell you "I note that McDonaldsFreeWifi is strongest so I'm using that"?

(Anonymous)

Agreed!

The bubble should read:

Connected to Wireless Network

Now connected to wireless access point Foo.

[Disconnect] [Choose another network]
--Rob

Re: Agreed!

There is already one for getting connected.

But NetworkManager doesn't autoconnect to a network unless you explicitly click on it.

The notification I was working on is for the case where you haven't connected to a wireless network before.

(Anonymous)

Suggestions

1. Provide a way to cancel the notification so that it does not appear again in the current session.

A problem which my lecturers frequently run into is that when a lecture is held in a room where WiFi availability is intermittent, which is quite common, Windows XP will keep popping up a similar message every time the network becomes available. This is quite distracting during presentations.

2. I think it would be useful if the network connection monitor clearly distinguished between "Connected to a network" and "Connected to a network with Internet access". Only anecdotal evidence I know but the lack of such a distinction in the XP status indicator seems to be a common cause of confusion amongst my non-technical friends. My guess is that Microsoft noticed as well because Vista's network dialog shows a highly simplified topology of the network:

Your Computer <---> Local Network <---> Internet

With indicators to show which links are working or broken.

(Anonymous)

Re: Suggestions

It currently will notify at most once an hour, which seems like it would work in most situations.

A way to turn off the notification completely (and save battery power) is to turn off wireless.

(Anonymous)

Re: Suggestions

I think the idea of teaching new users is a good one. But I think showing the notification only once would be sufficient. Just use the type of notification that does not time out, so that the user has to see it (but only once). Show the notification the first time a wireless net is available an a wired is not.

(Anonymous)

Please no

Colin, I'd rather not have notification balloons at all. I find them intrusive and they break my concentration. My laptop for instance might want to notify me about wireless networks in range but to be honest I could not care less. Every day my Linux desktop seems to be transforming more and more to popup hell like Vista where I can't focus on my real life problems instead of tending computer that has ADHD and craves for constant attention. :-(

I have been playing with the idea of actually removing the notification daemon (chmod -x ....) and the associated libraries completely.

Re: Please no

Remember you will really only see this notification likely at most once from an entirely new acccount; if you upgrade you likely won't see it.

But I know...notification balloons are the new popup dialog. There are definitely programs out there if not abusing them, using them in an unoptimized way. I have a blog entry upcoming about this subject...hopefully another one with patches =)

(Anonymous)

Re: Please no

Thank you.

(Anonymous)

Thanks for your work. That's a great contribution to the gnome desktop :-)

(Anonymous)

Thanks

Nice, that was a really annoying bug.

Does anyone know if a bug I was getting with Rythmbox (among other apps) still exists? It was when it pops up a notification with the song title, and then as soon as the album art was downloaded that was shown in the bubble too, making it bigger and horribly breaking the shape. That really annoyed me too, but I can't test because my music is on another computer at the moment.

(Anonymous)

Thanks!

Really really thanks for fixing the "misplaced bubble" bug. You're my hero!

Advertisement

Customize