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

Snap is loading an erroneous .leptonrc configuration #536

Open
colematt opened this issue Oct 8, 2022 · 1 comment
Open

Snap is loading an erroneous .leptonrc configuration #536

colematt opened this issue Oct 8, 2022 · 1 comment

Comments

@colematt
Copy link

colematt commented Oct 8, 2022

The more we know about your system and use case, the more easily and likely we can help.

Environment info

  • OS: Pop!OS 21.04 LTS
  • App Version (Command/Ctrl + ,): v1.10.0 (using Snap from Snap Shop)

Description of the problem:

Lepton "About" dialog says it's loading configuration from /home/matthew/snap/lepton/12/.leptonrc. Contents of that file are:

{
    "theme": "dark",
    "autoUpdate": false,
    "snippet": {
        "expanded": true,
        "newSnippetPrivate": false,
        "sorting": "updated_at",
        "sortingReverse": true
    },
    "editor" : {
        "tabSize": 2,
        "validateFilename": true
    },
    "userPanel": {
        "hideProfilePhoto": true
    },
    "logger": {
        "level": "debug"
    },
    "proxy": {
        "enable": false,
        "address": "socks://localhost:1080"
    },
    "notifications": {
        "success": true,
        "failure": true
    },
    "shortcuts": {
        "keyShortcutForSearch": "CMD+F",
        "keyNewGist": "CommandOrControl+N",
        "keyEditGist": "CommandOrControl+E",
        "keySubmitGist": "CommandOrControl+S",
        "keyImmersiveMode": "CommandOrControl+I",
        "keyAboutPage": "CommandOrControl+,",
        "keyDashboard": "CommandOrControl+D",
        "keyEditorExit": "CommandOrControl+Escape",
        "keySyncGists": "CommandOrControl+R"
    }
}

However, the log file includes the following text:

2022-10-08T14:20:05.695Z - info: 

----- Lepton v1.10.0 linux-----

2022-10-08T14:20:05.696Z - info: [conf] Looking for .leptonrc at /home/matthew/snap/lepton/12/.leptonrc
2022-10-08T14:20:05.696Z - info: [conf] The resolved configuration is ...
2022-10-08T14:20:05.696Z - info: "theme": "light"
2022-10-08T14:20:05.696Z - info: "autoUpdate": false
2022-10-08T14:20:05.696Z - info: "userPanel": {"hideProfilePhoto":false}
2022-10-08T14:20:05.696Z - info: "logger": {"level":"debug"}
2022-10-08T14:20:05.696Z - info: "proxy": {"enable":false,"address":"socks://localhost:1080"}
2022-10-08T14:20:05.696Z - info: "snippet": {"sorting":"updated_at","sortingReverse":true,"expanded":true,"newSnippetPrivate":false}
2022-10-08T14:20:05.696Z - info: "editor": {"tabSize":4,"validateFilename":true}
2022-10-08T14:20:05.697Z - info: "enterprise": {"enable":false,"host":"","token":"","avatarUrl":""}
2022-10-08T14:20:05.697Z - info: "notifications": {"success":true,"failure":true}
2022-10-08T14:20:05.697Z - info: "shortcuts": {"keyShortcutForSearch":"Shift+Space","keyNewGist":"CommandOrControl+N","keyEditGist":"CommandOrControl+E","keyDeleteGist":"CommandOrControl+Delete","keySubmitGist":"CommandOrControl+S","keyImmersiveMode":"CommandOrControl+I","keyAboutPage":"CommandOrControl+,","keyDashboard":"CommandOrControl+D","keyEditorExit":"CommandOrControl+Escape","keySyncGists":"CommandOrControl+R"}
...

Which doesn't match my config file. It looks like it's loading a default configuration file from somewhere, as those contents match the sample .leptonrc from the wiki.

If possible, provide the log files

Full log file below.
2022-10-08T14.20.05.692Z.log

@KeatsPeeks
Copy link

the configuration file doesn't work in macos either.

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

No branches or pull requests

2 participants