Sharing via email fails from ordinary application

REPRODUCIBILITY: always
OS VERSION: 4.1.0.24
HARDWARE: X10 II
UI LANGUAGE: CZ
REGRESSION: yes

DESCRIPTION:

When I want to share my location from OSM Scout (ordinary application without configured Sailjail permissions), I can do it via Twitter or Qr Code (plugin from OpenRepos), but I cannot do it via e-mail. UI just show me message that I have no configured account. Application logs these messages:

** (process:21336): WARNING **: 13:38:40.829: Cannot create directory: /home/defaultuser/.local/share/system/privileged/Accounts/libaccounts-glib

** (process:21336): WARNING **: 13:38:40.830: Error opening accounts DB: unable to open database file
[W] 2021-07-23 13:38:40.831 21336 unknown:0 - Manager could not be created, DB is locked

** (process:21336): WARNING **: 13:38:40.854: Cannot create directory: /home/defaultuser/.local/share/system/privileged/Accounts/libaccounts-glib

** (process:21336): WARNING **: 13:38:40.854: Error opening accounts DB: unable to open database file
[W] 2021-07-23 13:38:40.855 21336 unknown:0 - Manager could not be created. DB is locked

** (process:21336): CRITICAL **: 13:38:40.856: ag_manager_list_services: assertion 'AG_IS_MANAGER (manager)' failed

** (process:21336): CRITICAL **: 13:38:40.857: ag_manager_set_db_timeout: assertion 'AG_IS_MANAGER (manager)' failed

** (process:21336): CRITICAL **: 13:38:40.859: ag_manager_list: assertion 'AG_IS_MANAGER (manager)' failed

** (process:21336): CRITICAL **: 13:38:40.859: ag_manager_list_services: assertion 'AG_IS_MANAGER (manager)' failed

** (process:21336): WARNING **: 13:38:40.865: Cannot create directory: /home/defaultuser/.local/share/system/privileged/Accounts/libaccounts-glib

** (process:21336): WARNING **: 13:38:40.866: Error opening accounts DB: unable to open database file
[W] 2021-07-23 13:38:40.866 21336 unknown:0 - Manager could not be created. DB is locked

** (process:21336): CRITICAL **: 13:38:40.878: ag_manager_list_services: assertion 'AG_IS_MANAGER (manager)' failed

** (process:21336): CRITICAL **: 13:38:40.878: ag_manager_set_db_timeout: assertion 'AG_IS_MANAGER (manager)' failed

** (process:21336): CRITICAL **: 13:38:40.879: ag_manager_list: assertion 'AG_IS_MANAGER (manager)' failed

** (process:21336): CRITICAL **: 13:38:40.879: ag_manager_list_services: assertion 'AG_IS_MANAGER (manager)' failed


** (process:21336): WARNING **: 13:39:08.397: Cannot create directory: /home/defaultuser/.local/share/system/privileged/Accounts/libaccounts-glib

** (process:21336): WARNING **: 13:39:08.397: Error opening accounts DB: unable to open database file
[W] 2021-07-23 13:39:08.398 21336 unknown:0 - Manager could not be created, DB is locked

** (process:21336): CRITICAL **: 13:39:08.399: ag_manager_set_abort_on_db_timeout: assertion 'AG_IS_MANAGER (manager)' failed
[D] 2021-07-23 13:39:08.413 21336 unknown:0 - Messaging :  opening database

** (process:21336): CRITICAL **: 13:39:08.444: ag_manager_list_by_service_type: assertion 'AG_IS_MANAGER (manager)' failed
[W] 2021-07-23 13:39:08.623 21336 unknown:0 - "Failed to attach key memory region for qtcontacts-sqlite-np: QSharedMemory::attach (shmget): doesn't exist"
[W] 2021-07-23 13:39:08.624 21336 unknown:0 - "Failed to open contacts transient store"
[W] 2021-07-23 13:39:08.626 21336 unknown:0 - "Unable to open synchronous engine database connection"
[W] 2021-07-23 13:39:08.627 21336 unknown:0 - QSqlQuery::prepare: database not open
[W] 2021-07-23 13:39:08.628 21336 unknown:0 - "Failed to prepare distinct display label group selection query:  \n SELECT DISTINCT DisplayLabelGroup FROM DisplayLabels ORDER BY DisplayLabelGroupSortOrder ASC"

** (process:21336): CRITICAL **: 13:39:08.690: ag_manager_list_by_service_type: assertion 'AG_IS_MANAGER (manager)' failed

** (process:21336): CRITICAL **: 13:39:08.693: ag_manager_list_by_service_type: assertion 'AG_IS_MANAGER (manager)' failed

I’m sure that this functionality was working in previous OS releases…

1 Like

It works fine, when I setup Sailjail with Sharing and Privileged permissions:

# cat /usr/share/applications/harbour-osmscout.desktop
[Desktop Entry]
Type=Application
...
Exec=/usr/bin/sailjail --verbose --profile=harbour-osmscout.desktop /usr/bin/harbour-osmscout 

[X-Sailjail]
Permissions=Sharing;Privileged;...
...

But running map application as privileged sounds weird. Beside it, my application lost access to ~/Maps directory, where I am storing offline maps :-/

Sailjail support for 3rd party applications is not official yet, right?