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

Information in marktext/docs/APPLICATION_DATA_DIRECTORY.md is incorrect #3276

Closed
1 task
dgl-dev opened this issue May 23, 2022 · 4 comments
Closed
1 task

Comments

@dgl-dev
Copy link

dgl-dev commented May 23, 2022

Description

Info provided
"Application Data Directory
The per-user application data directory is located in the following directory:

%APPDATA%\marktext on Windows
$XDG_CONFIG_HOME/marktext or ~/.config/marktext on Linux
~/Library/Application Support/marktext on macOS"

  • Can you reproduce the issue? Yes, the documentation doesn't change

Steps to reproduce

N/A

I expected the information to be correct

Actual behavior:

The information states that the themes/export directory is in the ~/.config/marktext on Linux
That is not so, here's the actual contents

limawhiskeydelta@penguin:~/.config/marktext$ ls
 blob_storage   dataCenter.json  'Local Storage'              preferences.json               SingletonCookie
 Cache          dictionaries      logs                        recently-used-documents.json   SingletonLock
'Code Cache'    Dictionaries     'Network Persistent State'   screenshot                     SS
 Crashpad       GPUCache          Preferences                'Session Storage'               window-state.json

Versions

@fxha
Copy link
Contributor

fxha commented May 24, 2022

Actually, this is the right directory which contains both Electron cache/settings and MarkText settings as described in our documentation. E.g. ~/.config/marktext/themes/export/ is the default location for CSS files for PDF output or ~/.config/marktext/preferences.json contains settings. Depending on your build version this may be marktext with a suffix.

@fxha fxha closed this as completed May 24, 2022
@dgl-dev
Copy link
Author

dgl-dev commented May 24, 2022

First, the docs say "$XDG_CONFIG_HOME/marktextor~/.config/marktext` on Linux", not ~/.config/marktextthemes/export/
Second, there is no such in .config as the ls output I included shows

limawhiskeydelta@penguin:~/.config/marktext$ ls
 blob_storage   dataCenter.json  'Local Storage'              preferences.json               SingletonCookie
 Cache          dictionaries      logs                        recently-used-documents.json   SingletonLock
'Code Cache'    Dictionaries     'Network Persistent State'   screenshot                     SS
 Crashpad       GPUCache          Preferences                'Session Storage'

Third, I've used find to search the entire system for marktext, marktext/export, marktextthemes, themes with no success - the search sudo find / -type d -name "themes" finds the themes for ghostscript, JetBrains, inkscape, GIMP, ... but not marktext

SO,...???

@fxha
Copy link
Contributor

fxha commented May 29, 2022

First, the docs say "$XDG_CONFIG_HOME/marktextor~/.config/marktext` on Linux", not ~/.config/marktextthemes/

I fixed my typo from above.

Second, there is no such in .config as the ls output I included shows

In your example from above, you're located in the settings folder (~/.config/marktext). You need to create the themes' folder inside the MarkText's settings folder. E.g. run the following command when located in ~/.config/marktext:

$ mkdir -p themes/export
$ touch my-theme.css

@dgl-dev
Copy link
Author

dgl-dev commented May 29, 2022 via email

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