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

CLI uses time value from app instead of --enddate #861

Open
reynoldsnlp opened this issue Jan 19, 2024 · 0 comments
Open

CLI uses time value from app instead of --enddate #861

reynoldsnlp opened this issue Jan 19, 2024 · 0 comments
Labels

Comments

@reynoldsnlp
Copy link

Summary

When I run sudo /Applications/SelfControl.app/Contents/MacOS/selfcontrol-cli --uid 502 start --blocklist /Users/rob/scripts/blocklist.selfcontrol --enddate 2024-01-19T15:22:00 (and many variations on the timestamp format, always generated by python as a future time), the block always uses the time value from the GUI app's settings instead of the provided --enddate. If I change the value in the app, and then run the CLI command, it uses the changed time from the app.

Background Info

SelfControl version? 4.0.2
macOS version? 12.6.5
Do you use a VPN/proxy, and if so which one? no
Has this ever worked for you on a prior version of SelfControl? If so, when? no, this is my first try
Any other special system setup we should know about? no

What Should Have Happened?

More useful output if timestamp fails to parse and perhaps better documentation on the CLI wiki.

What Actually Happened Instead?

2024-01-19 13:22:31.944 selfcontrol-cli[92629:1064186] created legacy block end date (null) from --blocklist
2024-01-19 13:22:34.626 selfcontrol-cli[92629:1064186] Daemon installed successfully!
2024-01-19 13:22:34.626 selfcontrol-cli[92629:1064186] Refreshed connection and ready to start block!
2024-01-19 13:22:34.627 selfcontrol-cli[92629:1064186] Connecting to helper tool, daemon connection is (null)
2024-01-19 13:22:34.627 selfcontrol-cli[92629:1064186] Started helper connection!
2024-01-19 13:22:35.034 selfcontrol-cli[92629:1064186] Accepting propagated change (ActiveBlocklist --> (
    "facebook.com",
    "twitter.com",
    "tumblr.com",
    "9gag.com",
    "netflix.com",
    "hulu.com",
    "buzzfeed.com",
    "dailymotion.com",
    "collegehumor.com",
    "funnyordie.com",
    "vine.co",
    "pinterest.com",
    "stumbleupon.com",
    "miniclip.com",
    "chess.com",
    "news.google.com",
    "vimeo.com",
    "theatlantic.com",
    "lichess.org",
    "chesspuzzle.net",
    "shredderchess.com",
    "chesspuzzles.com",
    "thechesswebsite.com",
    "chessok.com",
    "365chess.com",
    "sparkchess.com",
    "chess24.com",
    "agar.io",
    "slither.io",
    "cinema.com",
    "powerline.io",
    "brutal.io",
    "lordz.io",
    "html5games.com",
    "famobi.com",
    "crazygames.com",
    "poki.com",
    "arkadium.com",
    "agame.com",
    "addictinggames.com",
    "nytimes.com",
    "nyt.com",
    "8ballpool.com",
    "narwhale.io"
)) since version 2657 is newer than 2656 and/or 2024-01-19 20:22:35 +0000 is newer than 2024-01-19 19:48:59 +0000
2024-01-19 13:22:35.034 selfcontrol-cli[92629:1064186] Accepting propagated change (ActiveBlockAsWhitelist --> 0) since version 2658 is newer than 2657 and/or 2024-01-19 20:22:35 +0000 is newer than 2024-01-19 20:22:35 +0000
2024-01-19 13:22:35.034 selfcontrol-cli[92629:1064186] Accepting propagated change (BlockEndDate --> 2024-01-19 20:23:31 +0000) since version 2659 is newer than 2658 and/or 2024-01-19 20:22:35 +0000 is newer than 2024-01-19 20:22:35 +0000
2024-01-19 13:22:35.034 selfcontrol-cli[92629:1064186] Accepting propagated change (ClearCaches --> 1) since version 2660 is newer than 2659 and/or 2024-01-19 20:22:35 +0000 is newer than 2024-01-19 20:22:35 +0000
2024-01-19 13:22:35.035 selfcontrol-cli[92629:1064186] Accepting propagated change (AllowLocalNetworks --> 1) since version 2661 is newer than 2660 and/or 2024-01-19 20:22:35 +0000 is newer than 2024-01-19 20:22:35 +0000
2024-01-19 13:22:35.035 selfcontrol-cli[92629:1064186] Accepting propagated change (EvaluateCommonSubdomains --> 1) since version 2662 is newer than 2661 and/or 2024-01-19 20:22:35 +0000 is newer than 2024-01-19 20:22:35 +0000
2024-01-19 13:22:35.036 selfcontrol-cli[92629:1064186] Accepting propagated change (IncludeLinkedDomains --> 1) since version 2663 is newer than 2662 and/or 2024-01-19 20:22:35 +0000 is newer than 2024-01-19 20:22:35 +0000
2024-01-19 13:22:35.038 selfcontrol-cli[92629:1064186] Accepting propagated change (BlockSoundShouldPlay --> 0) since version 2664 is newer than 2663 and/or 2024-01-19 20:22:35 +0000 is newer than 2024-01-19 20:22:35 +0000
2024-01-19 13:22:35.039 selfcontrol-cli[92629:1064186] Accepting propagated change (BlockSound --> 5) since version 2665 is newer than 2664 and/or 2024-01-19 20:22:35 +0000 is newer than 2024-01-19 20:22:35 +0000
2024-01-19 13:22:35.040 selfcontrol-cli[92629:1064186] Accepting propagated change (EnableErrorReporting --> 0) since version 2666 is newer than 2665 and/or 2024-01-19 20:22:35 +0000 is newer than 2024-01-19 20:22:35 +0000
2024-01-19 13:22:35.387 selfcontrol-cli[92629:1064187] Syncing settings due to propagated changes
2024-01-19 13:22:35.387 selfcontrol-cli[92629:1064187]  --> Writing settings to disk (haven't been written since 2024-01-19 20:22:31 +0000)
2024-01-19 13:22:35.575 selfcontrol-cli[92629:1064186] Accepting propagated change (BlockIsRunning --> 1) since version 2667 is newer than 2666 and/or 2024-01-19 20:22:35 +0000 is newer than 2024-01-19 20:22:35 +0000
2024-01-19 13:22:35.825 selfcontrol-cli[92629:1064191] Syncing settings due to propagated changes
2024-01-19 13:22:35.825 selfcontrol-cli[92629:1064191]  --> Writing settings to disk (haven't been written since 2024-01-19 20:22:35 +0000)
2024-01-19 13:22:36.527 selfcontrol-cli[92629:1064191] INFO: Block successfully added.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant