Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

windows10 port is possible, with few changes #472

Open
Pr0curo opened this issue Sep 26, 2020 · 2 comments
Open

windows10 port is possible, with few changes #472

Pr0curo opened this issue Sep 26, 2020 · 2 comments
Labels
packaging Flatpak packages (anything else = NOPE.png) patch-or-wont-happen Core maintainers would like this, but lack time/energy. Contribute a patch or it won't happen. RFC "Request for Comments" brainstorming tickets for things we are unsure about

Comments

@Pr0curo
Copy link

Pr0curo commented Sep 26, 2020

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 Pr0curo changed the title windows10 port is possible, with changes windows10 port is possible, with few changes Sep 26, 2020
@Neui
Copy link
Contributor

Neui commented Sep 26, 2020

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.

@nekohayo nekohayo added RFC "Request for Comments" brainstorming tickets for things we are unsure about patch-or-wont-happen Core maintainers would like this, but lack time/energy. Contribute a patch or it won't happen. packaging Flatpak packages (anything else = NOPE.png) labels Feb 27, 2024
@nekohayo
Copy link
Member

Related: #864

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
packaging Flatpak packages (anything else = NOPE.png) patch-or-wont-happen Core maintainers would like this, but lack time/energy. Contribute a patch or it won't happen. RFC "Request for Comments" brainstorming tickets for things we are unsure about
Projects
None yet
Development

No branches or pull requests

3 participants