gtg icon indicating copy to clipboard operation
gtg copied to clipboard

windows10 port is possible, with few changes

Open Pr0curo opened this issue 4 years ago • 2 comments

hi there,

first i want to say thank you guys for reviving the project. GTG was my tool for keeping the head above water in the office. Due to changes, I now have a windows only machine. This means to me, I have to try to port GTG to Windows.

Some tinkering here and there, and with the help of msys2 it was possible to get most of the dependencies resolved (thanks for the good documentation on this side).

Currently two things are missing. Windows (msys2) has no working python-dbus to import, and no locale.nl_langinfo(locale.D_FMT).

The latter issue can be worked around with a fixed value, but it means, there could be a problem with other locales.

With the missing python-dbus functionality, I struggle alot currently. Does anyone have an idea how this could be solved? Currently i have deleted the functions body in gtg>core>timer.py>Timer->connecto_to_dbus. If i'm not mistaken this only prevents the receipt of the signals for sleep or login on the OS (I'm not sure what the consequences are.). Is my assumption correct, that this only affects sleep mode or login? gtg_windows

Pr0curo avatar Sep 26 '20 13:09 Pr0curo

Windows (msys2) has no working python-dbus to import

Also see #277 where it tries to use GLib/Gio DBus implementation (but might also not work on Windows, I haven't tested).

Currently i have deleted the functions body in gtg>core>timer.py>Timer->connecto_to_dbus. If i'm not mistaken this only prevents the receipt of the signals for sleep or login on the OS (I'm not sure what the consequences are.). Is my assumption correct, that this only affects sleep mode or login?

From what I've seen this is the only place where dbus is directly used by GTG, and only to detect whenever the system wakes up from a sleep. From what I can see, it is only used to "clean up" tasks. Not too critical.

Also, GLib/Gio uses DBus internally, mainly for some integration stuff (exposing actions I think) and instance-detection (don't run twice). Not sure if they have a different implementation for Windows.

Neui avatar Sep 26 '20 17:09 Neui

Related: #864

nekohayo avatar Feb 27 '24 17:02 nekohayo