After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 461785 - Please use libnotify to ask the user about connecting clients instead of popping up a dialog
Please use libnotify to ask the user about connecting clients instead of popp...
Status: RESOLVED FIXED
Product: vino
Classification: Applications
Component: Server
unspecified
Other All
: Normal enhancement
: ---
Assigned To: Vino Maintainer(s)
Vino Maintainer(s)
: 461787 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2007-07-30 13:05 UTC by Lennart Poettering
Modified: 2013-01-28 18:13 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
Use notifications to prompt (14.06 KB, patch)
2013-01-27 15:24 UTC, Bastien Nocera
committed Details | Review
server: Make libnotify a hard dependency (7.55 KB, patch)
2013-01-28 18:10 UTC, Bastien Nocera
committed Details | Review

Description Lennart Poettering 2007-07-30 13:05:18 UTC
I'd prefer if the vino server would use libnotify to inform the user that a client connected and also ask him via libnotify whether he wants to accept the connection, instead of popping up a dialog in the middle of nothing. Popping up dialogs without any direct user interaction that caused it is never a good idea from a usability point of view I would argue.

Thanks,

Lennart
Comment 1 Lennart Poettering 2007-07-30 13:13:43 UTC
*** Bug 461787 has been marked as a duplicate of this bug. ***
Comment 2 Jonh Wendell 2007-10-19 16:22:59 UTC
This is a good idea, i'd personally prefer this approach. We could live the popup around about one minute or so, and reject the connection when the time expire.

But unfortunately libnotify is not a blessed GNOME dependency, so we can't just replace the current dialog for this new one. And i don't want to maintain to pieces of code.

So, i prefer to wait until libnotify be a blessed dependency.

What do you think, Mark?
Comment 3 Bastien Nocera 2008-07-29 21:13:07 UTC
Having both would be fine, if only for a small period of time. That would allow us to put pressure getting libnotify in as a blessed dep. gnome-user-share already uses libnotify to ask for write permissions (even though gnome-user-share isn't in GNOME itself yet).
Comment 4 Emilio Pozuelo Monfort 2009-07-11 09:48:21 UTC
Have in mind that notification daemons may or may not have actions support, so there should still be a fallback.
Comment 5 Bastien Nocera 2013-01-27 15:24:26 UTC
Created attachment 234538 [details] [review]
Use notifications to prompt
Comment 6 Bastien Nocera 2013-01-27 15:25:32 UTC
Doesn't handle notification daemons that don't support actions, and requires libnotify support.
Comment 7 Bastien Nocera 2013-01-28 14:12:09 UTC
See https://bugs.launchpad.net/notify-osd/+bug/1107919 about the support for notification-daemons that don't have actions support (eg. notify-osd support).
Comment 8 David King 2013-01-28 14:27:03 UTC
Comment on attachment 234538 [details] [review]
Use notifications to prompt

(In reply to comment #7)
> See https://bugs.launchpad.net/notify-osd/+bug/1107919 about the support for
> notification-daemons that don't have actions support (eg. notify-osd support).

Thanks! The patch looks fine, but it would of course be nice to have some feedback from the notify-osd developers to know whether it makes sense to have a fallback implementation. Additionally, if it requires libnotify support, it is probably time to make that a requirement in configure.ac.
Comment 9 Bastien Nocera 2013-01-28 14:41:43 UTC
(In reply to comment #8)
> (From update of attachment 234538 [details] [review])
> (In reply to comment #7)
> > See https://bugs.launchpad.net/notify-osd/+bug/1107919 about the support for
> > notification-daemons that don't have actions support (eg. notify-osd support).
> 
> Thanks! The patch looks fine, but it would of course be nice to have some
> feedback from the notify-osd developers to know whether it makes sense to have
> a fallback implementation.

Hopefully, we're not the ones that'll have to implement it.

> Additionally, if it requires libnotify support, it
> is probably time to make that a requirement in configure.ac.

I can do that as a separate patch (first require libnotify, then update the vino-prompt code).
Comment 10 David King 2013-01-28 15:14:07 UTC
(In reply to comment #9)
> > (In reply to comment #7)
> > > See https://bugs.launchpad.net/notify-osd/+bug/1107919 about the support for
> > > notification-daemons that don't have actions support (eg. notify-osd support).
> Hopefully, we're not the ones that'll have to implement it.

Hmm, the response to that bug was essentially "it is a design decision", urgh.

> > Additionally, if it requires libnotify support, it
> > is probably time to make that a requirement in configure.ac.
> 
> I can do that as a separate patch (first require libnotify, then update the
> vino-prompt code).

Yes please. Go ahead with your patches, and I will add the fallback logic, unless you are feeling particularly masochistic!
Comment 11 Bastien Nocera 2013-01-28 15:48:55 UTC
(In reply to comment #10)
> (In reply to comment #9)
> > > (In reply to comment #7)
> > > > See https://bugs.launchpad.net/notify-osd/+bug/1107919 about the support for
> > > > notification-daemons that don't have actions support (eg. notify-osd support).
> > Hopefully, we're not the ones that'll have to implement it.
> 
> Hmm, the response to that bug was essentially "it is a design decision", urgh.

Which is bizarre for something that should be an implementation detail :)

> > > Additionally, if it requires libnotify support, it
> > > is probably time to make that a requirement in configure.ac.
> > 
> > I can do that as a separate patch (first require libnotify, then update the
> > vino-prompt code).
> 
> Yes please. 

I'll do that later today.

> Go ahead with your patches, and I will add the fallback logic,
> unless you are feeling particularly masochistic!

And I don't have any Ubuntu around to test this properly...
Comment 12 Bastien Nocera 2013-01-28 18:10:17 UTC
Created attachment 234638 [details] [review]
server: Make libnotify a hard dependency

As it's been a blessed dependency for a long while now.
Comment 13 Bastien Nocera 2013-01-28 18:13:37 UTC
I'll let you implement the fallback, if you fancy it.
I personally don't think it's very useful for a core GNOME dependency to implement a fallback for a "GNOME-based" desktop, when a work-around is readily available, but I'll leave that up to you.

Attachment 234538 [details] pushed as 875b2a3 - Use notifications to prompt
Attachment 234638 [details] pushed as 46c3f82 - server: Make libnotify a hard dependency