corebird icon indicating copy to clipboard operation
corebird copied to clipboard

Run corebird in the background

Open haecker-felix opened this issue 8 years ago • 13 comments

It would be nice, if I could close the corebird main window, but get still notifications about new tweets etc.

haecker-felix avatar Apr 07 '17 16:04 haecker-felix

A thousand times yes! +1

Vistaus avatar Apr 07 '17 16:04 Vistaus

You can just run corebird --start-service but nobody ever makes sure that it keeps working.

baedert avatar Apr 07 '17 16:04 baedert

@baedert Great tip! I could add that to my startup applications. But it shouldn't be hard to write a daemon around that, right? (note that I don't mean to suggest that you should do it, just asking a general question)

Vistaus avatar Apr 07 '17 17:04 Vistaus

what kind of daemon? It'll only start the streaming connection without any of the UI this way, so you will get the usual notifications and starting corebird will just create the UI. Closing the window will destroy the UI but leave the process running until you execute corebird --stop-service.

baedert avatar Apr 07 '17 17:04 baedert

In that case it'd be nice to have this available as a GUI option ("Keep Corebird running in the background") :) I mean: not all users are going to search GitHub Issues for this.

Vistaus avatar Apr 07 '17 17:04 Vistaus

Yeah well it's not really supposed to be used :p It's even harder to test that this keeps working (and it requires a certain decoupled-from-the-actual-UI design) than the usual stuff. Additionally I'd like he close button to somehow indicate that the process keeps running but I'm not sure how to best implement this.

baedert avatar Apr 07 '17 17:04 baedert

just a hint, closing the window could make the nice icon hi-contrasted appear on the top gnome-shell panel indicating that the service is running in the background

corebots avatar Apr 07 '17 19:04 corebots

just a hint, closing the window could make the nice icon hi-contrasted appear on the top gnome-shell panel indicating that the service is running in the background

That would have to be a gnome-shell extension then and doesn't work anywhere else.

baedert avatar Apr 08 '17 07:04 baedert

@baedert Well, starting the service upon boot does work and seems to be running all of the time. Only issue is that notifications get through very, very slowly. For example, this morning, I received a mention at 8:24. My phone showed the notification just fine at that very moment. I left it unread all morning and early afternoon. It's now 1:15 PM as I write this and this despite having my laptop open most of the time and the corebird service running, Corebird just showed that notification a few minutes ago.

Vistaus avatar Apr 11 '17 11:04 Vistaus

this should quite easily be fixed by adding an extra couple of options in settings: a) Close to tray (corebird runs in the background as a service) and b) close to exit application (as it does right now). Close to tray should also allow notifications in gnome shell (notifications could be disabled by adding another option). From the tray, an extra right click menu option to "quit" should stop the service and exit the application.

truckerboy avatar May 29 '17 06:05 truckerboy

@truckerboy FYI, there is no tray in GNOME Shell and thus in GTK-based DE's anymore: https://github.com/Keruspe/GPaste/issues/192#issuecomment-279998214 https://github.com/Keruspe/GPaste/issues/192#issuecomment-280000208

https://git.gnome.org/browse/gtk+/commit/?h=gtk-3-22&id=cab7dcde1bef1ea589a9f3c4d8512e59ade8a4a2

https://git.gnome.org/browse/gtk+/commit/?id=d2a8667f835ddce4ac88b9bee143556f9efa93c4

Vistaus avatar May 29 '17 08:05 Vistaus

well there is a tray (deprecated or otherwise) in Gnome 3.20 (which I am on) and it works pretty well but your referred comment makes sense as to why this has not been included in corebird, given it would become throwaway code in the near future.

It would however make a lot of sense to create a gnome shell extension (which I am sure is not deprecated) for a "corebird dock" and mimic the functionality I outlined in my earlier post.

truckerboy avatar May 29 '17 14:05 truckerboy

A GNOME Shell extension could very well be created and won't be deprecated (the extension just needs to be kept up-to-date b/w GNOME Shell versions). I can't speak for @baedert but I think it's up to a third party to write an extension.

Vistaus avatar May 29 '17 14:05 Vistaus