Broken sharing system

Hello folks,

I tried to fix my SMS share plugin, but somehow the whole sharing system dead. (The share plugin selector UI does not came up at all.)

I cleaned up all 3rd party sharing extensions but it did not helped.
Reboot was performed several times.

Here is the journalctr output:

okt 26 00:33:46 XperiaXA2 dbus-daemon[4360]: dbus-daemon[4360]: [session uid=100000 pid=4360] Activating service name='org.sailfishos.share' requested by ':1.71' (uid=100000 p
id=6205 comm="booster [silica-qt5]                             ")
okt 26 00:33:46 XperiaXA2 invoker[6517]: Invoking execution: '/usr/libexec/sailfish-share'
okt 26 00:33:46 XperiaXA2 lipstick[4477]: [W] unknown:0 - No launcher item found for "sailfish-share.desktop".
okt 26 00:33:46 XperiaXA2 kernel: binder: 2987:2987 --> 0:0 transaction failed 29189/0, size 32-0 line 2149
okt 26 00:33:47 XperiaXA2 kernel: binder: 2987:2987 --> 0:0 transaction failed 29189/0, size 32-0 line 2149
okt 26 00:33:48 XperiaXA2 kernel: binder: 2987:2987 --> 0:0 transaction failed 29189/0, size 32-0 line 2149
okt 26 00:33:48 XperiaXA2 tracker-store[6077]: OK
okt 26 00:33:49 XperiaXA2 kernel: binder: 2987:2987 --> 0:0 transaction failed 29189/0, size 32-0 line 2149
okt 26 00:33:50 XperiaXA2 kernel: binder: 2987:2987 --> 0:0 transaction failed 29189/0, size 32-0 line 2149
okt 26 00:33:51 XperiaXA2 dbus-daemon[4360]: dbus-daemon[4360]: [session uid=100000 pid=4360] Activated service 'org.sailfishos.share' failed: Process org.sailfishos.share exi
ted with status 1

Any idea is warmly welcome what shall I check.

I did an strace trace from the dbus-daemon whilst activating a sharing:

If anyone would be able to spot any suspicious that would be welcome.

Updating to 4.3 solved this issue.

hello marton !
is you code in github ?
https://github.com/martonmiklos/harbour-sms-share-plugin ?

i want to update olive goes shoppin to new sharing and would like to do a copy paste :slight_smile:

Update: found and used this

                MenuItem {
                    //: Share a file
                    //% "Share"
                    text: qsTrId("sailfish-office-la-share")
                    onClicked: {
                        shareAction.resources = [model.filePath]
                        shareAction.trigger()
                    }
                    ShareAction {
                        id: shareAction
                        mimeType: model.fileMimeType
                    }
                }

used it like this:

MenuItem {

            text: qsTr("Share")
            onClicked: {
                if (shoppingModel.count > 0)
                {
                    var listToShare = "";
                    for (var i=0; i< shoppingModel.count; i++) {
                        var oneItemAsString = shoppingModel.get(i).name + " " + shoppingModel.get(i).amount
                        listToShare += "\n" + oneItemAsString // here newline instead
                    }
                    {
                        shareAction.resources = [listToShare]
                        shareAction.trigger()
                    }
                    // pageStack.push(Qt.resolvedUrl("ShareWithPage.qml"), {destroyOnPop:true, mainPage: firstPage, sharedName: "My shopping list", sharedContent: listToShare, sharedType:"text/x-url" })
                }
            }
            ShareAction {
                id: shareAction
                mimeType: "text/x-url"

but now i get a popup saying: no app available for sharing

Hi @pawel.spoon

Yes that’s my plugin, but it is broken since 4.2 I think :frowning:
I need to have some spare time to fix it.

Seems it has one more set of breaking changes in the pipe, so don’t feel bad about it until those lands.

slava made the QR share plugin comaible with both old and new sharing plugin system in this commit:

It could be helpful for fixing broken input plugins.

My problem with the sharing plugins that the debugging is cumbersome and I do not excel in QML…

1 Like