Bug#1031956: TrayIcon

2024-01-17 Thread Richard
Hi,
I'm sorry, but you must have misread the bug report. Nobody's talking about
autostart. When the app is opened, be it from its desktop icon or from a
terminal, in Gnome with an extension enabled to enable a tray for icons of
apps running the background, AusweisApp does add its icon to the tray
(though not actually showing an icon, so there's just an empty button). But
that's it. If it was wokring as supposed, its icon would also be added to
Gnome's dock and usually - if the app doesn't have an option enabled to
start as a background app - obviously the apps UI is supposed to open up.
Both last things don't happen. Also, from the tray icon, you can only close
the app. There's no option to toggle the window (or whatever programs call
that option). This is the whole issue, rendering the app completely
unusable for all users meeting the aforementioned criteria.

Yes, if you start it with --show, you get the UI. But if you close it, it
closes to tray with no option to get it back. And no, by no means it's
supposed to be a deamon that only shows its UI when it's used for
authentication. That's not how the Windows version works, not the Android
version and most likely no version of AusweisApp. So why should the Linux
app? Otherwise you wouldn't be able to change settings, e.g. to connect to
a smartphone to act as a card reader.

When it comes to Qt apps that act as expected, I honestly don't use that
many Qt apps - or I just can't tell if an app uses Qt or something
completely different. VLC kinda works as expected - you can have it start
only showing a tray icon and do what you like from there. But VLC is dirt
old - I was not yet able to get VLC 4 to work on Linux. KeePassXC is based
on Qt 5 and certainly works as expected. I think Telegram desktop may be
written with Qt, that's definetely working as expected. Also, I'm using a
syncing app for a cloud service based on Owncloud (or Nextcloud), the Linux
Client is based on the Owncloud Linux client, which also is based on Qt5,
also working with a tray icon as expected.
Other than that, I don't really know that many Qt based apps, even less
that can make use of a tray icon, and then less that are already based on
Qt 6, independent of their use of tray icons.

Richard

Am Mi., 17. Jan. 2024 um 15:24 Uhr schrieb A. Klitzing :

> Hi there,
>
> the AusweisApp has no autostart option on Linux. Did you add the
> AusweisApp to autostart by yourself? Why is it expected that the app
> should be in foreground if the systems starts? It is a service
> application like a "daemon" that waits until a users click on a
> eID-link in the browser. As a work-around you can add "--show" to
> cmdline option to start in foreground.
>
> The app uses Qt for the TrayIcon. We can show "Open" on Linux like we
> do for macOS if you like. You can see in Qt doc [2] the possible
> activation reason. Currently we use "Trigger" to show up the UI. This
> works for me on KDE. I tried Gnome on Debian right now and it requires
> a double-click. This looks like a bug in Qt or not documented
> behaviour. Do you know a Qt app with QSystemTrayIcon that works like
> you expected? So I can look into that.
>
> Best regards
> André
>
>
> [1]
> https://github.com/Governikus/AusweisApp/blob/master/src/ui/qml/TrayIcon.cpp#L112
> [2] https://doc.qt.io/qt-6/qsystemtrayicon.html#ActivationReason-enum
>
> --
> To unsubscribe, send mail to 1031956-unsubscr...@bugs.debian.org.
>


Bug#1031956: TrayIcon

2024-01-17 Thread A. Klitzing
Hi there,

the AusweisApp has no autostart option on Linux. Did you add the
AusweisApp to autostart by yourself? Why is it expected that the app
should be in foreground if the systems starts? It is a service
application like a "daemon" that waits until a users click on a
eID-link in the browser. As a work-around you can add "--show" to
cmdline option to start in foreground.

The app uses Qt for the TrayIcon. We can show "Open" on Linux like we
do for macOS if you like. You can see in Qt doc [2] the possible
activation reason. Currently we use "Trigger" to show up the UI. This
works for me on KDE. I tried Gnome on Debian right now and it requires
a double-click. This looks like a bug in Qt or not documented
behaviour. Do you know a Qt app with QSystemTrayIcon that works like
you expected? So I can look into that.

Best regards
André


[1] 
https://github.com/Governikus/AusweisApp/blob/master/src/ui/qml/TrayIcon.cpp#L112
[2] https://doc.qt.io/qt-6/qsystemtrayicon.html#ActivationReason-enum