Commit Graph

60 Commits

Author SHA1 Message Date
Forest 80f7683a57 Control logging via command line and environment variables
Nheko is very chatty in its log output, generating log noise (which
complicates diagnostics) and needless disk writes (which affect power
consumption and SSD life).  This patch introduces command line options
and environment variables to control log levels and output type.

The old --debug command line option still works, at least for now.
It is overridden by the new command line options when they are used.

Partially addresses #665.
2022-09-10 18:28:44 -07:00
Nicolas Werner 90da39313f
Use right linter 2022-05-10 03:53:35 +02:00
Nicolas Werner a6b2be112b
More image dialog fixes 2022-05-10 03:20:09 +02:00
Nicolas Werner dfb8f9a160
Fix application name on Wayland in flatpak
fixes #903
2022-02-09 23:46:49 +01:00
Nicolas Werner 1d6d9e65af
Store window size on exit again 2022-01-29 18:10:42 +01:00
Nicolas Werner b106eafb0e
Initial qml root window 2022-01-26 21:44:13 +01:00
Joe Donofry 9033235e9d Gstreamer glib event loop for macos and windows
- This ensures that gstreamer bus operations work
on macOS and windows, such as enumerating devices.
2022-01-02 21:15:10 +00:00
Nicolas Werner 61404641d9
Update year in copyright notice to shut up lint job 2022-01-01 04:57:53 +01:00
Nicolas Werner 19dc6cadea
Reserve size of some containers we are filling 2021-12-29 06:01:38 +01:00
Nicolas Werner d8ead9573b
Reduce allocations using QStringLiteral 2021-12-29 04:52:52 +01:00
Nicolas Werner 5ca98829f7
Some qt6 prep 2021-12-28 20:09:08 +01:00
Nicolas Werner 6be752e163
Set the app_id on wayland 2021-12-19 22:54:50 +01:00
Nicolas Werner 09aded2bc8
Fix crash when receiving matrix uri
It seems like handling the message in a blocking manner is a no-go. I
have no idea how to fix that, so just use a queued connection for now...
(ASAN does not cooperate and just hides the crash D:)

fixes #842
2021-12-17 05:58:09 +01:00
Joseph Donofry cce5d0534f
Use icns on macOS 2021-12-14 17:05:48 -05:00
Nicolas Werner bd020bb473
If the locale is set to C, force english locale
This fixes date formatting as well as count based translations.
2021-11-27 03:16:53 +01:00
Nicolas Werner 410ec00848
Fix crash in debug code for matrix uri handler
fixes #776
fixes #590
2021-11-04 23:10:03 +01:00
Thulinma 6941c3d3d7 Fix --help and --version command line options when Nheko is already running. Also adds an info message when it sends a URI to another instance 2021-09-28 00:45:00 +02:00
Nicolas Werner cfca7157b9
Change indentation to 4 spaces 2021-09-18 00:45:50 +02:00
Nicolas Werner 47c7c4c777
cleanup QSettings usage a bit 2021-08-29 16:32:28 +02:00
Joe 82088fa0d7 Fix cmake template define issue 2021-07-07 09:48:13 -04:00
Joe 478c3b3e0b Fix Backtrace define error for Windows 2021-07-07 00:26:20 -04:00
Nicolas Werner 66e69d7f2b
Ignore return value of write() in signal handler 2021-06-30 15:48:54 +02:00
Nicolas Werner 9f7064676c
Get rid of boost dependency for stacktraces 2021-06-30 15:01:41 +02:00
Nicolas Werner a6f0d2ea7d
Update license headers 2021-03-05 01:04:07 +01:00
Nicolas Werner 50f994bd23 Clean up config names a bit 2021-02-09 16:26:38 +01:00
Nicolas Werner 7874d61c33 Fix scheme handler not passing arguments 2021-02-04 01:02:38 +01:00
Michele Guerini Rocco 0e628290af
Write database to the DataLocation 2021-01-24 00:40:19 +01:00
Nicolas Werner 74c9af0432 Fix presence unknown type warning 2021-01-19 03:16:59 +01:00
Nicolas Werner 0567f669c2 Don't start in tray, if only minimize to tray is enabled
fixes #375
2021-01-14 13:56:22 +01:00
Nicolas Werner 39f9b7d90a Handle matrix scheme
Link opening only works on Linux for now.

See https://github.com/matrix-org/matrix-doc/pull/2312
2021-01-10 22:41:56 +01:00
Nicolas Werner 391b1b3285 Fix #359
Actually store the login details under the selected profile
2020-12-27 22:56:54 +01:00
LorenDB 53f45bdb1c Switch profile code to a more flexible method
This introduces a new version of SingleApplication as well.
2020-12-24 21:16:46 -05:00
Loren Burkholder de858ca80c Use system icon where applicable 2020-12-03 17:27:33 -05:00
Nicolas Werner 12fff7408e Optimize build 2020-10-27 17:45:28 +01:00
LorenDB a2bd266c11 Add option for unique config 2020-10-24 11:50:13 -04:00
Nicolas Werner da2f80df60 Fix translation loading
Explanation see here:
https://www.kdab.com/fixing-a-common-antipattern-when-loading-translations-in-qt/
2020-07-10 03:17:23 +02:00
Nicolas Werner 150c9b1dbc Fix scale factor setting 2020-06-11 23:08:15 +02:00
Nicolas Werner db93e6b853 Fix warning about not registered Presence type 2020-06-11 18:37:09 +02:00
Nicolas Werner 576269c9e5 Prevent timeline being black on some platforms 2020-05-15 22:46:34 +02:00
Nicolas Werner dd1dca3751 Add --debug switch 2020-04-15 23:28:04 +02:00
Nicolas Werner e96241265e Use third_party singleapplication helper
This may still not raise the application correctly on some WMs, because
they don't allow disturbing the user with windows popping up. I don't
think we want to work around that.

fixes #84
fixes #113
2020-02-23 13:44:05 +01:00
Nicolas Werner 8c5e4db42c Remove embedded fonts 2020-01-16 20:37:07 +01:00
Nicolas Werner 3bbd034781 Fix transitive dependencies on iostream 2019-12-23 05:22:03 +01:00
Nicolas Werner ceb6f85ccb Actually include header that provides std::signal instead of signal 2019-12-15 03:51:33 +01:00
Nicolas Werner 7d6a015f36 Add qml debugging option 2019-12-14 23:48:28 +01:00
Nicolas Werner 512db8c6ff Actually set attributes before starting the app
fixes "Attribute Qt::AA_EnableHighDpiScaling must be set before
QCoreApplication is created."
2019-07-22 00:03:12 +02:00
Joseph Donofry c0a010acbb
Fix deprecated function call issues with Qt 5.13
Update to mtxclient 0.3.0
2019-07-04 21:20:19 -04:00
redsky17 df5d24c87f Revert "Remove built-in emoji picker"
This reverts commit 4b807229aa.
2019-01-26 18:17:08 +00:00
redsky17 654b652db4 Add User Font Setting
User can now select a font from the installed fonts on their system

This font currently will only be applied when nheko is restarted
(similar to how font size and scaling currently work).  This will
be addressed in a future commit.  Additionally, the dropdown
does not correctly select the previously-chosen user font, and
instead defaults to the first font available on the system
(alphabetically).  This is similar to the issue with the 'Theme'
combo defaulting to 'Light' even when another theme is selected.
2019-01-19 16:20:41 +00:00
Konstantinos Sideris 2295d681a4 Remove the bundled open sans font 2018-10-07 13:27:20 +03:00