Re: [SailfishDevel] Slilica.Clipboard
On Wednesday, 11 December 2019 16.17 Thomas Tanghus wrote: > But since KWin is moving > to Wayland, maybe they have found a way to circumvent that restriction, > else one of my favorite utility apps Klipper would seize working? But I had my hopes up too early: https://phabricator.kde.org/T4449 -- Med venlig hilsen / Best regards Thomas Tanghus A: Because it breaks the logical sequence of discussion Q: Why is top posting bad? signature.asc Description: This is a digitally signed message part. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Slilica.Clipboard
On Wednesday, 11 December 2019 14.34 Pekka Vuorela wrote: > > So basically the only way to monitor the clipboard is to poll it > > regularly? > > Wayland offers clipboard content only to active windows / apps, so not > sure how feasible your intention is. You're probably right. Even polling doesn't help. But since KWin is moving to Wayland, maybe they have found a way to circumvent that restriction, else one of my favorite utility apps Klipper would seize working? -- Med venlig hilsen / Best regards Thomas Tanghus A: Because it breaks the logical sequence of discussion Q: Why is top posting bad? signature.asc Description: This is a digitally signed message part. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Slilica.Clipboard
On Wed, 2019-12-11 at 12:53 +0100, Thomas Tanghus wrote: > On Tuesday, 10 December 2019 21.54 Thomas Tanghus wrote: > > I was playing a bit with the Clipboard module, just to see how it > > works, > > > > So: How can it be that it's triggered by Sailfish Connect and not > > any > > other apps? > > Answering myself: The onTextChanged is only triggered when the app is > in the > foreground, which in itself makes it impossible on a phone. Sailfish > Connect > listens for network packages and injects into the clipboard, but the > event > is only triggered when the app is in the foreground. > > So basically the only way to monitor the clipboard is to poll it > regularly? Wayland offers clipboard content only to active windows / apps, so not sure how feasible your intention is. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Slilica.Clipboard
On Wednesday, 11 December 2019 12.53 Thomas Tanghus wrote: > My idea was to make an app like the Plasma Klipper app And apparently I'm not the only one: https://together.jolla.com/question/50637/clipboard-paste-ring/ -- Med venlig hilsen / Best regards Thomas Tanghus A: Because it breaks the logical sequence of discussion Q: Why is top posting bad? signature.asc Description: This is a digitally signed message part. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Slilica.Clipboard
On Tuesday, 10 December 2019 21.54 Thomas Tanghus wrote: > I was playing a bit with the Clipboard module, just to see how it works, > > So: How can it be that it's triggered by Sailfish Connect and not any > other apps? Answering myself: The onTextChanged is only triggered when the app is in the foreground, which in itself makes it impossible on a phone. Sailfish Connect listens for network packages and injects into the clipboard, but the event is only triggered when the app is in the foreground. So basically the only way to monitor the clipboard is to poll it regularly? I'm guessing this is old news for most; I just haven't tried to use it before now :) My idea was to make an app like the Plasma Klipper app, which I use all the time: https://docs.kde.org/stable5/en/kde-workspace/klipper/index.html -- Med venlig hilsen / Best regards Thomas Tanghus A: Because it breaks the logical sequence of discussion Q: Why is top posting bad? signature.asc Description: This is a digitally signed message part. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
[SailfishDevel] Slilica.Clipboard
I was playing a bit with the Clipboard module, just to see how it works, and did something similar to: ApplicationWindow { id: app property string text Binding { target: app property: 'text' value: Clipboard.text } onTextChanged: console.log("Clipboard:", text) } And then tried to copy some text from different apps. Nothing happened. Looking at the code, wondering if that couldn't be done in QML, suddenly it got triggered and showed a piece of the code...? Now totally baffled thinking, if the SDK shared some..., nah; when I realized I had Sailfish Connect[*] running and connected to my Plasma desktop, and I had been copying text in QtCreator 😃 So: How can it be that it's triggered by Sailfish Connect and not any other apps? [*] https://openrepos.net/content/r1tschy/sailfish-connect -- Med venlig hilsen / Best regards Thomas Tanghus A: Because it breaks the logical sequence of discussion Q: Why is top posting bad? signature.asc Description: This is a digitally signed message part. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org