*** frinring_ is now known as frinring | 09:31 | |
Mister_Magister | Can you access pixelratio in c++? before qml | 12:39 |
---|---|---|
x2s | Maybe over some wayland library? | 12:44 |
x2s | Or just in qt? | 12:45 |
x2s | for Qt you can use https://doc.qt.io/qt-5/qscreen.html#devicePixelRatio-prop | 12:47 |
Mister_Magister | x2s: does QScreen::pixelRatio match Theme.pixelRatio? | 12:48 |
x2s | Mister_Magister: I can't tell you | 12:52 |
Mister_Magister | yeee | 12:52 |
x2s | I have no idea where the Theme class comes from :) | 12:52 |
x2s | Should be in the documentation of it though. | 12:52 |
Mister_Magister | x2s: yeah… its not | 13:03 |
Mister_Magister | its persistent in all devices | 13:04 |
x2s | where does the Theme class belong to? | 13:21 |
Mister_Magister | x2s: you know like anything about sfos app development? | 13:47 |
Mister_Magister | For anyone else wanting to access Theme in c++. https://github.com/sailfishos/sailfish-components-webview/blob/master/rpm/sailfish-components-webview.spec#L14 https://github.com/sailfishos/sailfish-components-webview/blob/master/lib/lib.pro#L10-L12 https://github.com/sailfishos/sailfish-components-webview/blob/master/lib/webenginesettings.cpp#L116 | 14:01 |
Mister_Magister | found it via my old issue in sfos browser lmao | 14:01 |
Mister_Magister | lemme guess its not allowed in jolla store xd | 14:02 |
x2s | https://sailfishos.org/develop/docs/silica/qml-sailfishsilica-sailfish-silica-theme.html/ | 14:06 |
x2s | there's the doc! \o/ | 14:06 |
x2s | sadly the doc doesn't say what values you get | 14:07 |
elros1 | isn't that what we set in ports so dconf /desktop/sailfish/silica/theme_pixel_ratio? | 14:44 |
Mister_Magister | elros1: yes it is | 15:46 |
Mister_Magister | can you access WebView's current loaded page html from qml? | 15:47 |
Mister_Magister | x2s: and the doc is for qml so not solving my issue, your point? | 15:47 |
Mister_Magister | short answer, you can. Long answer, you also can but its complicated | 16:19 |
Mister_Magister | also i found typo | 16:20 |
Mister_Magister | To whom it might concern: https://git.sailfishos.org/mer-core/embedlite-components/blob/master/jscomps/EmbedliteDownloadManager.js this should be named EmbedLiteDownloadManager to match the rest. Can't post an issue :/ | 16:23 |
Mister_Magister | whats diff between onTapped and onClicked? sfos browser toolbar use sometimes one sometimes second one (could improve consistency) | 16:32 |
elros1 | anybody tried x-url-handler in 4.1.0.x? I can't get it working | 17:22 |
Nico-old-defunct | Mister_Magister should know :D | 17:28 |
elros1 | Mister_Magister which of your app use x-url-handler so I can test whether it works? | 17:49 |
Mister_Magister | none | 17:49 |
Mister_Magister | but you can add it easily | 17:49 |
Mister_Magister | elros1: i tried it | 17:49 |
Mister_Magister | works correctly | 17:49 |
Mister_Magister | elros1: do you have some app in which you want to use x-url-handler or what do you want to achieve? | 17:50 |
elros1 | yeah I want to try it in depecher, previously I used more powerful x-maemo-highlight but that require custom app chooser prompt | 17:50 |
Mister_Magister | elros1: so if you want to handle lets say t.me, remove x-scheme-handler and add x-url-handler/t.me | 17:51 |
Mister_Magister | elros1: i will help you out just talk to me :P | 17:56 |
elros1 | that is what I did, but still browser is opened https://pastebin.com/FAS43dzj | 17:57 |
Mister_Magister | it doesn't open picker | 17:58 |
Mister_Magister | ? | 17:58 |
elros1 | no | 17:59 |
Mister_Magister | whats in mime.cache | 17:59 |
Mister_Magister | oh | 17:59 |
Mister_Magister | elros1: that won't work | 18:00 |
Mister_Magister | apps that want to add themself to app picker copy their .desktop file to ~/.local/share/applications/ and update that database | 18:00 |
elros1 | what? not they don't, that is annoying and overwrite MIME handlers in /usr/share/applications | 18:01 |
elros1 | I have clear ~/local/share/applications | 18:02 |
Mister_Magister | yes they do | 18:02 |
Mister_Magister | elros1: thats because you don't have any app that adds itself to app picker | 18:03 |
elros1 | I know some apps use it but it' s dirty hack to fool harbour rules | 18:03 |
Mister_Magister | heh | 18:03 |
Mister_Magister | thats the only way i know | 18:03 |
Mister_Magister | but issues with app picker are outside of the scope of x-url-handler question | 18:03 |
elros1 | sureb but for the record simply you can do this same as jolla do so put your MIME handler in /usr/share/applications and remove cache from ~/.local | 18:04 |
Mister_Magister | will look into it | 18:05 |
Mister_Magister | but as far as we can see that doesn't work | 18:05 |
Mister_Magister | After pain and suffering and deep understanding of how sfos browser is made: https://twitter.com/Mister1Magister/status/1401248006645616641 | 18:44 |
Mister_Magister | its entirely in qml/js so i can make patch for it | 18:44 |
elros1 | so I don't know what is wrong but for some reason OpenFileDialog.qml is not started and that is probably reasony why adding x-url-handler do nothing for me | 19:07 |
Mister_Magister | thats what i said yes | 19:08 |
Mister_Magister | elros1: reason is most likely lacking .desktop file in ~/.local/share/applications | 19:09 |
elros1 | I added some test desktops, lca-tool --file --print some.pdf shows more than one handler but still prompt windows is not shown | 19:10 |
elros1 | ah so xdg-open triggers only default action.. | 19:59 |
*** Sellerie3 is now known as Sellerie | 21:53 | |
*** nyov is now known as Guest88041 | 22:12 |
Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!