Daanct12 has quit [Remote host closed the connection]
Daanct12 has joined #maemo-leste
zhxt has joined #maemo-leste
xmn has quit [Ping timeout: 260 seconds]
Daanct12 has quit [Quit: Quitting]
Daanct12 has joined #maemo-leste
joerg has quit [Ping timeout: 252 seconds]
joerg has joined #maemo-leste
drrrty has quit [Ping timeout: 246 seconds]
mardy_2nd is now known as mardy
asrieldreemurr has joined #maemo-leste
jr-logbot` has joined #maemo-leste
lexik_ has joined #maemo-leste
zhxt has quit [Ping timeout: 250 seconds]
jesster1234 has joined #maemo-leste
sixwheeledbeast has quit [*.net *.split]
jessicant has quit [*.net *.split]
amk has quit [*.net *.split]
vectis has quit [*.net *.split]
asriel has quit [*.net *.split]
xes has quit [*.net *.split]
[TheBug] has quit [*.net *.split]
jr-logbot has quit [*.net *.split]
lexik has quit [*.net *.split]
vectis has joined #maemo-leste
sixwheeledbeast has joined #maemo-leste
amk has joined #maemo-leste
[TheBug] has joined #maemo-leste
jesster1234 has quit [Excess Flood]
jessicant has joined #maemo-leste
sixwheel- has joined #maemo-leste
bencoh_ has quit [Changing host]
bencoh_ has joined #maemo-leste
bencoh_ is now known as bencoh
amk has quit [Ping timeout: 252 seconds]
sixwheeledbeast has quit [Ping timeout: 252 seconds]
amk has joined #maemo-leste
<freemangordon> hmm, looks like w have problem with glib
<freemangordon> and that's the reason why modest cannot open pdfs
<parazyd> What is it with glib?
<freemangordon> parazyd: https://pastebin.com/WzwsmXTW
<freemangordon> see default: osso_pdfviewer.desktop
<freemangordon> it should be hildon-osso_pdfviewer.desktop, (as are recommended and installed)
<freemangordon> also, the same thing on fremantle returns hildon-osso_pdfviewer.desktop
<freemangordon> what do you mean?
<parazyd> It's called osso_pdfviewer.desktop
<freemangordon> but, it is in hildon folder
<freemangordon> so g_app_info_get_id() must prefix it with hildon-
<parazyd> hmm
<parazyd> So what file is it actually looking for?
<parazyd> hildon-osso_pdfviewer.desktop or osso_pdfviewer.desktop
<freemangordon> sorry, could you rephrase? who is the one looking?
<freemangordon> g_app_info_get_id returns "osso_pdfviewer.desktop" but should return "hildon-osso_pdfviewer.desktop"
<parazyd> Yeah that's what I asked
<parazyd> hmm ok
<parazyd> Maybe we need to provide our own mimeapps.list?
<freemangordon> no, mimeapps.list is fine
<freemangordon> hmm, wait, where is that?
<freemangordon> also, see what is returned by 'gio mime" for "Registered applications:" and "Recommended applications:"
<parazyd> Yeah I see
<parazyd> On my vm I get nothing
<freemangordon> do you have pdfviewer installed?
<parazyd> user@devuan:~$ gio mime application/pdf
<parazyd> No default applications for “application/pdf”
<parazyd> Yes
<freemangordon> weird
<freemangordon> maybe run update-desktop-database
<parazyd> ah ok, it appears after I install desktop-file-utils
<freemangordon> we must have that installed, please add it to some metapackage
<parazyd> I get the same output as you
<parazyd> ok
<freemangordon> application/pdf=hildon-osso_pdfviewer.desktop; is in mimeinfo.cache
<freemangordon> so glibe removes hildon- for some reason
<freemangordon> *glib
pere has quit [Ping timeout: 252 seconds]
[TheBug]_ has joined #maemo-leste
[TheBug] has quit [Ping timeout: 252 seconds]
[TheBug]_ is now known as [TheBug]
<parazyd> freemangordon: oh also
<parazyd> user@devuan:/etc/xdg$ sudo update-desktop-database
<parazyd> Could not parse file "/usr/share/applications/hildon-control-panel/apporder/applets.desktop": Key file does not have group ?Desktop Entry?
<freemangordon> yeah, but it just complains, it doesn;t make it abort
<parazyd> true
xes has joined #maemo-leste
<freemangordon> but have no more time to dig now
<freemangordon> on fremantle, glib 2.24 returns correct id
<freemangordon> I lookt at the fremantle glib, it is almost not patched
<freemangordon> at least those parts of the code are intact
<freemangordon> so this looks like bug.
<parazyd> But in general, how does it work if it shows a non-existent .desktop file?
<freemangordon> it is not shown
<freemangordon> this is used only as an id
<freemangordon> also, there is a logic that nows to replace '-' with '/'
<freemangordon> in glib that is
<parazyd> Weird
<freemangordon> could be, but that's what it is
<freemangordon> problem is that it is broken
Twig has joined #maemo-leste
<parazyd> Could we not just use the proper .desktop file if a mime handler is set?
<freemangordon> how to find it?
<parazyd> Default application for “application/pdf”: osso_pdfviewer.desktop
<parazyd> There it is
<freemangordon> and it is where?
<parazyd> Why does it matter?
<freemangordon> in /usr/share/applications/hildon
<freemangordon> how to parse that file if you don't know where it is?
<parazyd> hmm I'd assume gio/glib knows how to find it
<freemangordon> not really sure, seems xdg-open fails too
* freemangordon checks
Twig has quit [Remote host closed the connection]
<parazyd> freemangordon: xdg-open works here for pdf, albeit it just opens the program, not the file.
lexik_ has quit [Quit: No Ping reply in 180 seconds.]
<parazyd> Probably because some %u (or similar) is missing in https://github.com/maemo-leste/osso-pdf-viewer/blob/master/data/osso_pdfviewer.desktop.in#L7
lexik has joined #maemo-leste
L29Ah has quit [Ping timeout: 252 seconds]
The_Niz has quit [Ping timeout: 252 seconds]
The_Niz has joined #maemo-leste
<freemangordon> parazyd: see documantation for g_app_info_get_id
kona_ has joined #maemo-leste
<freemangordon> desktop file id from the xdg menu specification is defined as "The id to identify a desktop entry with. For example, if /usr/share/applications is specified as an <AppDir>, and /opt/ude as <LegacyDir prefix="foo-"> then /usr/share/applications/foo/bar.desktop, /usr/share/applications/foo-bar.desktop and /opt/ude/Settings/bar.desktop all have the same desktop-f
<freemangordon> "Gets the ID of an application. An id is a string that identifies the application. The exact format of the id is platform dependent. For instance, on Unix this is the desktop file id from the xdg menu specification. "
<freemangordon> gtg, ttyl
kona has quit [Ping timeout: 252 seconds]
Pali has joined #maemo-leste
<freemangordon> parazyd: this has nothing to do with the .desktop file itsef
freemangordon has joined #maemo-leste
freemangordon has quit [Ping timeout: 252 seconds]
zhxt has joined #maemo-leste
Pali has quit [Ping timeout: 260 seconds]
tmlind has quit [Ping timeout: 250 seconds]
tmlind has joined #maemo-leste
joerg has quit [Excess Flood]
joerg has joined #maemo-leste
xmn has joined #maemo-leste
inky has joined #maemo-leste
_inky has quit [Ping timeout: 252 seconds]
inky_ has quit [Ping timeout: 252 seconds]
crab_ has joined #maemo-leste
crab has quit [Ping timeout: 252 seconds]
crab_ is now known as crab
_inky has joined #maemo-leste
<freemangordon> parazyd: do we ship our own glib?
<parazyd> Not since ascii
<parazyd> err, since beowulf
<parazyd> We had our own in ascii
<freemangordon> is my patch there?
<parazyd> Yes
<freemangordon> ok
zhxt has quit [Ping timeout: 268 seconds]
peetah has quit [Ping timeout: 252 seconds]
Armen has quit [Ping timeout: 252 seconds]
peetah has joined #maemo-leste
pere has joined #maemo-leste
martijnb1 has joined #maemo-leste
<martijnb1> o/
<Wizzup> martijnb1: yo
<parazyd> Hey
<martijnb1> nice presentation :D
<Wizzup> thanks, didn't really prepare it much, but it was within the time limit at least :D
<martijnb1> hmm joining here with the libera matrix bridge seems bork
* martijnb1 is not nervous at all for the pmos presentation
<Wizzup> hehe
<Wizzup> I was quite nervous but then seeing the other ones made me less stressed
<Wizzup> if you catch my drift
* Wizzup is looking forward to it
MartijnBraam[m] has joined #maemo-leste
<martijnb1> heh yes
<martijnb1> so the matrix channel name on the wiki is wrong, it's #maemo-leste:libera.chat now
<Wizzup> which wiki?
<Wizzup> ours?
<martijnb1> yes
<Wizzup> so I'll change #libera_#maemo-leste:matrix.org to #maemo-leste:libera.chat?
<martijnb1> yes
<Wizzup> done, ty
<Wizzup> good luck in a bit btw
<martijnb1> thankfully oliver will do most of the presentation :), he's a lot better at this than me
<Wizzup> will try to be around and see it
<Wizzup> (have to leave around 1200, so perfect timing)
L29Ah has joined #maemo-leste
joerg has quit [Read error: Connection reset by peer]
<parazyd> Very nice
<Wizzup> yeah
<martijnb1> pfew, the perfect moment to have connetion issues :D
<Wizzup> better at that point than 5 mins earlier though
<martijnb1> definetly, the business part of the presentation was definetly the least prepared part
joerg has joined #maemo-leste
uvos has joined #maemo-leste
<uvos> freemangordon: osso_pdfviewer .destkop file is missing %f but it would not help
<uvos> because i just dosent appear to have support for opening files via cli
<uvos> osso_pdfviewer $somefile dosent work
<uvos> and there is no --help
<uvos> also no -f
<Wizzup> that's fixable :)
<uvos> yeah but that beggs the question how it ever worked
<Wizzup> could be using dbus
<uvos> presentation?
<uvos> freemangordon: oh btw the missing %* in .desktop files will be a constant scourge
<uvos> freemangordon: because hildon launcher was very broken and just passed %* in exec lines to applications cmdline - breaking them
<uvos> freemangordon: nokias awnser to this was simply to remove all the % parameters instead of fixing thair shit
<uvos> so its broken everywhere
<uvos> no idea how fremantle opend anything based on a mime
<uvos> must be hardcoded somewhere
<uvos> i fixed h-d recently so you can add the parameters now
<uvos> also ofc any logic for translateing the formates %u %f %F %k etc is missing in hildon
<Wizzup> uvos: yeah, we had to give one for the https://maemo-leste.github.io/funding-from-ngi-eu.html
<Wizzup> now, *finally* onto the news post ... :)
<uvos> is it public somewhere?
<uvos> just cuourious
<Wizzup> uvos: this one is not, but I can share the slides and videos with you if you want
<Wizzup> it was just a 10 mins 'pitch' (their required format)
<uvos> ok
<Wizzup> videos would be demo videos - hang on
<uvos> thx
<Wizzup> I need to rush to my appointment, back in ~2-3 hrs
<uvos> ok
<uvos> so news post d3, modest, ngi stuff, sphone i presume
<Wizzup> there'll be more, will reply when I get back
<Wizzup> it's been so long other things happened too
<parazyd> oh many news
<Wizzup> but yeah those are major ones
<uvos> parazyd: could you let me modify that, id have some small corrections and post links related media (video demonstations and so on)
<uvos> or i can just make it commen too
<parazyd> That's just an outline of what we'll write
<uvos> i know
<parazyd> Send what you want to add to Wizzup
<uvos> ok
<Wizzup> I have some local changes
<Wizzup> if you can hold off a few hours I can push those and you can add/change what you'd like of course
<Wizzup> or just a list/text is fine
<Wizzup> up to you
<Wizzup> afk
Armen has joined #maemo-leste
zhxt has joined #maemo-leste
xmn has quit [Ping timeout: 252 seconds]
inky has quit [Ping timeout: 252 seconds]
inky has joined #maemo-leste
inky_ has joined #maemo-leste
pere has quit [Ping timeout: 252 seconds]
_inky has quit [Ping timeout: 252 seconds]
inky has quit [Ping timeout: 252 seconds]
sixwheel- is now known as sixwheeledbeast
_inky has joined #maemo-leste
inky_ has quit [Ping timeout: 252 seconds]
drrty has joined #maemo-leste
pere has joined #maemo-leste
zhxt has quit [Ping timeout: 252 seconds]
pere has quit [Ping timeout: 252 seconds]
pere has joined #maemo-leste
drrty has quit [Read error: Connection reset by peer]
drrty has joined #maemo-leste
sunshavi_ has quit [Ping timeout: 268 seconds]
sunshavi_ has joined #maemo-leste
sunshavi_ has quit [Ping timeout: 252 seconds]
inky_ has joined #maemo-leste
martijnb1 has quit [Quit: WeeChat 3.2]
<lel> clort81 opened an issue: https://github.com/maemo-leste/bugtracker/issues/575 (Qalendar issues.)
mardy has quit [Read error: Connection reset by peer]
mardy has joined #maemo-leste
elastic_1 has quit [Quit: elastic_1]
elastic_dog has joined #maemo-leste
Pali has joined #maemo-leste
<freemangordon> uvos: 'they' use dbus to call executables
<freemangordon> but still, the issue is somewhere in glib
<freemangordon> later on I will try to debug
<uvos> freemangordon: where is this code that calls a mime?
<uvos> freemangordon: we need to support spec compliant .desktop files ofc
<freemangordon> dunno if you read it, so I'll repost
<Wizzup> uvos: wrt not newsworthy, usually I just try to exhaustively (but briefly) list prs we've closed
<freemangordon> g_app_info_get_id (info) returns 'osso_pdfviewer.desktop' instead of 'hildon-osso_pdfviewer.desktop'
<freemangordon> uvos: ^^^
<freemangordon> which is a bug IMO
<uvos> freemangordon: ok thats a problem
<freemangordon> mhm
<uvos> yeah spec saies that / is to be replaced with -
<uvos> below applications/
<uvos> but im more questioning this dbus thing
<uvos> im wondering why they did this instead of just calling the applicaiton
<uvos> becasue this way everything that supports opening the something needs a dbus service
<freemangordon> uvos: every hildon application is a dbus service as well
<freemangordon> hildon API does this for us
<freemangordon> that way you can have singleton applications too
<uvos> you can have sigleton applications either way
<freemangordon> it is really hard to achieve in a non-racy way
<uvos> there are upsream apis for this
<freemangordon> I won;t argue what is the best way though
<uvos> unique for gtk2
<uvos> and glib has something built in since gtk3 era
<freemangordon> but, I guess Nokia did it that way because you get dbus service for free and singleton app for free
<uvos> anyhow we must ofc support normal applicaitons too
<freemangordon> and having dbus servce for free is very good thing, for example you may extend systemui menu with simple xml that calls dbus
<uvos> so we need to decide somehow if we want to call the dbus interface
<uvos> or the xdg spec
<uvos> freemangordon: sure
<freemangordon> lets first fix glib
<uvos> or rather you fix glib im currently not adding anything other than comments on how stuff works
<freemangordon> also, for example alarmd calls dbus callbacks, so modest is basically 'woken up' that way
<uvos> sure thats all fine a good
<uvos> but opening via dbus vs regular mime should support regular mimes on both ends
<freemangordon> sure
<freemangordon> but I guess xdg-open just needs proper .desktop file, no?
<uvos> well for the pdf viewer the main problem is
<freemangordon> I mean - we shall just add whatever it needs
<uvos> it simply dosent support listing the file on cmdline
<uvos> so xdg-open cant work
<freemangordon> hmm, I see
<uvos> freemangordon: right otherwise you just have to add the % parameters to the exec line
<freemangordon> ok, I am cooking dinner ATM, will look at glib later on
<freemangordon> ttyl
<uvos> ttyl
<uvos> Wizzup: sure that point just stuck out to me
<uvos> Wizzup: because everything else was more important
<Wizzup> uvos: yeah, the list is not completed, that's why it's in a tmp file
<Wizzup> thanks for the diff, I'll go over it today or tomorrow and then start working on the news post
inky has joined #maemo-leste
<uvos> oh btw how do you turn of html rendering in modest?
<uvos> i cant seam to make it show plain text email only
<freemangordon> what do you mean?
<freemangordon> and? who html emails are going to be shown?
<freemangordon> *how
<uvos> if i click on an email in the inbox it allways chooses the html version
<uvos> i want it show the plaintext version only
<freemangordon> I don;t think that's possible, but not really sure
inky_ has quit [Ping timeout: 252 seconds]
<uvos> hmm thats not great given the very out of date html engine
<uvos> besides the security issue it also missrenders some files
<uvos> so the plaintext version would be more usable even i suspect
<freemangordon> uvos: sure, but I think we already discussed that (html engine) :)
_inky has quit [Ping timeout: 252 seconds]
<uvos> yeah sure
<uvos> i thought rendering was a runtime option
<uvos> it is for sending a email
<freemangordon> but, search in settings, there might be one
<freemangordon> or, look in the code on how it chooses what version to show
<uvos> modest compiles without html engine too right?
<freemangordon> no, afaik
<uvos> ok
<uvos> mhh
<uvos> thx
xmn has joined #maemo-leste
_inky has joined #maemo-leste
drrty has quit [Remote host closed the connection]
drrty has joined #maemo-leste
<freemangordon> parazyd: unfortunately, we'll have to provide our own glib
<freemangordon> I'll send a patch upstream, but I guess it won;t make it to stable
<parazyd> Can you explain what actually has to happen? Maybe we can think of some way around it.
<parazyd> I mean, it's nbd to build it, but it's cumbersome to maintain updates
<freemangordon> I know, but I don;t think we have an option
<parazyd> My goal is to have less upstream forks
<freemangordon> gimme a minute, I'll provide backtrace and will explain
<parazyd> ok
<freemangordon> parazyd: https://pastebin.com/BaKLriL4
<freemangordon> g_app_info_get_default_for_type shall return GAppInfo of the application for content_type, in this particular case this is "application/pdf"
<freemangordon> as you can see from the backtrace, glibe correctly finds desktop file id to be "hildon-osso_pdfviewer.desktop", see frame 2 and above
<freemangordon> however, at some point there is a call to g_desktop_app_info_new_from_filename(), which just takes basename to be desktop_id, so self->desktop_id becomes "osso_pdfviewer.desktop"
<freemangordon> this clearly breaks the specs and what is worse, prevents libhildonmime from finding the application to handle mime type
<freemangordon> parazyd: ^^^
<parazyd> Right, I see
<parazyd> But why does libhildonmime need the path?
<freemangordon> because it wants to parse the .desktop file
<parazyd> Isn't there some glib machinery that handles this?
<parazyd> ah
<freemangordon> for X-OSSO- stuff
<parazyd> Right
<parazyd> So maybe the right way to patch glib is to offer something that returns the full path?
<parazyd> Thinking in terms so it's not specific to Hildon
<freemangordon> no, we have a hash table that maps desktop ids to filenames
<freemangordon> I can do a reverse search on that table
<freemangordon> to map file name to desktop id
<freemangordon> and if that fails, then use basename as a fallback
<Wizzup> looks like glib has a big though
<Wizzup> bug
<freemangordon> mhm
<Wizzup> so we have a way to fix it already
<freemangordon> I have an idea how to fix it
<freemangordon> it is not so simple, because the hastable in question is protected by mutexes, but I'll deal with it
<freemangordon> *hashtable
<parazyd> Surprising that glib does by have something that resolves the full path to a given desktop file
<freemangordon> not, it is on the opposite, but I can hack around with g_hashtable_foreach
<freemangordon> it maps desktop_id to filename
<freemangordon> that's why you see the correct desktop_id in calls to desktop_file_dir_get_app etc
<parazyd> Yeah
<freemangordon> so, shall I fix that or you have a better idea
<freemangordon> ?
<parazyd> Not rn, but I can think about it tomorrow
<freemangordon> I'll make a patch in the meanwhile :)
<parazyd> ok, cool
<parazyd> Pick our version btw
<freemangordon> hmm?
<freemangordon> do we have one?
<parazyd> Not master upstream, but the one in Devuan Beowulf
<freemangordon> I did apt-get source
<parazyd> Great
<parazyd> That's it
<freemangordon> ok
<uvos> well check if its fixed upstream first
<uvos> also gnome applications have thair own X- whatever special options in .desktop files
<freemangordon> already did, it is not
<uvos> so there must be some way to access them in glib
<uvos> maybe not by opening the file and parsing it yourself
<freemangordon> do you think gnome places stuff in applications/gnome?
<uvos> no
<uvos> but other apps do this
<uvos> and gnome picks them up too
<uvos> so something has to give here
<freemangordon> I am not sure I want to waste time on trying to find how $UNKNOWN app works around glib bugs
<freemangordon> I'd rather fix and send patch upstream
uvos__ has joined #maemo-leste
uvos has quit [Ping timeout: 252 seconds]
<freemangordon> parazyd: https://pastebin.com/FnjmaqYn
<freemangordon> with this clicking on pdf attachment makes it open in pdf viewer
<freemangordon> WTF is meson and how I use it to build glib?!?
<Wizzup> freemangordon: some hip new build system
<freemangordon> hip?
<uvos__> popular
<uvos__> lots off stuff is switching to it
<uvos__> xorg for instance
<freemangordon> oh, because they fixed all the other issues it seems
<uvos__> its not bad really
<freemangordon> I see
<freemangordon> and what is wrong with make? lemme guess, it is old, right?
<uvos__> no make is way to basic
<uvos__> who uses plain make?
<freemangordon> me?
<uvos__> plain make dosent really scale well...
<freemangordon> ok
<uvos__> so most use something on top of make
<uvos__> like cmake or autotools
<uvos__> meson is really the idea that if everyone uses something else to generate make files
<freemangordon> so we have CMake, autofu, meson/ninja, qmake... what else?
<uvos__> make dosent really need to exist since its just a midle man
<uvos__> other than tose you named all other build systems are pretty niche
<freemangordon> ah, and lets not forget M$ build system
<uvos__> unless you include language specific build systems
<freemangordon> but yeah, I guess sript kiddies need to feel useful
<freemangordon> sorry, was dealing with angularjs lately :)
<uvos__> i dont see why the existance of multiple buildsystems would cause ire
<uvos__> i mean lots of languages also exist
<uvos__> its kinda the same
<freemangordon> sorry, as I said I am grumpy because of angularjs shit, kinda looks the same
<freemangordon> reinventing the wheel over and over, but each time with less angles
<Wizzup> try building tensorflow
<Wizzup> you'll appreciate even meson
<uvos__> why what build system dose that use?
<freemangordon> uvos__: see, glib has 874 open issues and 58 merge requests pending, is it really the build system of such a high priority so they must change it before fixing all the bugs?
<Wizzup> uvos__: bazel
<uvos__> freemangordon: idk maybe the existing system showed some kind of defficancy
<freemangordon> autotools? I doubt
<uvos__> autotools certenly has its rough edges
<freemangordon> anyway
<uvos__> especcaly in multiplat
<freemangordon> ok, could be, I don;t know meson so maybe it is better
<freemangordon> still, 874 open issues
<Wizzup> just more to learn and remember for our overloaded brains :)
<freemangordon> yeah
<uvos__> lets reimplment hildon in rust
<freemangordon> :D
<freemangordon> no, in angularjs/nodejs, that way we will be sure noone knows what happens
<freemangordon> and we can bet before first time we start h-d on how long it will take for it to start - 2 or 3 days :)
<uvos__> :P
mardy has quit [Quit: WeeChat 2.8]
belcher has quit [Ping timeout: 252 seconds]
belcher has joined #maemo-leste
xmn has quit [Quit: ZZZzzz…]