Skip to content

Commit a2e4ff0

Browse files
authored
Update installation doc for linux (marktext#1921)
1 parent 1c5b714 commit a2e4ff0

1 file changed

Lines changed: 17 additions & 3 deletions

File tree

docs/LINUX.md

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,24 @@ Download the AppImage and type the following:
1010

1111
### Installation
1212

13-
You cannot really install an AppImage. It's just a file which can be integrated with your desktop environment. The only thing you have to do is to create a desktop file that link to Mark Text (like `~/.local/share/applications/appimage-marktext.desktop`).
13+
You cannot really install an AppImage. It's a file which can run directly after getting executable permission. To integrate it into desktop environment, you can either create desktop entry manually **or** use [AppImageLauncher](https://github.com/TheAssassin/AppImageLauncher).
1414

15-
##### System integration
15+
#### Desktop file creation
1616

17-
You can integrate the AppImage into the system via AppImageLauncher.
17+
See [example desktop file](https://github.com/marktext/marktext/blob/develop/resources/linux/marktext.desktop).
18+
19+
```bash
20+
$ curl -L https://github.com/marktext/marktext/blob/develop/resources/linux/marktext.desktop -o $HOME/.local/share/applications/marktext.desktop
21+
22+
# Update the Exec in desktop file to your real marktext command. Specify Path if necessary.
23+
$ vim $HOME/.local/share/applications/marktext.desktop
24+
25+
$ update-desktop-database $HOME/.local/share/applications/
26+
```
27+
28+
#### AppImageLauncher integration
29+
30+
You can integrate the AppImage into the system via [AppImageLauncher](https://github.com/TheAssassin/AppImageLauncher). It will handle the desktop entry automatically.
1831

1932
### Uninstallation
2033

@@ -27,6 +40,7 @@ You can integrate the AppImage into the system via AppImageLauncher.
2740
1. Save AppImage somewhere. Let's say `~/bin/marktext.AppImage`
2841
2. `chmod +x ~/bin/marktext.AppImage`
2942
3. Create a launch script:
43+
3044
```sh
3145
#!/bin/bash
3246
DESKTOPINTEGRATION=0 ~/bin/marktext.AppImage

0 commit comments

Comments
 (0)