steam-for-linux icon indicating copy to clipboard operation
steam-for-linux copied to clipboard

Bug request: Integration with system notifications

Open swiftgeek opened this issue 13 years ago • 55 comments

Please add support for displaying system notifications in »»»game overlay««« AFAIK This could be reused https://github.com/halhen/statnot Please take advantage of the linux environment ;)

Shortly saying without additional mock-ups, etc GameOverlay should have: • Possibility to group notification from the same app (i just guess that this is doable) • Relative time (eg. "5 minutes ago") • Possibility to limit number / time interval history shown in [shift]+[tab] overlay (by default nothing should be shown there, since we don't want to break steam's "visual compatibility")

Real things that will work / improve user experience while gaming due to this "bug" introduction: • Possibility to see volume/brightness percentage while changing it via shortcuts • See incoming messages from other IMs / e-mails • See warning when battery drops dead • See warning when connections is lost


Also steam's own notification (that exist during non-playing time) should be done by integration with libnotify - which is heavily described on ArchWiki https://wiki.archlinux.org/index.php/Libnotify.

swiftgeek avatar Dec 20 '12 03:12 swiftgeek

This would be a feature request...

MilesRdz avatar Dec 20 '12 03:12 MilesRdz

It will break something that steam used to do for a long time. (Now it could do it much better, making it awesome and a must-have while playing any game — even those outside steam store ;) ) It's a bug request ;)

Also this http://www.urbandictionary.com/define.php?term=bugging (# 2) Bugging users is in some way a purpose of notification systems :P

swiftgeek avatar Dec 20 '12 03:12 swiftgeek

Miles is correct: for the sake of bug reporting, this is a feature request... and a lengthy one at that.

MrSchism avatar Dec 20 '12 07:12 MrSchism

edit2: This comment was meant for #2503, which is the opposite of this.

Out of all of these points, I most strongly agree with the one about libnotify. Better integration with the desktop would be nice, but is not essential in my mind. I think libnotify is a good start on that, and I think the least likely to create new bugs since it's pretty easy to do (you can make a notification now in bash with

notify-send 'Glados says:' 'I saw a deer today.'  && aplay ~/.steam/steam/friends/message.wav

) On my system, it even does queueing with other apps. I can customize its position and appearance.

Thanks to John Drinkwater for pointing me to this request from the Steam forums.

edit: added sound and a few more words

BurritoBazooka avatar Feb 20 '13 01:02 BurritoBazooka

to transfer my main points from the duplicate bug:

  1. non-native notifications are a usability problem because they don’t stack with native ones.
  2. on linux (unlike windows and OSX), there is a standard for notifications that should be followed
  3. there are several ways to implement them
    1. libnotify’s ABI (link it dynamically or statically: it’s MIT licensed)
    2. libnotify’s executable notify-send (spawn a subprocess)
    3. the direct DBUS protocol (use dbus calls to discover a notification deamon and send notifications to it)

flying-sheep avatar Sep 14 '13 00:09 flying-sheep

The description for the issue confuses me. It looks like the reporter's intention is the opposite of #2503; instead of having steam use the existing notifications, it sounds as if the intention is for steam to DISPLAY system notifications using it's own overlay (overriding the existing notification daemon?). If this interpretations of this issue is correct, it's an awful idea.

WhyNotHugo avatar Sep 17 '13 23:09 WhyNotHugo

I think your interpretation is correct, @hobarrera (I didn't realise that at first... Just followed @johndrinkwater's lead) but I don't think it's such a bad idea. If you're playing games in full screen, chances are (for me, anyway) that the system's notification daemon doesn't display notifications to you in-game. What you would expect is for notifications to appear in the overlay, as they do for Steam. Steam Overlay* can act as a notification daemon in its own right.

*(the thing you shift+tab to in-game is the same thing that displays Steam chat notifications in-game)

The idea, I think, isn't for Steam to display all notifications, only when the overlay is active in-game.

Until this point, I have used my phone as a second screen while playing games, but I don't see why this is a bad idea for end users.

The concept in #2503 (if both are implemented) would then be used when games aren't running full screen.

BurritoBazooka avatar Sep 18 '13 00:09 BurritoBazooka

My idea was to have two 'routines' (I described this in issue message, but maybe distinction wasn't clear enough)

One for Big Picture/SteamBox/GameOverlay - providing own 'daemon' that listens to dbus (beacause normal/sane notification daemons doesn't work there, and so we now don't see notifications from IM/whatever while in game)

And second one for desktop use (no game running fullscreen, just regular steam client) - which would just shove notifications to the existing (running) notification daemon - ways to implement described by @flying-sheep in point 3


@BurritoBazooka : at least on Linux "Steam Overlay" is contained within gameoverlay*.so ;)

Again if anyone is interested in adding this feature - You need to remember about edge case - people are also using 'alt-tab' or similar - so checking if game with gameoverlay(if it's running at all) has a focus on current workspace is also needed

@flying-sheep : actually… OS X has growl, not bundled but it's being commonly used (even by adobe) - it's licensed on BSD so it has even less troubles ;)

swiftgeek avatar Sep 18 '13 00:09 swiftgeek

@BurritoBazooka: My notifications daemon displays my notifications just fine. It's actually steam which is broken IMHO, since it's the only app ignoring my environment. Overriding the system's notification daemons isn't very friendly, I usually want apps to integrate INTO my environment, not to replace parts of it. The notifications specs is quite complicated to re-implement the daemon.

