|
| 1 | +--- |
| 2 | +slug: "use" |
| 3 | +title: "Usage" |
| 4 | +description: "" |
| 5 | +summary: "" |
| 6 | +date: 2025-09-27T20:11:40+08:00 |
| 7 | +draft: false |
| 8 | +weight: 104 |
| 9 | +toc: true |
| 10 | +seo: |
| 11 | + title: "" # custom title (optional) |
| 12 | + description: "" # custom description (recommended) |
| 13 | + canonical: "" # custom canonical URL (optional) |
| 14 | + noindex: false # false (default) or true |
| 15 | +--- |
| 16 | + |
| 17 | +## Data Storage |
| 18 | + |
| 19 | +If for some reason you need to clear the data generated by mika-shell, it’s helpful to know the following: |
| 20 | + |
| 21 | +- `$XDG_CONFIG_HOME/mika-shell` is the directory where configuration files and frontend files are stored. |
| 22 | + Or you might be more familiar with this path: `$HOME/.config/mika-shell` |
| 23 | + |
| 24 | +- `$XDG_DATA_HOME/webkitgtk/` is the directory where Webview data is stored. |
| 25 | + Website-generated data such as cache, cookies, and localStorage will be saved here. |
| 26 | + Or more commonly: `$HOME/.local/share/webkitgtk/` |
| 27 | + |
| 28 | +- `$XDG_CACHE_HOME/webkitgtk/` is the directory where Webview cache is stored. |
| 29 | + Cache files will be saved here. |
| 30 | + Or more commonly: `$HOME/.cache/webkitgtk/` |
| 31 | + |
| 32 | +- mika-shell also creates files like `/tmp/mika-shell-xxxx.sock` in the `/tmp` directory for IPC. |
| 33 | + |
| 34 | +{{< callout type="warning" >}} |
| 35 | +`$HOME/.local/share/webkitgtk/` and `$HOME/.local/share/webkitgtk/` may be changed in the future to a more recognizable directory, |
| 36 | +for example: `$HOME/.local/share/mika-shell/` |
| 37 | +{{< /callout >}} |
| 38 | + |
| 39 | +## Run |
| 40 | + |
| 41 | +You can execute `mika-shell -h` to get more command-line help. |
| 42 | + |
| 43 | +Start mika-shell with the following command: |
| 44 | + |
| 45 | +```bash |
| 46 | +mika-shell daemon |
| 47 | +``` |
| 48 | + |
| 49 | +If the configuration directory does not exist, running `mika-shell daemon` will automatically create the [default configuration files](https://github.com/MikaShell/mika-shell/tree/main/example). |
| 50 | +If everything is working correctly, you should see a simple bar appear at the top of the screen. |
| 51 | +Click the Debug button on the left side of the bar to view more examples, and right-click to open the web debugging tools. |
| 52 | + |
| 53 | +The initial configuration is mainly intended for development, testing, and exploring features, and is not suitable for daily use. |
| 54 | +In the next chapter, I will introduce how to create your own configuration from scratch. |
0 commit comments