Saturday, 2021-06-05

*** frinring_ is now known as frinring09:31
Mister_MagisterCan you access pixelratio in c++? before qml12:39
x2sMaybe over some wayland library?12:44
x2sOr just in qt?12:45
x2sfor Qt you can use
Mister_Magisterx2s: does QScreen::pixelRatio match Theme.pixelRatio?12:48
x2sMister_Magister: I can't tell you12:52
x2sI have no idea where the Theme class comes from :)12:52
x2sShould be in the documentation of it though.12:52
Mister_Magisterx2s: yeah… its not13:03
Mister_Magisterits persistent in all devices13:04
x2swhere does the Theme class belong to?13:21
Mister_Magisterx2s: you know like anything about sfos app development?13:47
Mister_MagisterFor anyone else wanting to access Theme in c++.
Mister_Magisterfound it via my old issue in sfos browser lmao14:01
Mister_Magisterlemme guess its not allowed in jolla store xd14:02
x2sthere's the doc! \o/14:06
x2ssadly the doc doesn't say what values you get14:07
elros1isn't that what we set in ports so dconf /desktop/sailfish/silica/theme_pixel_ratio?14:44
Mister_Magisterelros1: yes it is15:46
Mister_Magistercan you access WebView's current loaded page html from qml?15:47
Mister_Magisterx2s: and the doc is for qml so not solving my issue, your point?15:47
Mister_Magistershort answer, you can. Long answer, you also can but its complicated16:19
Mister_Magisteralso i found typo16:20
Mister_MagisterTo whom it might concern: this should be named EmbedLiteDownloadManager to match the rest. Can't post an issue :/16:23
Mister_Magisterwhats diff between onTapped and onClicked? sfos browser toolbar use sometimes one sometimes second one (could improve consistency)16:32
elros1anybody tried x-url-handler in 4.1.0.x? I can't get it working17:22
Nico-old-defunctMister_Magister should know :D17:28
elros1Mister_Magister which of your app use x-url-handler so I can test whether it works?17:49
Mister_Magisterbut you can add it easily17:49
Mister_Magisterelros1: i tried it17:49
Mister_Magisterworks correctly17:49
Mister_Magisterelros1: do you have some app in which you want to use x-url-handler or what do you want to achieve?17:50
elros1yeah I want to try it in depecher, previously I used more powerful x-maemo-highlight but that require custom app chooser prompt17:50
Mister_Magisterelros1: so if you want to handle lets say, remove x-scheme-handler and add x-url-handler/t.me17:51
Mister_Magisterelros1: i will help you out just talk to me :P17:56
elros1that is what I did, but still browser is opened
Mister_Magisterit doesn't open picker17:58
Mister_Magisterwhats in mime.cache17:59
Mister_Magisterelros1: that won't work18:00
Mister_Magisterapps that want to add themself to app picker copy their .desktop file to ~/.local/share/applications/ and update that database18:00
elros1what? not they don't, that is annoying and overwrite MIME handlers in /usr/share/applications18:01
elros1I have clear ~/local/share/applications18:02
Mister_Magisteryes they do18:02
Mister_Magisterelros1: thats because you don't have any app that adds itself to app picker18:03
elros1I know some apps use it but it' s dirty hack to fool harbour rules18:03
Mister_Magisterthats the only way i know18:03
Mister_Magisterbut issues with app picker are outside of the scope of x-url-handler question18:03
elros1sureb 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 ~/.local18:04
Mister_Magisterwill look into it18:05
Mister_Magisterbut as far as we can see that doesn't work18:05
Mister_MagisterAfter pain and suffering and deep understanding of how sfos browser is made:
Mister_Magisterits entirely in qml/js so i can make patch for it18:44
elros1so 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 me19:07
Mister_Magisterthats what i said yes19:08
Mister_Magisterelros1: reason is most likely lacking .desktop file in ~/.local/share/applications19:09
elros1I added some test desktops, lca-tool --file --print some.pdf shows more than one handler but still prompt windows is not shown19:10
elros1ah so xdg-open triggers only default action..19:59
*** Sellerie3 is now known as Sellerie21:53
*** nyov is now known as Guest8804122:12

Generated by 2.17.1 by Marius Gedminas - find it at!