libera/#maemo-leste/ Tuesday, 2024-07-02

dsc_I made a context menu to copy messages to clipboard etc.14:00
dsc_https://github.com/maemo-leste/conversations/blob/master/src/chatwindow.cpp#L397-L47514:00
dsc_which works fine in VM but I noticed some interesting behavior on D414:00
dsc_if you dismiss the menu by clicking outside of it, conversations will not register any click events14:01
dsc_test14:01
dsc_as if control is not given back to the underlying app14:01
fmg_d4but why would it not work on arm only?14:02
dsc_im not sure14:03
Wizzupcould be touch event vs mouse event14:04
fmg_d4hmm, right14:04
fmg_d4who renders the menu? xcb qpa?14:05
Wizzupno idea14:06
dsc_its a qmenu, not sure14:06
dsc_https://plak.infrapuin.nl/selif/d5u20ffy.png14:06
dsc_looks like this14:06
Wizzupthat looks broken theme wise14:08
Wizzupdid you launch this over ssh?14:08
dsc_no14:08
Wizzupok14:08
Wizzupit should look like the menu in OMP14:08
Wizzupassuming that still works14:09
fmg_d4btw, recently i have no sound in omp at all14:11
fmg_d4no matter calls or not14:11
dsc_also `QDesktopServices::openUrl(QUrl("https://bla.com", QUrl::TolerantMode));` yields "Unable to detect a web browser to launch"14:14
dsc_im assuming it does some XDG stuff14:15
fmg_d4use hildon api14:15
fmg_d4hildon_uri_open14:15
dsc_ty14:15
freemangordondsc_: also, maybe it would be a good idea to not open browser for links to images, but embed them in the chat, but I guess that's for the future14:17
dsc_freemangordon: yes I wanted to do HEAD to any link, determine content-type, then do embedding14:17
dsc_but Wizzup hates my ideas14:18
dsc_:-P14:18
freemangordonno need to do get request, you already have the mime type in the message part, no?14:18
dsc_ah, for Tp messages14:19
freemangordonmhm14:19
freemangordonwell, at least that's the theory, we are yet to see how that works in practice14:20
freemangordonbut messages might be multi-part with different mime types for each part14:20
dsc_regarding Tp media, we only handle TextChannel atm., we need to decide some things on how to handle them like saving them in rtcom or not14:21
freemangordonno, it is still text channel14:22
freemangordonbut a message in that channel can have multiple parts, IIUC14:22
freemangordonbut yeah, we have to decide how to handle that14:22
dsc_https://telepathy.freedesktop.org/spec/index.html#Channel-Types14:23
dsc_i looked into `org.freedesktop.Telepathy.Channel.Type.FileTransfer` earlier14:23
dsc_needs further investigation14:24
freemangordonsee https://telepathy.freedesktop.org/spec/Channel_Interface_Messages.html#Mapping:Message_Part14:24
dsc_ah14:24
freemangordonmhm14:25
dsc_interesting14:25
freemangordonI wonder if we can send an image over irc channel14:28
Wizzupno14:28
Wizzupyou can't14:28
Wizzupdcc is single party and god please don't use dcc14:29
fmg_d4dcc?14:29
Wizzuphttps://en.wikipedia.org/wiki/Direct_Client-to-Client14:29
fmg_d4so, we can try xmpp to send images14:29
fmg_d4or, last resort - facebook14:30
Wizzupyes, but it's quite pointless currently14:30
Wizzupsince gabble is really old and doesn't use the more 'modern' ways to send files14:30
dsc_:P14:30
Wizzupwe need a more modern xmpp implementation in tp first, probably using qxmpp14:30
fmg_d4but I wanted to see how others do it first, before extending haze14:31
WizzupI would personally just hold off on trying to add special image handing currently14:31
Wizzupwe have imo bigger things to tackle14:31
fmg_d4right14:31
dsc_[W] [chatwindow.cpp::478] "https://www.openid.net/certification/open-source-project-certification-policy/" - "No actions or XDG applications exist for the scheme 'https'"14:54
dsc_^-- with hildon_uri_open()14:55
dsc_https://github.com/maemo-leste/conversations/blob/master/src/chatwindow.cpp#L47614:55
fmg_d4well, do you have ay browser installed?14:57
fmg_d4what does xdg-open do for that url?14:57
dsc_ah yes, jib didnt come with my VM it seems14:58
dsc_it works now14:58
dsc_well, it opens jib, but not the URL.14:58
dsc_close enough.14:58
fmg_d4well, jib shoul b fixed iguess ten14:58
dsc_yes14:59
dsc_$ cat /proc/22225/cmdline15:00
dsc_jib15:00
dsc_shouldnt it be passing something through argv?15:00
dsc_sry I dont know how this XDG stuff works :P15:00
fmg_d4it should15:01
fmg_d4afaik it should pass the url15:01
dsc_ok15:01
dsc_ill investigate15:02
Wizzuptry xdg-open https://bla and also x-www-browser https://bla15:06
Wizzup(make it a real url ofc)15:06
Wizzupdsc_: maybe the jib.desktop needs tweaks for xdg params, not sure15:07
dsc_Wizzup: there is no xdg-open15:10
dsc_`x-www-browser` works15:11
dsc_ill try to get `hildon_uri_open` to work, if it takes too long ill just do QProcess `x-www-browser` ?15:12
fmg_d4it works15:14
fmg_d4for sure I can open linsk from  emails15:14
dsc_error: invalid use of incomplete type ‘HildonURIAction’ 470 |         action->type = HILDON_URI_ACTION_XDG;15:18
dsc_i dont know how to use this API sorry15:18
dsc_its C crap15:18
freemangordonjust RTFM15:19
freemangordoninstall libhildonmime0-doc15:20
dsc_thx15:23
freemangordon"This is optional and NULL can be specified to use the default action instead."15:23
freemangordonopen /usr/share/gtk-doc/html/libhildonmime/index.html in a browser15:24
dsc_tried with NULL action just now, same behavior (jib without argv)15:25
freemangordonbecause it makes dbus call15:25
freemangordonif jib is not properly registered, that'd be the result15:26
freemangordonlemme try with xdg-open here in my vm15:26
dsc_dbus traffic looks OK15:26
freemangordonhere xdg-open launches chromium15:27
freemangordonwhat does xdg-open do in your VM?15:27
freemangordonsudo apt install xdg-utils15:28
dsc_https://bpa.st/raw/5KBA15:29
dsc_(via hildon_open_uri)15:29
dsc_xdg-open works15:29
freemangordonlemme see what happens15:34
freemangordonI guess your desktop file is broken, perhaps it is missing some %s or somesuch15:35
freemangordonjib does not work with modest as well15:35
dsc_https://bpa.st/raw/QOMA15:35
dsc_> Exec=jib15:36
dsc_%s there?15:36
freemangordonyeah, perhaps that is broken, lemme see15:36
freemangordonno idea, looking at what chromium does15:36
dsc_thanks15:36
freemangordonExec=/usr/bin/chromium %U15:37
dsc_ok cool15:37
dsc_ill fix it in jib15:37
freemangordonlemme try it first15:37
freemangordonyeah, that fixes it15:38
dsc_freemangordon: are you using chromium on d4?15:43
fmg_d4yes15:43
freemangordondsc_: https://github.com/maemo-leste/conversations/commit/38d9318722f705c41f1d72b8951fd6cb949f8bb816:48
freemangordonI guess this is not the latest version, right?16:48
freemangordonas you don;t really need to call hildon_uri_get_default_action_by_uri() or anything, just pass NULL to hildon_uri_open()16:48
dsc_freemangordon: ok, will fix later17:22
dsc_also need to fix https://github.com/maemo-leste/conversations/blob/master/src/conversations.cpp#L2217:32
freemangordonmhm17:32
dsc_would be nice to make a stable release, this week17:33
freemangordonalso, main window should not be made visible on new message17:33
freemangordononly the chat window17:33
dsc_ah, ok17:33
dsc_https://github.com/maemo-leste/conversations/blob/master/src/mainwindow.cpp#L22817:33
dsc_(pasting for myself later)17:34
freemangordonI'll try to find some time to make notifications work properly (like, overlaying the notification on the chat window)17:34
dsc_nice :)17:35
arno11Wizzup: i pushed the 3 deps for drnoksnes in extras: gbp, changelog, control and tag seem ok but they don't appear in jenkins. Any idea or tips ?18:21
siceloarno11: look at the jenkins log18:36
siceloshould be able to see if it's visiting the correct tag18:36
arno11ah ok ty18:37
freemangordonWizzup: https://github.com/maemo-leste-upstream-forks/voicecall/blob/master/voicecall.pro#L1419:56
freemangordonare you sure this is the correct path?19:56
freemangordonand not /usr/share/telepathy/clients/ ?19:57
Wizzuplet me look19:57
freemangordonconversations install to clients19:57
freemangordonas is telepathy-logger19:57
Wizzupah, client vs clients19:58
freemangordonmhm19:58
Wizzupyes, that appears to be a mistake19:58
Wizzupdon't know what the consequences of the mistake are, but that needs fixing19:58
freemangordonmhm19:59
Wizzupwant me to fix it?19:59
Wizzupit looks like on my droid4 I have the file in client and clients20:00
Wizzupprobably manually insalled20:00
freemangordonyes, please fix it20:00
freemangordonI am still on the abook error, findint that was a side-effect :)20:00
Wizzupbuilding now20:02

Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!