You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+28-9Lines changed: 28 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,14 +59,26 @@ brew cask install quaternion
59
59
```
60
60
61
61
## Running
62
-
Just start the executable in your most preferred way - either from build directory or from the installed location.
62
+
Just start the executable in your most preferred way - either from the build
63
+
directory or from the installed location. If you're interested in tweaking
64
+
configuration beyond what's available in the UI, read the "Configuration"
65
+
section further below.
63
66
64
-
### Configuration and cache files
67
+
## Translation
68
+
Quaternion uses [Lokalise.co](https://lokalise.co) for the translation effort.
69
+
It's easy to participate:
70
+
[join the project at Lokalise.co](https://lokalise.co/public/730769035bbc328c31e863.62506391/),
71
+
ask to add your language (either in #qmatrixclient:matrix.org or in
72
+
the Lokalise project chat) and start translating! Many languages are still
73
+
longing for contributors.
74
+
75
+
## Configuration
65
76
The only non-trivial command-line option available so far is `--locale` - it
66
77
allows you to override the locale Quaternion uses (an equivalent of setting
67
78
`LC_ALL` variable on UNIX-based systems). As of version 0.0.9.3, Quaternion has
68
79
no translations to other languages, so you will hardly notice the difference in
69
-
messages; number and date formats will be following the setting though.
80
+
messages; number and date formats will be following the setting though. Version
81
+
0.0.9.4 gains German, Polish, and Russian translations.
70
82
71
83
Quaternion stores its configuration in a way standard for Qt applications. It will read and write the configuration in the user-specific location (creating it if non-existent) and will only read the system-wide location with reasonable defaults if the configuration is nowhere to be found.
72
84
- Linux:
@@ -146,7 +158,7 @@ Settings not exposed in UI:
146
158
the beginning and end of the quote. By default it's `(.+)(?:\n|$)`.
147
159
148
160
Since version 0.0.9.4, AppImage binaries for Linux and .dmg files for macOS
149
-
are compiled with Qt Keychain support. That means that Quaternion will try
161
+
are compiled with Qt Keychain support. It means that Quaternion will try
150
162
to store your access token(s) in the secure storage configured for your
151
163
platform. If the storage or Qt Keychain are not available (Qt Keychain is off
152
164
by default on Windows - you have to rebuild Quaternion to enable it),
@@ -168,7 +180,16 @@ Quaternion caches the rooms state and user/room avatars on the file system in a
Cache files are safe to delete at any time but Quaternion only looks for them when starting up and overwrites them regularly while running; so it only makes sense to delete cache files when Quaternion is not running. If Quaternion doesn't find cache files at startup it downloads the whole state from Matrix servers, which can take much time (up to a minute and even more, depending on the number of rooms and the number of users in them). Deleting cache files may help with problems such as missing avatars, rooms stuck in a wrong state etc.
183
+
Cache files are safe to delete at any time but Quaternion only looks for them
184
+
when starting up and overwrites them regularly while running; so it only
185
+
makes sense to delete cache files when Quaternion is not running. If Quaternion
186
+
doesn't find or cannot fully load cache files at startup it downloads
187
+
the whole state from Matrix servers. It tries to optimise this process by
188
+
lazy-loading if the server supports it; in an unlucky case when the server
189
+
cannot do lazy-loading, initial sync can take much time (up to a minute and
190
+
even more, depending on the number of rooms and the number of users in them).
191
+
Deleting cache files may help with problems such as missing avatars,
192
+
rooms stuck in a wrong state etc.
172
193
173
194
## Troubleshooting
174
195
@@ -201,15 +222,13 @@ Especially on Windows, if Quaternion starts up but upon an attempt to connect re
201
222
If you have troubles with dynamic libraries on Windows, [the Dependencies Walker tool aka depends.exe](http://www.dependencywalker.com/) helps a lot in navigating the DLL hell - especially when you have a mixed 32/64-bit environment or have different versions of the same library scattered around. OpenSSL, in particular, is notoriously often dragged along by all kinds of software; and you may have other copies of Qt around which you didn't even know about - e.g., with CMake GUI.
202
223
203
224
#### Logging
204
-
If you run Quaternion from a console on Windows, you should set `QT_LOGGING_TO_CONSOLE=1` in order for the debug output be redirected to the console.
225
+
If you run Quaternion from a console on Windows and want to see log messages,
226
+
set `QT_LOGGING_TO_CONSOLE=1` so that the output is redirected to the console.
205
227
206
228
When chasing bugs and investigating crashes, it helps to increase the debug level. Thanks to [@eang:matrix.org](https://matrix.to/#/@eang:matrix.org]), libqmatrixclient uses Qt logging categories - the "Troubleshooting" section of the library's `README.md` elaborates on how to setup logging. Note that Quaternion itself doesn't use Qt logging categories yet, only the library does.
207
229
208
230
You may also want to set `QT_MESSAGE_PATTERN` to make logs slightly more informative (see https://doc.qt.io/qt-5/qtglobal.html#qSetMessagePattern for the format description). My (@kitsune's) `QT_MESSAGE_PATTERN` looks as follows:
209
231
`%{time h:mm:ss.zzz}|%{category}|%{if-debug}D%{endif}%{if-info}I%{endif}%{if-warning}W%{endif}%{if-critical}C%{endif}%{if-fatal}F%{endif}|%{message}` (the scary `%{if}`s are just encoding the logging level into its initial letter).
210
232
211
-
## Translation
212
-
Quaternion uses [Lokalise.co](https://lokalise.co) for the translation effort. It's easy to participate: [join the project at Lokalise.co](https://lokalise.co/public/730769035bbc328c31e863.62506391/), ask to add your language (either in #qmatrixclient:matrix.org or in the Lokalise project chat) and start translating!
0 commit comments