Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
So I recently started learning GTK+ with the intention of making a small applet for switching languages. I was shocked when I saw the following:
GtkStatusIcon has been deprecated in 3.14. You should consider using notifications or more modern platform-specific APIs instead.
What does that mean? Should I now investigate on how to separately integrate my app with GNOME Shell, KDE Plasma, and Win32? Isn't there a unified way? This is what a widget toolkit is supposed to do!
Help me out there, I am kinda scared... what is going on with Linux on desktop... Are we heading towards total separation?
what is going on with Linux on desktop... Are we heading towards total separation?
Hard to tell when Windows'isms sneak into the Linux Culture. eg. "system tray". No such beast.
It's a "notification area" in Xfce4 terminology. IDK what they call it on other DEs, but I strongly believe that it is not a "system tray".
http://en.m.wikipedia.org/wiki/Notification_area
Yep, hard to find answers with Windows haters roaming around.
As I see, your experiance is limited to xfce4 only. I can tell you they do call it a system tray in other environments. Especially in the "do it yourself" world where stand-alone "system-trays" like Stalonetray can be installed to the system. But that's not for beginners, so you wouldn't know.
Anyway. Even if system tray is windows terminology (and it isn't, check the wikipedia article) I still fail to see how I used the terminology wrong, because ideally, I was searching for a way (a toolkit, a library, etc.) Which will allow me to create 'trays' in all the major environments: Ubuntu with their 'appIndicators'
Gnome with their 'persistent notifications'
KDE with their 'plasmoids'
Everyone else in the Linux on Desktop world who use good ol' Freedesktop notifications
AND (probably) goddamn m$Windows
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,673
Rep:
To expand on the above. If you write a desktop-integrated application you must integrate it with the desktop you want to integrate it with. Since there is no "Linux Desktop" you cannot, by definition, integrate into the "Linux Desktop".
I'm not sure what you are trying to achieve here and why you think somebody running Fluxbox or Ratpoison would suddenly want a system tray anyhow? It's obvious from a quick Google that the people who write Gnome don't want a "system tray" style notification any more and as far as I can see Canonical (behind Ubuntu's Unity) don't seem to want a traditional type either.
So what exactly are you trying to achieve?
Since there is no "Linux Desktop" you cannot, by definition, integrate into the "Linux Desktop".
Freedesktop.org have defined standards for desktops. Traditionally, GNOME and KDE have honored freedesktop standards. GNOME people seem to have their own mind nowadays.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,673
Rep:
Quote:
Originally Posted by cepheus11
Freedesktop.org have defined standards for desktops. Traditionally, GNOME and KDE have honored freedesktop standards. GNOME people seem to have their own mind nowadays.
According to their desktop they haven't defined any standards.
Quote:
Originally Posted by Freedesktop.org
freedesktop.org is not a formal standards organization, though some see a need for one that covers some of the areas we are working on. For Linux operating system standards, look at the Linux Standard Base project. The X.Org Foundation and the IETF are other groups that do formal standards. The Free Standards Group is one group that publishes "de jure" standards for free software; freedesktop.org is loosely affiliated with the FSG.
Unlike a standards organization, freedesktop.org is a "collaboration zone" where ideas and code are tossed around, and de facto specifications are encouraged. The primary entry to these discussions is the xdg mailing list.
My emphasis.
Also, while there is collaboration to help applications form one desktop work with another, for example, the whole fact that you don't even need a DE to run a Linux GUI means there can never be a "Linux Desktop".
According to their desktop they haven't defined any standards.
This is unnecessary quibbling with words - thanks to them, we have custom start menu, application links, application category, mime type, default application priorities, icons, and whatever else config.
http://en.m.wikipedia.org/wiki/Notification_area
Yep, hard to find answers with Windows haters roaming around.
As I see, your experiance is limited to xfce4 only. I can tell you they do call it a system tray in other environments. Especially in the "do it yourself" world where stand-alone "system-trays" like Stalonetray can be installed to the system. But that's not for beginners, so you wouldn't know.
Anyway. Even if system tray is windows terminology (and it isn't, check the wikipedia article) I still fail to see how I used the terminology wrong, because ideally, I was searching for a way (a toolkit, a library, etc.) Which will allow me to create 'trays' in all the major environments: Ubuntu with their 'appIndicators'
Gnome with their 'persistent notifications'
KDE with their 'plasmoids'
Everyone else in the Linux on Desktop world who use good ol' Freedesktop notifications
AND (probably) goddamn m$Windows
Please read and observe the LQ Rules, and show some respect for your fellow members.
Please refrain from immature personal attacks, name calling and not-so-clever-as-you-think insults on other members, especially those who have tried to provide a useful answer to your question. And please avoid tantrums and use of profanity in response to answers that do not fit your unfounded pre-conceptions.
If you had considered Habitual's helpful answer this thread might have proceeded along a more uesful path.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,673
Rep:
Quote:
Originally Posted by cepheus11
This is unnecessary quibbling with words - thanks to them, we have custom start menu, application links, application category, mime type, default application priorities, icons, and whatever else config.
There is more than just a semantic difference between somebody having defined standards and having helped agree them. It's another important difference between, say, Windows and Linux -- there is no one person "in charge" which helps explain the different approaches different Linux developers take. That is why I pointed out that the standards were not defined by a body -- in an attempt to explain to the OP why things aren't the way they are with Windows.
As far as what Freedesktop.org have achieved, I agree it's impressive and useful. However, again, what they have achieved is not something which can directly help somebody who wants there to be a system tray on every system on which their applications runs. In fact, in some ways, these standards make it easier to do without things like a system tray. If I understand it correctly Gnome are moving to a "notification queue" system which is actually supposed to help developers use the same code for Gnome and KDE but for things which look very different in implementation.
Or, to put it another way, there is no "Linux Desktop" there are many "Linux Desktops" following the "Linux Desktop Standard".
Apologies for quibbling but I am trying to convey to the OP that there are big differences between Windows and Linux so the same approach can't always be used. I'm still wondering how this system tray icon is supposed to work under Ratpoision .
You all made me sound like I was someone who thinks Linux should be just like Windows. I am sorry if I have not expressed myself right
'Queued Notifications', 'plasmoids', systrays, 'appIndicators' whatever those DEs choose to call them, they are basically the same thing, having the same functionality in a desktop. I was just curious if what was expected from a developer if he wanted to access this 'functionality' on all of the DEs that support it, was to write code specific for each and every platform. Although after a lot of unnecessary 'Linux is not Windows' shouting, it has become clear that this is the case.
I feel sorry that this thread ended up being the way it is.
Quote:
'm not sure what you are trying to achieve here and why you think somebody running Fluxbox or Ratpoison would suddenly want a system tray anyhow? It's obvious from a quick Google that the people who write Gnome don't want a "system tray" style notification any more and as far as I can see Canonical (behind Ubuntu's Unity) don't seem to want a traditional type either.
So what exactly are you trying to achieve
--> I am not trying to force people who don't want to have this 'functionality' have it. I'd like however, to be able to reach as many people who want to have it.
It seems as if you are saying Gnome's and Ubuntu's "system trays" are different from Freedesktop's. The way that I understand the situation is that we have 4 different ways of achieving the same thing depending on what desktop environment the user is using. I am not even saying this is bad. No! This is great in it's own terms and I understand this pretty well.
I asked for developing techniques but I got a philosophical (and a little rude to me) discussion. Maybe I did't post in the right forum.
Quote:
Please refrain from immature personal attacks, name calling and not-so-clever-as-you-think insults on other members, especially those who have tried to provide a useful answer to your question. And please avoid tantrums and use of profanity in response to answers that do not fit your unfounded pre-conceptions.
I do deserve this, I know. But so does one more person in this thread
I really hope though that this message will not be the last here. I ask once again the Linuxquestions community for answers. This time ON TOPIC, please. Enough terminology
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.