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

Rewrite using gioui #1

Merged
merged 6 commits into from
Dec 18, 2023
Merged

Rewrite using gioui #1

merged 6 commits into from
Dec 18, 2023

Conversation

thiagokokada
Copy link
Owner

@thiagokokada thiagokokada commented Dec 18, 2023

Advantages:

  • Should have much more native feel

Disadvantages:

  • Needs CGO

Right now it is not working in macOS:

$ /Applications/TwentyTwentyTwenty_arm64.app/Contents/MacOS/TwentyTwentyTwenty -frequency 1
2023-12-18 20:12:08.042 TwentyTwentyTwenty[36094:2057424] Getting application bundle
2023-12-18 20:12:08.042 TwentyTwentyTwenty[36094:2057424] Bundle ID: com.github.twenty_twenty_twenty
2023-12-18 20:12:08.043 TwentyTwentyTwenty[36094:2057424] Getting notification center
Running twenty-twenty-twenty every 1 minute(s)...
2023/12/18 20:13:08 Sending notification...
2023-12-18 20:13:08.049 TwentyTwentyTwenty[36094:2057431] Creating notification
2023-12-18 20:13:08.049 TwentyTwentyTwenty[36094:2057431] Creating request
2023-12-18 20:13:08.049 TwentyTwentyTwenty[36094:2057431] Requesting authorization
2023-12-18 20:13:08.051 TwentyTwentyTwenty[36094:2059110] Granted = false
2023-12-18 20:13:08.051 TwentyTwentyTwenty[36094:2059110] Error = Error Domain=UNErrorDomain Code=1 "(null)"
2023/12/18 20:13:08 Error while sending notification: permission denied

Advantages:
- Should have much more native feel

Disadvantages:
- Needs CGO
@thiagokokada
Copy link
Owner Author

Now there is no errors but also no notifications:

$ TwentyTwentyTwenty.app/TwentyTwentyTwenty_arm64.app/Contents/MacOS/TwentyTwentyTwenty -frequency 1
2023-12-18 20:47:16.099 TwentyTwentyTwenty[46362:2127743] Getting application bundle
2023-12-18 20:47:16.099 TwentyTwentyTwenty[46362:2127743] Bundle ID: com.github.twenty_twenty_twenty
2023-12-18 20:47:16.099 TwentyTwentyTwenty[46362:2127743] Getting notification center
Running twenty-twenty-twenty every 1 minute(s)...
2023/12/18 20:48:16 Sending notification...
2023-12-18 20:48:16.108 TwentyTwentyTwenty[46362:2127759] Creating notification
2023-12-18 20:48:16.112 TwentyTwentyTwenty[46362:2127759] Creating request
2023-12-18 20:48:16.112 TwentyTwentyTwenty[46362:2127759] Requesting authorization
2023-12-18 20:48:16.113 TwentyTwentyTwenty[46362:2127763] Granted = true
2023-12-18 20:48:16.113 TwentyTwentyTwenty[46362:2127763] Error = (null)
2023-12-18 20:48:16.113 TwentyTwentyTwenty[46362:2127763] Adding notification request
2023-12-18 20:48:16.115 TwentyTwentyTwenty[46362:2127763] added notification. Error: (null)

@thiagokokada thiagokokada merged commit 53d1b83 into main Dec 18, 2023
@thiagokokada thiagokokada deleted the gioui-rewrite branch December 18, 2023 21:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant