-
Link Mauve
lovetox, re your issue fetching the timezone, on systemd-compatible distributions (so almost all of them) that’d be: % busctl get-property org.freedesktop.timedate1 /org/freedesktop/timedate1 org.freedesktop.timedate1 Timezone s "Europe/Paris"
-
Link Mauve
You can translate that into dbus calls using your dbus library of choice.
-
moparisthebest
simply read a file which works on 100% of linux/bsd installs, or implement some complicated hack that only works on a subset... hmm hard choice
-
lovetox
I found that GLib implements getting the timezone for mac, linux and windows
-
singpolyma
> simply read a file which works on 100% of linux/bsd installs, or implement some complicated hack that only works on a subset... hmm hard choice Or use a library and not do it yourself by hand at all ↺
-
lovetox
now the next challenge is, of course windows invented their own timezone names which do not follow any standard :D
🤣 1 -
moparisthebest
classic
-
Cynthia
> now the next challenge is, of course windows invented their own timezone names which do not follow any standard :D If I had a dollar for every time this happens, I'd be a billionaire ↺
-
Cynthia
Or.. would be able to buy a single stick of DDR5 32GB RAM✎ -
Cynthia
Or.. would be able to buy a single stick of DDR5 64GB RAM ✏
-
snit
that's a lot of sticks!
-
no_chunk
gonna buy them all out so there's none for the rest of the world and their competition can't compete. Such billionaire