Skip to content

Settings and preferences import/export CLI #255

Description

@kdeldycke

Is your feature request related to a problem? Please describe.

Since #159 & #119, we can export and import iGlance settings by the way of a JSON file. That's a great feature which is working well!

Now I'd like to script the loading of these settings, so I can automate even more the deployment of my dotfiles.

Describe the solution you'd like

I'd like to have the option of starting/invoking iGlance with a CLI to load up defaults settings.

Something in the spirit of:

$ /Applications/iGlance.app --import-settings ~/dotfiles/assets/iglance-settings.json

Describe alternatives you've considered

I tried to tweak settings via the preferences plist file (located ~/Library/Preferences/io.github.iglance.iGlance.plist).

But it seems user settings are somewhat serialized binary format (is that JSON?):

$ defaults read io.github.iglance.iGlance
{
    SUHasLaunchedBefore = 1;
    SULastCheckTime = "2020-12-29 12:22:59 +0000";
    iGlanceUserSettings = {length = 985, bytes = 0x62706c69 73743030 da010203 04050607 ... 00000000 00000311 };
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions