Page 1 of 1

[SOLVED]TeleGuard on mga9

PostPosted: Jul 4th, '24, 15:05
by nexus
Hello, i try install/run TeleGuard (https://teleguard.com/en) on mageia9 but without success. Waht i did:
- download file https://pub.teleguard.com/teleguard-desktop-latest.deb,
- extract,
- installed missing dependencies indicated in teleguard-desktop-latest/control/control file,
- manually copied the files to the target location,
- run post install script (teleguard-desktop-latest/control/postinst),
- run TeleGuard by teleguard_desktop command,

but get error:
* (teleguard_desktop:127310): CRITICAL **: 14:57:36.365: Failed to read XDG desktop portal settings: GDBus.Error:org.freedesktop.portal.Error.NotFound: Requested setting not found

Is a way to run TeleGuard on mageia9?

Re: TeleGuard on mga9

PostPosted: Jul 4th, '24, 16:39
by doktor5000
nexus wrote:but get error:
* (teleguard_desktop:127310): CRITICAL **: 14:57:36.365: Failed to read XDG desktop portal settings: GDBus.Error:org.freedesktop.portal.Error.NotFound: Requested setting not found

Is that all of the output ?
That by itself is only a warning and can be ignored, it's not about the program itself.

Also, do you have xdg-desktop-portal-gtk installed ?

Re: TeleGuard on mga9

PostPosted: Jul 4th, '24, 20:02
by nexus
Is that all of the output ?
all output is little big:
0.22.0 (git 24aba61) - Multimedia Development Kit. Copyright (c) 2016-2023 WangBin(QtAV author) <wbsecg1 at gmail.com>
Build for: Linux x86_64; Clang17.0.0 (++20230905073305+092b6c5ee370-1~exp1~20230905073320.39)GCC4.2.1; libc++170000; 12:17:43 Sep 10 2023

** (teleguard_desktop:147320): CRITICAL **: 19:54:27.608: Failed to read XDG desktop portal settings: GDBus.Error:org.freedesktop.portal.Error.NotFound: Requested setting not found

** (teleguard_desktop:147320): CRITICAL **: 19:54:27.610: Failed to read XDG desktop portal settings: GDBus.Error:org.freedesktop.portal.Error.NotFound: Requested setting not found

** (teleguard_desktop:147320): CRITICAL **: 19:54:27.610: Failed to read XDG desktop portal settings: GDBus.Error:org.freedesktop.portal.Error.NotFound: Requested setting not found

** (teleguard_desktop:147320): CRITICAL **: 19:54:27.611: Failed to read XDG desktop portal settings: GDBus.Error:org.freedesktop.portal.Error.NotFound: Requested setting not found

** (teleguard_desktop:147320): CRITICAL **: 19:54:27.611: Failed to read XDG desktop portal settings: GDBus.Error:org.freedesktop.portal.Error.NotFound: Requested setting not found
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: SqfliteFfiException(error, Invalid argument(s): Failed to load dynamic library 'libsqlite3.so': libsqlite3.so: cannot open shared object file: No such file or directory}) DatabaseException(Invalid argument(s): Failed to load dynamic library 'libsqlite3.so': libsqlite3.so: cannot open shared object file: No such file or directory)
#0 SqfliteIsolate.handle (package:sqflite_common_ffi/src/isolate.dart:41)
<asynchronous suspension>
#1 FfiMethodCallHandler._isolateHandle (package:sqflite_common_ffi/src/database_factory_ffi.dart:96)
<asynchronous suspension>
#2 FfiMethodCallHandler.handleInIsolate (package:sqflite_common_ffi/src/database_factory_ffi.dart:52)
<asynchronous suspension>
#3 _SqfliteDatabaseFactoryImpl.invokeMethod (package:sqflite_common/src/mixin/factory.dart:22)
<asynchronous suspension>
#4 SqfliteDatabaseMixin.openDatabase (package:sqflite_common/src/database_mixin.dart:777)
<asynchronous suspension>
#5 SqfliteDatabaseMixin.doOpen (package:sqflite_common/src/database_mixin.dart:879)
<asynchronous suspension>
#6 SqfliteDatabaseOpenHelper.openDatabase (package:sqflite_common/src/database.dart:46)
<asynchronous suspension>
#7 SqfliteDatabaseFactoryMixin.openDatabase.<anonymous closure> (package:sqflite_common/src/factory_mixin.dart:110)
<asynchronous suspension>
#8 ReentrantLock.synchronized.<anonymous closure> (package:synchronized/src/reentrant_lock.dart:37)
<asynchronous suspension>
#9 BasicLock.synchronized (package:synchronized/src/basic_lock.dart:33)
<asynchronous suspension>
#10 DBProvider._openDatabaseWithMigration (package:teleguard_desktop/db/db_provider.dart:119)
<asynchronous suspension>
#11 DBProvider.init (package:teleguard_desktop/db/db_provider.dart:46)
<asynchronous suspension>

