10
9
Fork
You've already forked linux-app
14

Add tray icon #352

Closed
opened 2021年04月09日 13:22:28 +02:00 by gijzelaerr · 4 comments
gijzelaerr commented 2021年04月09日 13:22:28 +02:00 (Migrated from github.com)
Copy link

We want a tray icon that runs the client in the background. I know gnome considers this bad UI, but this enables us to perform tasks like cert renewal in the background (#188)

We want a tray icon that runs the client in the background. I know gnome considers this bad UI, but this enables us to perform tasks like cert renewal in the background (#188)
alvra commented 2021年09月15日 09:20:00 +02:00 (Migrated from github.com)
Copy link

@gijzelaerr I cannot get your suggestion to hide/show the window when minimized to tray, to work. The window.show() causes a segfault. It appears we do need a GTK application to get this to work.
https://stackoverflow.com/a/10972241
https://marc.info/?l=gtkmm&m=146693165929685

@gijzelaerr I cannot get your suggestion to hide/show the window when minimized to tray, to work. The `window.show()` causes a segfault. It appears we do need a GTK application to get this to work. https://stackoverflow.com/a/10972241 https://marc.info/?l=gtkmm&m=146693165929685
alvra commented 2021年09月22日 10:02:16 +02:00 (Migrated from github.com)
Copy link

As "tray icons" (Gtk StatusIcon) have been deprecated and don't show on modern Gnome desktops, notifications should be used instead.

The plan is to show a notification while a connection is active, even when the app window is closed. The app will remain running in the background and notify the user through messages when the session is about to expire (15min before expiry). When the app window is closed while no connection is active, it will exit completely.

As "tray icons" (Gtk StatusIcon) have been [deprecated](https://docs.gtk.org/gtk3/class.StatusIcon.html#description) and don't show on modern Gnome desktops, notifications should be used instead. The plan is to show a notification while a connection is active, even when the app window is closed. The app will remain running in the background and notify the user through messages when the session is about to expire (15min before expiry). When the app window is closed while no connection is active, it will exit completely.
jwijenbergh commented 2023年03月09日 11:26:06 +01:00 (Migrated from github.com)
Copy link

StatusNotifier should probably be fine to implement

StatusNotifier should probably be fine to implement
jwijenbergh commented 2023年10月20日 14:52:07 +02:00 (Migrated from github.com)
Copy link

I had a look at this and everywhere I look I see deprecated APIs. The APIs that are non-deprecated are forks or poorly documented. I think it's not worth it

I had a look at this and everywhere I look I see deprecated APIs. The APIs that are non-deprecated are forks or poorly documented. I think it's not worth it
Sign in to join this conversation.
No Branch/Tag specified
master
upstream-deb
openvpn-persistent
1.x
4.7.2
4.7.1
4.7.0
4.6.0
4.5.1
4.5.0
4.4.99.0
4.4.0
4.3.1
4.3.0
4.2.99.1
4.2.99.0
4.2.1
4.2.0
4.1.99.0
4.1.3
4.1.2
4.1.1
4.1.0
3.1.1
4.0.1
4.0.0
pr-3.3.1
pr-3.3.0
pr-3.2.0
3.1.0
3.0.0
2.2.1
2.2.0
2.1.0
2.0.0
1.1
1.0.3
1.0.2
1.0.1
1.0rc17
1.0rc16
1.0rc15
1.0rc14
1.0rc13
1.0rc12
1.0rc11
1.0rc10
1.0rc9
1.0rc8
1.0rc7
1.0rc6
1.0rc5
1.0rc4
1.0rc3
1.0rc2
1.0rc1
0.8
0.7.2
0.7.1
0.7
0.6.1
0.6
0.5.1
0.5
0.3
0.2.1
0.2
0.1.1
0.1
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
eduVPN/linux-app#352
Reference in a new issue
eduVPN/linux-app
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?