Debian Codegraph @

doc/install/linux/README.md

raw symbols SCIP
1 To install on Linux or FreeBSD (any desktop Unix using Xorg and following standard XDG specifications)
2 you can use the files provided here.
3 They will make the "Castle Game Engine" nicely listed in the applications list
4 of any desktop (GNOME, MATE, KDE, ...).
5
6 Short version, automatic:
7
8 1. Run `install.sh` script.
9
10 Long version, manual:
11
12 1. To make the desktop file work, first make sure that the system can find the relevant executables.
13 It is simplest to just edit the desktop file to add full path to the "Exec" and "Icon" lines,
14 like this:
15
16 ```
17 Exec=/home/michalis/castle-engine/bin/castle-editor
18 Icon=/home/michalis/castle-engine/doc/pasdoc/logo/castle_game_engine_icon.svg
19 ```
20
21 Alternative ways are possible, e.g. you can symlink executables to /usr/local/bin
22
23 ```
24 sudo ln -s /home/michalis/castle-engine/bin/castle-editor /usr/local/bin/castle-editor
25 sudo ln -s /home/michalis/castle-engine/bin/castle-model-viewer /usr/local/bin/castle-model-viewer
26 ```
27
28 Alternative is to put the programs on $PATH .
29 Note that you will need to modify $PATH used by the X session,
30 which usually means you need to create and use the `~/.Xsession` file.
31 ( Adjusting path of your shell, e.g. in `~/.bashrc`, is *not* enough. )
32
33 2. Run this:
34
35 ```
36 desktop-file-install --dir=$HOME/.local/share/applications castle-editor.desktop
37 update-desktop-database -q ~/.local/share/applications/ # or just relogin
38 ```
39
40 Alternative: instead of running desktop-file-install, you can just copy the desktop file
41 to ~/.local/share/applications/ . desktop-file-install doesn't do much more.
42 You could also do
43
44 ```
45 install -d ~/.local/share/applications/
46 install --mode 644 castle-editor.desktop ~/.local/share/applications/
47 ```
48
49 And running `update-desktop-database` is actually not necessary on new systems.
50
51 Note: the installation files for castle-model-viewer are not yet distributed here.
52 To install castle-model-viewer in menu, get [castle-model-viewer](http://github.com/castle-engine/castle-model-viewer) and follow the [instructions there](https://github.com/castle-engine/castle-model-viewer/blob/master/freedesktop/README.md).