Tangram icon indicating copy to clipboard operation
Tangram copied to clipboard

Run in background as notifcation daemon.

Open nickavem opened this issue 4 years ago • 20 comments

I would love it if tangram could run (and even start on computer startup) in the background like Geary or Discord so I can still receive notifications without having the apps open.

nickavem avatar Feb 09 '21 16:02 nickavem

So basically you'd like Tangram to remain open when closed but hide from the task switcher?

sonnyp avatar Feb 09 '21 20:02 sonnyp

At least give us an option to do something similar, yes.

nickavem avatar Feb 09 '21 20:02 nickavem

I don't have a use for this but if you or anyone is interested in giving this a try I'd be happy to provide some guidance.

sonnyp avatar Feb 09 '21 20:02 sonnyp

I don't have a use for this but if you or anyone is interested in giving this a try I'd be happy to provide some guidance.

I have pretty much no GTK experience, so I'm not sure how effectively I'd be able to do this.

nickavem avatar Feb 10 '21 18:02 nickavem

Trial and error is a good approach to get started.

First step would be to manage to run Tangram from source.

See https://github.com/sonnyp/Tangram#development

sonnyp avatar Feb 12 '21 11:02 sonnyp

any news (launch it at least minimized) @sonnyp ? the best can be in tray.

I ask too because, like me many people use tangram to replace the dev who use electron for their app and having one GTKwebview app to rules them all is better than 3 or 4 electron app.

Thanks ;)

note : i actually launch it at boot and minimize it manually, at least a way to start minimized can be very appreciated.

BirdInFire avatar Feb 18 '22 01:02 BirdInFire

Seriously ? asking if there is any news is a spam ?

BirdInFire avatar May 08 '22 12:05 BirdInFire

Please stop the noise – it's not helping. If this was implemented – it would be closed. That's what an issue tracker is for.

This is true for any issue on any repository.

sonnyp avatar May 08 '22 14:05 sonnyp

Please stop the noise – it's not helping. If this was implemented – it would be closed. That's what an issue tracker is for.

This is true for any issue on any repository.

will stop after this one but false often even owner have forgotten on some issue so asking is normal.

BirdInFire avatar May 08 '22 14:05 BirdInFire

So the best way to implement this feature would be to enable a tray icon and background running right?

BeatLink avatar Jun 05 '22 17:06 BeatLink

So the best way to implement this feature would be to enable a tray icon and background running right?

No it can be a gnome-extension too, there is many way to add this function

BirdInFire avatar Jun 05 '22 19:06 BirdInFire

Tangram isnt only used on distros with GNOME DE.

BeatLink avatar Jun 05 '22 20:06 BeatLink

Tangram isnt only used on distros with GNOME DE.

i know it's just an exemple to show that tray icon isn't the only answer to the problem

BirdInFire avatar Jun 05 '22 20:06 BirdInFire

Luckily the Linux world uses standards

https://specifications.freedesktop.org/systemtray-spec/systemtray-spec-latest.html

MartinX3 avatar Jun 05 '22 20:06 MartinX3

Luckily the Linux world uses standards

https://specifications.freedesktop.org/systemtray-spec/systemtray-spec-latest.html

you cannot push the "linux" standard, the dev who dev for GTK app, chosse if he want to follow the Gnome standard (witch exclude the tray icon) or if he want to follow the road of systray, it's only him/her who choose.

BirdInFire avatar Jun 05 '22 20:06 BirdInFire

And?

Gtk is not gnome and you can just use the libappindicator. Also it uses this standard. The same is true for the Linux DE's. It will be supported in X11 and Wayland.

MartinX3 avatar Jun 05 '22 21:06 MartinX3

And?

Gtk is not gnome and you can just use the libappindicator. Also it uses this standard. The same is true for the Linux DE's. It will be supported in X11 and Wayland.

Again it's up to the dev to decide not you

BirdInFire avatar Jun 05 '22 21:06 BirdInFire

Please stop spamming, your comments are the opposite of useful. (Useless). libappindicator is also usable in gnome.

MartinX3 avatar Jun 05 '22 21:06 MartinX3

Please stop spamming, your comments are the opposite of useful. (Useless). libappindicator is also usable in gnome.

Lol it's the one who spam about something who isn't in it's control (decide how to do it (witch ONLY THE DEV can decide)) who tell my i spam... you a quite funny one ....

BirdInFire avatar Jun 05 '22 21:06 BirdInFire

Simply open the app on a separate workspace if you don't want it to clutter your list of windows. Simple as that, like any other app.

Note that because Tangram needs the website to be up and running to trigger notifications, they are no resources or performances improvements to be made by running it “in the background”.

If someone really wants to put time and effort into this – the way to go is

  • request_background with the XDP_BACKGROUND_FLAG_AUTOSTART flag
  • persistent notification – at least for now

There will be some iterations needed to figure out the right UX.

sonnyp avatar Jun 16 '22 05:06 sonnyp