[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.NetworkManager was not provided by any .service files
#0 DBusClient._callMethod (package:dbus/src/dbus_client.dart:1102)
<asynchronous suspension>
#1 DBusClient.callMethod (package:dbus/src/dbus_client.dart:608)
<asynchronous suspension>
#2 DBusRemoteObjectManager.getManagedObjects (package:dbus/src/dbus_remote_object_manager.dart:80)
<asynchronous suspension>
#3 NetworkManagerClient.connect (package:nm/src/network_manager_client.dart:2351)
<asynchronous suspension>
#4 ConnectivityPlusLinuxPlugin._startListenConnectivity (package:connectivity_plus/src/connectivity_plus_linux.dart:64)
<asynchronous suspension>


Also, do you have xdg-desktop-portal-gtk installed ?
I installed xdg-desktop-portal-gtk but this nothing changed.

Re: TeleGuard on mga9

PostPosted: Jul 4th, '24, 21:25
by morgano
It seem to fail to find libsqlite3.so
By default we have /usr/lib64/libsqlite3.so.0
so maybe enough to make a symlink libsqlite3.so pointing to the one we have?

Re: TeleGuard on mga9

PostPosted: Jul 4th, '24, 21:56
by doktor5000
nexus wrote:[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: SqfliteFfiException(error, Invalid argument(s): Failed to load dynamic library 'libsqlite3.so': libsqlite3.so: cannot open shared object file: No such file or directory}) DatabaseException(Invalid argument(s): Failed to load dynamic library 'libsqlite3.so': libsqlite3.so: cannot open shared object file: No such file or directory)

I'd say this is your error.

You would need to have lib64sqlite3_0 installed although that should be installed by default.

Re: TeleGuard on mga9

PostPosted: Jul 4th, '24, 22:17
by morgano
Problem is that the .so file in Mageia have an extra ".0" to the end of its name.

Re: TeleGuard on mga9

PostPosted: Jul 5th, '24, 06:04
by nexus
After adding symlink /usr/lib64/libsqlite3.so TeleGuard works. Thank you very much.

Re: [SOLVED]TeleGuard on mga9

PostPosted: Jul 5th, '24, 14:24
by Germ
Please mark your topic as [SOLVED]. Edit your first post and add it to the start of your topic title.
Thanks.

Re: TeleGuard on mga9

PostPosted: Jul 5th, '24, 17:04
by doktor5000
morgano wrote:Problem is that the .so file in Mageia have an extra ".0" to the end of its name.

No, the problem is that program would link against the unversioned library file. By default this is only contained in the -devel package:

Code: Select all
[doktor5000@Mageia9]─[17:03:20]─[~] ls -al /usr/lib64/libsqlite3.so
lrwxrwxrwx 1 root root 19 Mär 14 15:30 /usr/lib64/libsqlite3.so -> libsqlite3.so.0.8.6*
[doktor5000@Mageia9]─[17:03:32]─[~] rpm -qf /usr/lib64/libsqlite3.so
lib64sqlite3-devel-3.40.1-1.1.mga9

Re: [SOLVED]TeleGuard on mga9

PostPosted: Jul 5th, '24, 17:26
by morgano
Oh.
Thanks for pointing that out.
I do not get the logic of having production type files in -devel package... sound to me like it is only for development or building

Re: [SOLVED]TeleGuard on mga9

PostPosted: Jul 5th, '24, 17:33
by doktor5000
You're misunderstanding our library policy. https://wiki.mageia.org/en/Libraries_policy
An application should not link against an unversioned library. That's a problem with how the application was linked, not with our library policy, which basically just follows established best practices.

Re: [SOLVED]TeleGuard on mga9

PostPosted: Jul 6th, '24, 12:07
by nexus
If adding symlink to /usr/lib64/libsqlite3.so.0.8.6 as /usr/lib64/libsqlite3.so is not good idea maybe is better place this symlink in /usr/share/teleguard_desktop/lib/?

Re: [SOLVED]TeleGuard on mga9

PostPosted: Jul 7th, '24, 15:39
by doktor5000
Simply install lib64sqlite3-devel - no need to manually create any symlink.