Also, what happens if the game is minimized? What happens to interactive notifications (I haven't seen notifications with buttons on steam).

@swiftgeek Implementing the server side would mean killing the already-running notification daemon somehow, and inhibiting it if it's launched through dbus by someone else.

Growl is not commonly part of the OS. notification-daemon is present in most popular DEs, and all officially supported distributions.

WhyNotHugo avatar Sep 18 '13 00:09 WhyNotHugo

@hobarrera • Growl - Then do a poll for OS X - they might not even know that they are using it -.- . It's as common as notification daemon on linux. Steam can gather those statistics pretty easily… • inhibiting notifyd - why would You inhibit something that doesn't work at all at that moment (fullscreen game/steambox/big picture/etc) - the only thing that it requires is using dbus directly • minimized game - i mentioned this already, read please -.- . It's just one of many edge cases, it isn't something unnatural to programmer -.- • notifyd specs - It isn't THAT complicated and You don't need to implement all of it (at least for some time, it would be not nice to leave just the basic support) • ignoring env - my issue is all about fitting in existing env not replacing stuff -.-. It takes just few seconds to add settings for your case when your partially insane notification daemon is running (why insane? eg. imagine watching movie with family fullscreen and being dunno sexted)

swiftgeek avatar Sep 18 '13 00:09 swiftgeek

@swiftgeek xfce4-notifyd works fine with steam games, and I can see it's notifications on top of the game. If it does not work for you, you should file a bug report, but it's not broken ATM. Different implementations may vary, but you should not assume they're all broken.

But basic support isn't enough. My phone calls come in through an asterisk box, and I answer/decline them though a notification. If steam overrides by notifications (already a bad idea), I can no longer answer phone calls while playing steam! That's just too unaccetable! Other running applications may send important interactive notifications. If steam decides to override my environment and replace my nofitication daemon, it can't offer LESS funcionality, because that is, in essence, breaking my environment.

Notifications are shown on top of any application. If your media player inhibits them, that's your edge case, not a default.

Steam is an application, fitting into the env means it should behave as such regarding the notifications specs. Re-implementing the server-side is not how other applications behave. Fitting in is behaving like the rest, and using the existing setup without replacing unrelated items. This request is as out-of-scope as #2636.

WhyNotHugo avatar Sep 18 '13 01:09 WhyNotHugo

Please distinguish regular part of the spec from crazy broken hackerish. And i'm using xfce4's and e18++ notifyd deamons.

2nd paragraph - if You would read then You would know that it would be possible!

3rd - that assumption would be not only highly inconvenient also highly insecure. Spec is good

4rd All apps wanting to use notifyd have to implement protocol one way or another. Seriously stop trolling this issue, pretty please. Again notifyd spec is good and this proposal isn't against either it or currently running notifyd :< . I'm not hired by Valve and i wont fork it to show You that it really will also fit into your env!

The only thing that i don't know at this particular moment is how to implement edge cases on wayland… that's all !

swiftgeek avatar Sep 18 '13 01:09 swiftgeek

Please focus on making or refuting points regarding the request instead of attacking people or demanding things from them. I don't see any trolling going on from @hobarrera's side.

BurritoBazooka avatar Sep 18 '13 02:09 BurritoBazooka

@BurritoBazooka if he isn't trolling this issue then it's my job to teach everyone about specs step-by-step and attaching quote from any standard to every sentence in which i'm mentioning them, also providing mock-up codes to prove stated points? I would understand this if this would be an opensource project

swiftgeek avatar Sep 18 '13 02:09 swiftgeek

Yes, as a matter of fact. If not, just say it's not a part of the spec, and leave it be. You don't need to use emoticons to express your attitude towards him, or say that he is trolling (edit: check out his coding experience, I wouldn't say he's a troll. Also, it's abnormal for trolls to be using their real names), or tell him to read things again.

It's up to Valve anyway.

BurritoBazooka avatar Sep 18 '13 02:09 BurritoBazooka

If i did that i would make 99% of the implementation job for this issue - this is why it would be ok only for OpenSource IMO - if it wouldn't get into mainline i would just fork it :<

And many devs are trolling, for various reasons

Until Valve says anything i obviously wont write any code / quote exact parts of X11/notifyd specs

swiftgeek avatar Sep 18 '13 02:09 swiftgeek

I found the spec. Actions are specified and one suggested implementation is buttons.

edit: Yeah, my main hangup wasn't about you not being verbose about what you wanted to say, just that it had an attitude attached.

BurritoBazooka avatar Sep 18 '13 02:09 BurritoBazooka

So let me get this straight: this feature request is called “integration with system notifications”

This integration can go both ways:

  • integrate stream notifications into system – by using the system's notification daemon
  • integrate notifications into steam (overlay) – by providing a second daemon (which is only feasible if the spec allows for more than one daemon to handle notifications without inhibiting each other)

The first one isn't mentioned in this feature request's description, but due to #2503 being marked as duplicate, either this one should be treated as meta request for both, or #2503 should be reopened, and this one renamed to be more specific to its description.

flying-sheep avatar Sep 18 '13 07:09 flying-sheep

Those are two parts of implementation, not pick one It's all about using https://developer.gnome.org/notification-spec/

"The first one isn't mentioned in this feature request's description" It didn't require that much of explanation as for GameOverlay (notice horizontal line and one sentence below)

swiftgeek avatar Sep 18 '13 07:09 swiftgeek

Sure, my comment is just clarification and organizational: what this report is about and how we could organize both of its parts (as separate ones or combined)

I'm for renaming this one and reopening #2503. Then they can be fixed/wontfix’ed separately.

flying-sheep avatar Sep 18 '13 07:09 flying-sheep