Git Product home page Git Product logo

Comments (3)

reynoldsnlp avatar reynoldsnlp commented on September 18, 2024

If you save the blocklist in the app is the resulting file identical to the plist file?

from selfcontrol.

Spelkington avatar Spelkington commented on September 18, 2024

A bit of research on this: it appears that the file stored at ~/Library/Preferences/org.eyebeam.SelfControl.plist and the .selfcontrol file exported by the program are not the same, which would explain why SelfControl's CLI doesn't read the former as a valid blocklist:

Copy of the blocklist from ~/Library/Preferences/org.eyebeam.SelfControl.plist:

bplist00���������	
�
�������MNOPQ�_�0NSWindow Frame NSSpellCheckerSubstitutionsPanel2_�'MASPreferences Selected Identifier View_��SUHasLaunchedBefore_��SULastCheckTime_��WhitelistAlertSuppress_��GetStartedShownYBlocklist_�%NSWindow Frame NSNavPanelAutosaveName_��BlockAsWhitelist_��NSNavLastRootDirectory_��SULastProfileSubmissionDate_�!NSNavPanelExpandedSizeForOpenMode_��FirstBlockStarted_��692 407 425 137 0 0 1728 1079 _��GeneralPreferences	3A���V���		��8����������� !"#$%&'()*+,-./0123456789:;<=>[email protected][nytimes.com[bluesky.app[twitter.com\linkedin.com_��forever.utah.eduXbsky.app]inoreader.com^abcnews.go.com[ground.newsWcnn.com_��huffingtonpost.com[foxnews.comWbbc.comYbbc.co.uk_��telegraph.co.uk_��news.google.com\buzzfeed.comXvice.comZgawker.comZtumblr.comZforbes.com]gothamist.com[jezebel.com\usatoday.com\theonion.com^news.yahoo.com_��washingtonpost.comWwsj.com_��theguardian.com[latimes.com_��nydailynews.comYsalon.comYmsnbc.comVrt.com]bloomberg.comWaol.com_��drudgereport.com_��nationalgeographic.comZnypost.com_��chicagotribune.comWmsn.comZusnews.com\facebook.comX9gag.com[netflix.comXhulu.com_��dailymotion.com_��collegehumor.com^funnyordie.comWvine.co]pinterest.com_��stumbleupon.com]instagram.com_��mail.google.com_��blog.chaoticgood.computer_��464 473 800 448 0 0 1728 1079 �Q~3A�Ȃ�'�Z{800, 448}	���#�V�����������������1�O�s���������������������&�2�?�R�[�i�x���������������������������(�4�A�N�]�r�z�����������������������'�/�:�G�P�\�e�w���������������������!�*�5���������������S���������������6

Exported file containing the same blocklist:

bplist00�����_��BlockAsWhitelist]HostBlacklist���8����	
�
������������������ !"#$%&'()*+,-./0123456789:;<Ygmail.com[nytimes.com[bluesky.app[twitter.com\linkedin.com_��forever.utah.eduXbsky.app]inoreader.com^abcnews.go.com[ground.newsWcnn.com_��huffingtonpost.com[foxnews.comWbbc.comYbbc.co.uk_��telegraph.co.uk_��news.google.com\buzzfeed.comXvice.comZgawker.comZtumblr.comZforbes.com]gothamist.com[jezebel.com\usatoday.com\theonion.com^news.yahoo.com_��washingtonpost.comWwsj.com_��theguardian.com[latimes.com_��nydailynews.comYsalon.comYmsnbc.comVrt.com]bloomberg.comWaol.com_��drudgereport.com_��nationalgeographic.comZnypost.com_��chicagotribune.comWmsn.comZusnews.com\facebook.comX9gag.com[netflix.comXhulu.com_��dailymotion.com_��collegehumor.com^funnyordie.comWvine.co]pinterest.com_��stumbleupon.com]instagram.com_��mail.google.com_��blog.chaoticgood.computer���
� �.�/�j�t���������������������������%�7�I�V�_�j�u�������������������������$�+�9�A�T�m�x�������������������������'�5�G���������������=���������������c

It appears they contain very similar information, but are definitely not the same.

from selfcontrol.

Spelkington avatar Spelkington commented on September 18, 2024

After doing a search for files with the same MD5 hash as the exported blocklist, it appears none exist in either ~/Applications or ~/Library/Preferences, which leads me to believe that the blocklist recognized by the SelfControl frontend application and the CLI are using two different formats for blocklists. Pure speculation, but I'd imagine the copy in ~/Library/Preferences is the format recognized by the GUI, and the exported copy is the format recognized by the CLI.

Being able to access the blocklist defined by the user in the GUI would be enormously helpful - I am currently building out a SelfControl Raycast extension for my own (and others) use, and being able to use the GUI-defined blocklist rather than having to re-export changes to a specific file location in the user's home directory would be awesome.

from selfcontrol.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.