Zenity and GNOME 3

[ < Please Don't Use Emoji | Soccer Mom Brigade > ]


kirsle
Posted by Noah Petherbridge on Monday, July 18 2011 @ 06:55:59 PM
Another mini rant about GNOME 3.

To add to the reasons why GNOME 3 impacts other areas of the Linux ecosystem in ways I wish it wouldn't, they have changed the behavior of zenity and removed a feature just because it no longer makes sense for GNOME 3.

Zenity, btw, is a command line program for displaying simple dialog boxes and things that may be useful for bash scripts. It can pop up alerts, progress bar windows, open/save dialogs, etc.

One feature it used to have was --notification, which let you put an icon in the Notification Area ("system tray") on your desktop. But now, since GNOME 3 doesn't have the same concept of the Notification Area as other desktop environments, Zenity's --notification option no longer puts an icon in the Notification Area.

Now it uses GNOME 3's style of notification... which is, the same behavior as notify-send - it pops up a Growl-like black bubble in the corner of your screen with a temporary message (like "New updates are available").

This sucks.

I was playing with writing a desktop Google Voice app for Linux, which would have an icon in the Notification Area and notify about new texts and things. I was going to just use Tk for the GUI (even though it's ugly as sin on Linux) and use Zenity only for the notification icon. But I can't do that now! Now I might as well make my GUI in GTK+ so I can use the Gtk2 module for the notification icon.

GNOME developers, the universe does not revolve around GNOME. If Zenity's --notification is just going to duplicate the functionality of notify-send, you might as well just have switched to notify-send and leave Zenity how it was before.

More Bad Changes

Today (8/14/11) I discovered something else GNOME changed in Zenity.

I'd written a Perl script a while back that would act as a super simple front-end to Mednafen, an NES and GameBoy emulator. It just used Zenity to open a file select dialog to let you browse for a ROM to load.

But now, Zenity's file selection dialog doesn't have any way of letting you specify which directory it should look in by default. It used to start in whatever the script's current working directory was, but now it ignores all that and always starts in the "Recently Opened Files" list.

Fuck everything about GNOME. Do we need to fork Zenity now? This is so ridiculous.

Categories:

[ Blog ]

[ < Please Don't Use Emoji | Soccer Mom Brigade > ]

Comments

There are 3 comments on this page.

guest
guest
Posted on Friday, October 14 2011 @ 06:18 PM by Jorge.

Completely agree! They destroyed Zenity's use. I had it in many scripts which are useless now, as I was specially using notification and file selection on a custom folder. Is this evolution, GNOME3?

Hope someone makes a fork soon.. Other alternative would be XFCE.

guest
guest
Posted on Sunday, October 23 2011 @ 04:54 PM by Cava.

I ran into the same issue of zenity file-selection no more using the current directory by default. By looking at the source code (fileselection.c), I discovered that it could be workarounded by using the --filename option. For it to work, it must be followed by a directory path ending with a /, eg.
zenity --file-selection --save --filename="$HOME/Documents/"

br - David

guest
guest
Posted on Monday, December 19 2011 @ 10:29 PM by Mono.

This regression is the kind of crap that drove me to OS X a few years ago... Too bad that Apple's behaviour makes me sick nowadays so I started using lunix again, only to find that some projects are in even worse state than when I left.... Very sad when ambitious (and clueless) developers start breaking even the scripts we wrote for ourselves as users....

Add a Comment

Your name:
Your Email: (optional)
Message:
Comments can be formatted with Markdown, and you can use
emoticons in your comment.

If you can see this, don't touch the following fields.


Kirsle
» Homepage (RSS)
» About Me
» Photo Albums
» Guestbook
» Contact Me
Channels
» Linux (49)
» General (48)
» Perl (34)
» Rant (22)
» Software (15)
» HowTo (11)
» RiveScript (9)
» Minecraft (9)
» Gnome 3 (8)
» Android (8)
» Windows (8)
» Curiosity (7)
» HTML (7)
» Siikir (7)
» Design (6)
» Tk (6)
» Gay (5)
» Java (4)
» Blackhat (4)
» Reviews (4)
» VirtualBox (4)
» Ideas (3)
» DOS (3)
» Python (3)
» Photos (3)
» KAGE (3)
» Xfce (3)
» ttf2eot (3)
» Licensing (3)
Creativity
» 3D Renderings
» Flash Animation
» JavaScript
» Fonts
» Metacity
» Tutorials
Software
» RiveScript
» Error Generator
» Tk Calculator
» Terminal Apps
» CyanChat Client
Web Tools
» TTF to EOT
» Text Fader
» Favicons
» Distance Calc
» Azulian Encoder
» XBM Masks
Subdomains
» Shell Scripts
» Linux RPMs
» Rophako CMS
» Kirsle::Nano
» Minecraft Server
Miscellany
¤ Pokemon Fuchsia City
¤ DOS and Windows
¤ Raspberry Pi
Links
¤ Google+
¤ Facebook
¤ Twitter
¤ MySpace
¤ Github
¤ CPAN
Fan Club
» Log In