• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

data/H04-Dec-2021-353222

help/H04-Dec-2021-79,37667,803

m4/H04-Dec-2021-486422

man/H04-Dec-2021-473432

po/H04-Dec-2021-270,326213,755

src/H03-May-2022-28,41321,202

.dir-locals.elH A D04-Dec-2021550 1615

AUTHORSH A D04-Dec-2021122 43

COPYINGH A D04-Dec-202134.2 KiB677553

COPYING.GFDLH A D04-Dec-202122.4 KiB452373

ChangeLogH A D04-Dec-20212.5 MiB80,86255,186

Makefile.mesonH A D04-Dec-20211 KiB5222

README.mdH A D04-Dec-20214.1 KiB12399

gnome-terminal.doapH A D04-Dec-20211.1 KiB2724

meson.buildH A D04-Dec-202110.8 KiB392305

meson_changelog.shH A D04-Dec-20211.1 KiB3413

README.md

1GNOME TErminal
2==============
3
4Source & Releases
5-----------------
6
7To get the source code, use
8```
9$ git clone https://gitlab.gnome.org/GNOME/gnome-terminal
10```
11
12To get the source for a release version, use the corresponding git tag, or
13download a tarball at
14https://gitlab.gnome.org/GNOME/gnome-terminal/-/archive/TAG/gnome-terminal-TAG.tar.bz2
15replacing `TAG` with the desired tag's name (e.g. `3.40.0`). Older releases are also
16available at https://download.gnome.org/sources/gnome-terminal .
17
18Building from source
19--------------------
20
21You will most likely need to also build `vte` from source; see https://gitlab.gnome.org/GNOME/vte/-/blob/master/README.md .
22
23Start by installing the build dependencies, and a C++ compiler.
24
25For fedora and related distributions, use
26```
27sudo dnf build-dep vte291 gnome-terminal
28sudo dnf install g++
29```
30while for debian and related distributions, use
31```
32sudo apt-get build-dep libvte-2.91-0 gnome-terminal
33sudo apt-get install g++
34```
35
36First build `vte` according to its own instructions. Then:
37```
38$ # Get the source code
39$ git clone https://gitlab.gnome.org/GNOME/gnome-terminal
40$
41$ # Change to the toplevel directory
42$ cd gnome-terminal
43$
44$ # Run the configure script (choose an appropriate path instead of "/some/where"!)
45$ # Don't forget to make sure that pkg-config can find your self-build vte!
46$ # e.g. by doing:
47$ # export PKG_CONFIG_PATH=/some/where/lib64/pkg-config:$PKG_CONFIG_PATH
48$ #
49$ # If you compiled gnome-shell into the same prefix, you can omit disabling
50$ # the search provider.
51$ #
52$ meson _build --prefix=/some/where -Dsearch_provider=false
53$
54$ # Build
55$ ninja -C _build
56$
57$ # Install
58$ ninja -C _build install
59```
60
61* By default, GNOME Terminal will install under `/usr/local`, which is not usually
62the right choice. You can customize the prefix directory by `--prefix` option, e.g.
63if you want to install GNOME-TERMINAL under `~/foobar`, you should run
64`meson _build --prefix=$HOME/foobar`. If you already run the configure script before,
65you should also pass `--reconfigure` option to it.
66
67* You may need to execute `ninja -C _build install` as root
68(i.e. `sudo ninja -C _build install`) if installing to system directories. Use a
69user-writable directory as `--prefix` instead to avoid that.
70
71* You may need to set the gsettings schema path so that gnome-terminal can find
72its schemas. E.g. use
73```
74$ export GSETTINGS_SCHEMA_DIR=/some/where/share/glib-2.0/schemas
75```
76and if you skipped the `ninja install` step, you need to create the
77gsettings schema cache yourself.
78
79* Since GNOME Terminal uses a D-Bus activated server, you cannot simply run
80the self-built gnome-terminal directly. Instead, you need to start the new `gnome-terminal-server` directly using
81```
82$ ./_build/src/gnome-terminal-server --app-id test.Terminal &
83```
84and then you have 10s time to open a window in that server using
85```
86$ ./_build/src/gnome-terminal --app-id test.Terminal
87```
88
89Also see https://wiki.gnome.org/Apps/Terminal/Debugging for more information.
90
91Debugging
92---------
93
94After installing GNOME-TERMINAL with `-Ddebugg=true` flag, you can use `GNOME-TERMINAL_DEBUG` variable to control
95GNOME-TERMINAL to print out the debug information
96
97```
98# You should change gnome-terminal-[2.91] to the version you build
99$ GNOME-TERMINAL_DEBUG=selection ./_build/src/app/gnome-terminal-2.91
100
101# Or, you can mixup with multiple logging level
102$ GNOME-TERMINAL_DEBUG=selection,draw,cell ./_build/src/app/gnome-terminal-2.91
103
104$ Or, you can use `all` to print out all logging message
105$ GNOME-TERMINAL_DEBUG=all ./_build/src/app/gnome-terminal-2.91
106```
107
108For logging level information, please refer to enum [Gnome-TerminalDebugFlags](src/debug.h).
109
110Contributing
111------------
112
113Bugs should be filed here: https://gitlab.gnome.org/GNOME/gnome-terminal/issues/
114Please note that this is a bug tracker to be used for developers of GNOME Terminal,
115and contributors of code, documentation, and translations to GNOME Terminal,
116and *not a support forum*.
117
118If you are an end user, always file bugs in your distribution's bug tracker, or use their
119support forums.
120
121If you want to provide a patch, please attach them to an issue in GNOME
122GitLab, in the format output by the `git format-patch` command.
123