This is the "ideas" web page for the GnomePanelEnhancements project. This project has been accepted as part of Google's Summer of Code program ; the student is ManuCornet.
This project was at first a bounty, described here.
Most of my work is already available in the Ubuntu Breezy distribution. All my patches are available on
Many thanks to
I would also like to thank my "mentor", SebastienBacher, who was always there and available to answer my questions and provide me with immediately useful help, and Vincent Untz who also gave me lots of very wise advice. I really enjoyed very much working on this project, and I want to say that I plan to keep on working with Ubuntu and GNOME, and as part as the Ubuntu ArtTeam as well, when I get some spare time, at least during my PhD (which should begin this september).
The "Add to panel" dialog
The "Add to panel" is not very handy : one sometimes needs to scroll down a long list of applets to get what he wants. The idea would be to make it "two-dimensionnal", with a few categories, and applets in them.
Here's what the "Add to Panel" dialog looked like until now (sorry for the French entries):
All right, that was a hard one, but it's now finished.
The new dialog (now available in Breezy) has the following features :
- Applets are listed on a 2D canvas.
- The dialog is designed to be easy to use in lower resolutions, down to 800x600.
- A search bar has been added ; displayed applets are updated in real time while you type.
- The selected applet's description appears below the applet list.
- You can navigate in the canvas with the keyboard (even in search mode, when most applets are hidden).
- You can add an applet by dragging-and-dropping it, or juste double-clicking it.
All the common applets have been patched to have a category, and all the categories have been rethought (not yet shown on the captures) : Launchers & Menus / Accessories / Desktop & Windows / System & Hardware / Utilities.
- This new dialog uses less space, displaying more applets in a smaller window.
So here's how it looks right now :
And a gif to show how the display is updated "as you type" :
Nice idea, but a major thing that needs to be merged is the custom application launcher/launcher thing. What about integrating the gnome-app chooser thing? CoreyBurger
GNOME menus and sudo
The idea here would be to know, for each menu item, whether the user needs to be sudoer (eg Synaptic) or not. If it does and the user is not sudoer, then this item does not need to be shown in the menu.
Desktop entries that need root privileges should have a "X-GNOME-RootRequired=yes" field in the desktop entry spec (other values for this field can be "no" and "optional", although only the "yes" value actually means something for now). Further discussions will decide how to actually add this to the specs.
Quick and efficient solution for Breezy
I have already coded a quick and easy solution for Ubuntu : since all the sudoers are in the "admin" group, the program only needs to check whether the user belongs to this group. However, this will only work with Ubuntu (but is retro-compatible for breezy, hoary, warty, and previous versions).
More general, but harder, solution
The process needs to be setuid root. It could simply lookup the /etc/sudoers file, but its syntax can be very complex, and I would probably need to import a large part of the code from "sudo", which is also very long and complex.
I have contacted the people from sudo, asking them if I could add for them a function to sudo, letting us use (for instance) the -t option (for "test") like this :
$ sudo -t command user is allowed to run command
They answered that this already existed (-l option, followed by a command name), but it requires the user to type his password (which is out of the question for us), unless the sudoers file has a line like "Defaults listpw=never". We had a discussion as to whether we could change the default to this "never" value, but they seem to believe this could be a security issue (and I tend to trust them about this !).
- An environment variable called USER_IS_ADMIN could be set by any way the distribution sees fit. Ubuntu only needs to check whether the user belongs to the admin group.
Discussion are right now taking place in order to indeed add the "RootRequired=yes|no|optional" :
- The value is "yes" : if USER_IS_ADMIN is true, show the menu item and automatically use elevated privileges by prepending the right command (eg for Ubuntu : gksudo) to the "Exec" key. Otherwise, hide the menu item.
- The value is "no" : do not hide the menu item, do not change the Exec key.
- The value is "optional" : do not hide the menu item. If USER_IS_ADMIN is true, use elevated privilege. Otherwise, don't change the Exec key.
If USER_IS_ADMIN is not set or the RootRequired key doesn't exist in the entry, assume the value is "no".
Doing this will allow the following :
- Non-admin users don't see all these programs for which they don't have the authorization anyway.
- Elevated privileges are automatically used when needed.
- Some programs, for example package management tools, can be run without elevated privileges (eg list installed packages, search for a particular package), but still need them for more control (eg actually install new packages). By using the "optional" value, non-admin users can still perform non-admin actions, while admin users can use the full capabilities of the program.
Discussing specifications takes (a lot of) time, so this "harder and more general way" is not yet functionnal, but everything in the code is ready for it. And the solution local to Ubuntu is already committed and works fine (so basically the problem is already solved, for Ubuntu only).
Adding categories to applets
In the 2.6 version of GNOME, applets already used to have categories for easy grouping. I first wanted to use the same categories as these. But I thought they really didn't help the user much : "Accessories", "Utilities", "Amusements", "Internet", "Actions", etc. There were two main categories ("Accessories" and "Utilities") containing most of the applets and the difference between them was not clear ; and then several small categories, with a fairly precise meaning, containing one or two applets.
The new categories have two goals : to have 4 or 5 balanced categories with a "middle population", and to make more explicit titles. The new categories are as follow : Launchers & Menus, Accessories, Desktop & Windows, System & Hardware and Utilities.
People using GNOME for the first time are sometimes puzzled in front of this big empty screen, and two panels at the top and bottom of their screens. I have added a notification that appears only at the very beginning of the user's first session (and is never displayed again, unless the user reinstalls the system and deletes all his user configuration files). However, you can artificially make it appear by setting the apps/panel/general/first_time_launched GConf key to "true".
Here's what it looks like :
I am, of course, open to any other proposition for the text inside this notification.
A separator for the panel
When a lot of applets/menus/drawers are added to the panel, one would probably feel the need of a separator (in the way, say, Firefox has one). This request was made a few months ago, and somebody already uploaded a patch to add this separator as a small separate applet (and then, as an internal applet). However, the maintainter of the panel didn't have time to review this patch at that time, I adapted the code for the current version of the panel (which has changed on several aspects), and created an appropriate icon.
Here's how you can add a separator to the panel :
And here's what it looks like when you have a few of them in your panel :
I have joined the Ubuntu ArtTeam, and will be designing icons for Breezy. Since I wanted to keep my work somewhat related to the panel, I chose to concentrate on the icons most used in the panel : applications icons. But I also gave a try for other kinds of icons.
Here are some icons I designed myself :
And here some icons I modified a little from the original version to make them look better (in my eyes ) :
All these icons are under Creative Commons (commercial use allowed, with modifications). All SVG (vector) versions all are available here :
Another problem I tried to look into was the look of the menus in the panel. An idea would have been to change their appearance (with hover effects and/or even before the mouse comes to them) so that it is more obvious that they are clickable. However, the following problems made me decide not to change their appearance :
- After talking (on IRC) to several developpers and asking their opinion, the reaction was rather negative, and this is the main reason why I choosed not to change the menus' appearance. The current menus are clear and simple ; you only need to learn once in a lifetime that they are clickable, if you don't realize it at first.
- One of the simple ideas was to add a very slight border around the menu titles, and maybe a slight gradient as their background. But then, it appeared that this wouldn't have looked so nice with a lot of existing themes.
- Technically, changing these menus' appearance is rather tricky, unless I create a special widget for them. But then again, a lot of existing themes would need to be redeigned.
Finally, it seemed that the real way to solve this problem was simply to add a notification on the "Applications" menu (see the "Startup notification" section, supra).
But I didn't want to make this decision without really knowing what could be done, so I have aslo learned how to create my own theme, modifying the metacity-1.xml and gtkrc files to get what I want. But this wasn't a waste of time : I'll certainly release one of two themes of my own in the next few weeks (maybe some variation on Clearlooks with more red colors...).
GnomePanelEnhancementsIdeas (last edited 2008-08-06 16:14:43 by localhost)