On Ubuntu 12.04, the ThinLincClientVerifier says the client is OK, and enables the Continue button, even though the client is not installed.
Our applet executes: xdg-mime query default application/vnd.cendio.thinlinc.clientconf However, xdg-mime returns no output and exits with return code zero, which we interpret as "success". I believe this is wrong. The documentation is not fully clear on the return code, but in case of success the name of the .desktop file should be returned. Thus, it should be safer to verify this. Also note that on least my system (CentOS 6), xdg-mime seems to be very unstable. Right now, it does not return anything when the client is installed, but after UNINSTALLING it, it returns the .desktop file...
(In reply to comment #1) > Also note that on least my system (CentOS 6), xdg-mime seems to be very > unstable. Right now, it does not return anything when the client is installed, > but after UNINSTALLING it, it returns the .desktop file... Probably due to https://bugs.freedesktop.org/show_bug.cgi?id=31629. We should ship an updated version of xdg-mime. However, since the system version will have precedence, this will not change much in practice.
(In reply to comment #2) > (In reply to comment #1) > > > Also note that on least my system (CentOS 6), xdg-mime seems to be very > > unstable. Right now, it does not return anything when the client is installed, > > but after UNINSTALLING it, it returns the .desktop file... > > Probably due to https://bugs.freedesktop.org/show_bug.cgi?id=31629. We should > ship an updated version of xdg-mime. However, since the system version will > have precedence, this will not change much in practice. New vendordrop in 28148.
(In reply to comment #1) > Our applet executes: > > xdg-mime query default application/vnd.cendio.thinlinc.clientconf > > However, xdg-mime returns no output and exits with return code zero, which we > interpret as "success". I believe this is wrong. The documentation is not fully > clear on the return code, but in case of success the name of the .desktop file > should be returned. Thus, it should be safer to verify this. Fixed in 28156, we are checking for at least one line of output instead.
*** Bug 2850 has been marked as a duplicate of this bug. ***
*** Bug 4456 has been marked as a duplicate of this bug. ***
Verified functionality using build 4323, works as expected.