Hello,
I've designed a case for my Pixel 3a and ordered it at cewe. If you like it, I could post the original image.
For me, it's really nice
Hello,
I've designed a case for my Pixel 3a and ordered it at cewe. If you like it, I could post the original image.
For me, it's really nice
I found the solution! I came across the documentation for the policy groups. So I added "content_exchange"
to the list of the "policy-groups"
in the apparmor file and - voila - the input file dialog shows me a list of apps.
Thanks for the hint with the Content Hub!
@ubportsnews Merry Christmas and many greetings. Thank you for the awesome work on Ubuntu Touch. I love this system and I'm looking forward for the things and news to come. Keep up the good work!
@developerbayman Yes, right I'm very proud of it and I will keep it up
@developerbayman You could try out Touch IDE which is a development environment you can use right on your UT phone. You can use this also in conjunction with touchide.net to be also able to develop in the browser.
I hope this helps.
I had a similar problem and I found a solution At first, you have to add
"content_exchange"
to the list of the "policy_groups"
in your apparmor file. Then, you'll get a list of apps when clicking on the file input. Then, you can use the change
-event of the file input to read the contents of the chosen file. E.g.:
var input = document.getElementById("file");
if (input.files.length > 0) {
var reader = new FileReader();
reader.addEventListener("load", function() {
console.log(reader.result);
});
reader.readAsDataURL(input.files[0]);
}
I hope this helps a bit.
Development works fine, thanks for the hint
@kristatos Oh, I thought, it was the most recent one. So, I'll switch to development and see what happens.
Hello,
I've just changed the channel to 20.04 RC. I can't uninstall my own apps to update them to the focal versions. I'm getting this error in clickable:
Trying to uninstall the app first.
Error: GDBus.Error:com.lomiri.click.OperationFailed: failed to remove schulferien.daniel
On the other side, I have two camera apps and two weather apps in the Launcher. What could be wrong here?
Hello,
I've designed a case for my Pixel 3a and ordered it at cewe. If you like it, I could post the original image.
For me, it's really nice
@developerbayman Yes, right I'm very proud of it and I will keep it up
@developerbayman You could try out Touch IDE which is a development environment you can use right on your UT phone. You can use this also in conjunction with touchide.net to be also able to develop in the browser.
I hope this helps.
@ubportsnews Merry Christmas and many greetings. Thank you for the awesome work on Ubuntu Touch. I love this system and I'm looking forward for the things and news to come. Keep up the good work!
So, I finally found a solution. Okay, in my case, the constellation is a bit different: I have a qml app with a WebView. I ended up to trigger the download from HTML/Javascript side and to process the download on qml side. I failed to use the SingleDownload component because it can not handle data-URLs. So I implemented my own solution:
// ...
WebContext {
id: mainContext
onDownloadRequested: {
var fileUrl = "/home/phablet/.local/share/schulferien.daniel/Downloads/" + download.downloadFileName;
var request = new XMLHttpRequest();
request.open("PUT", fileUrl, false);
request.send(decodeURIComponent(download.url.toString().replace("data:text/plain;,", "")));
PopupUtils.open(downloadedMessage);
}
}
WebView {
id: mainWebView
context: mainContext
// ...
The "fileUrl" has to point to the application path + Downloads, otherwise a "device not open" error will occur.
I have the "Warnapp Deutschland" from OpenStore which worked fine.
@cibersheep Thanks, this is a good starting point. I've tried around with SingleDownload and DownloadManager component. As long as the content to download comes from a web url, it works fine, but I have much difficulties with data urls.
E.g.:
This works:
element1.setAttribute('href', 'data:;base64,' + btoa("Hello World! What's up with you?"));
This doesn't:
element1.setAttribute('href', 'data:;base64,' + btoa(icsContent));
(I left out the mime types because it didn't make any difference)
The only difference is that icsContent contains a long string with line breaks (\n) but apart from that it will also be converted to base64.
My last idea is to create a web service, post the base64 to it and fetch the result by SingleDownload. That means that such a download requires internet which is not nice in this case.
Is there another trick I can use?