1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00
Commit Graph

7665 Commits

Author SHA1 Message Date
Anthony Bilinski
c2483f474a
chore(travis): use curl instead of wget to connect to libsodium
wget was failing to negotiate with download.libsodium.org since it doesn't
support TLS 1.0

Fix #6191
2020-08-04 23:06:45 -07:00
Anthony Bilinski
f5c813bdb9
Merge pull request #6184
Jimi Huotari (1):
      fix(cmake): use the 'STATIC' argument for 'translations_library'
2020-07-05 16:41:49 -07:00
Jimi Huotari
5ba63af9cb fix(cmake): use the 'STATIC' argument for 'translations_library'
Fix running qTox in environments that set 'BUILD_SHARED_LIBS=ON' at
build-time.

Thanks-to: Andreas Sturmlechner <asturm@gentoo.org>
Closes: https://github.com/qTox/qTox/issues/6183
2020-07-05 21:17:38 +03:00
Anthony Bilinski
ede0418b4f
Merge pull request #6182
bodwok (2):
      refactor: connection to parent method in toxuri.cpp
      refactor: connection to parent method in toxuri.cpp
2020-07-04 16:52:36 -07:00
bodwok
06ff723c0d
refactor: connection to parent method in toxuri.cpp 2020-07-04 21:32:57 +03:00
bodwok
3c513e2c53
refactor: connection to parent method in toxuri.cpp 2020-07-03 18:13:08 +03:00
sudden6
34c1a1e96b
refactor(cmake): fix missing dependency 2020-07-03 15:46:07 +02:00
sudden6
f37813ff88
refactor: move translations to their own module 2020-07-03 15:46:07 +02:00
sudden6
0335f20362
fix: Qt ressource system usage
Make use of the `AUTORCC` feature of cmake to simplify adding resource
files to qTox.

Fixes #6144
2020-07-03 15:45:57 +02:00
Anthony Bilinski
431fd7bfa2
Merge pull request #6073
Anthony Bilinski (1):
      fix(notification): hide snore warning log spam

Mick Sayson (2):
      feat(notification): Notification string generator for multiple messages
      feat(notification): Notifications now always replace the previous one
2020-07-02 01:34:34 -07:00
Anthony Bilinski
ca4f9df1ee
fix(notification): hide snore warning log spam
snorenotify logs this when we call requestCloseNotification correctly. The
behaviour still works, so we can just mask the warning for now. The issue has
been reported upstream:
https://github.com/qTox/qTox/pull/6073#pullrequestreview-420748519
2020-07-02 01:29:25 -07:00
Anthony Bilinski
535b01a841
fix(preview): handle libexif missing fields, don't accept 0-value orientation
Last fix was a hack when the error was actually us using the default 0 value of
orientation since the returned ExifData was null.
2020-07-01 12:52:47 -07:00
Anthony Bilinski
5dcea74db5
fix(core): read proxy type after personal settings are loaded
Profile is required to load personal settings, and Profile was creating the
bootstraplist using personal settings. Instead create the bootstraplist in
initCore, after personal settings have been loaded. This avoids using an
uninitialized proxy type on every profile load.
2020-07-01 12:49:24 -07:00
sudden6
8dfd108cb8
chore: brew kde repository moved 2020-07-01 20:57:59 +02:00
sudden6
811a754edd
refactor: remove getInstance from toxuri.cpp 2020-06-30 22:09:26 +02:00
sudden6
def038a897
Merge pull request #6180
Maxim Biro (2):
      fix(build): cache debug deps during 2nd stage
      refactor(build): remove specific string tests
2020-06-23 19:06:41 +02:00
Maxim Biro
af78a42187
refactor(build): remove specific string tests
What we really want to test is if the variable is set/defined/non-empty.
2020-06-22 18:32:51 -04:00
Maxim Biro
a686468bfd
fix(build): cache debug deps during 2nd stage 2020-06-22 18:32:36 -04:00
sudden6
8768f6be37
refactor: remove unused OSX platform code 2020-06-22 01:12:35 +02:00
sudden6
adfc91bc46
Merge pull request #6169
Maxim Biro (2):
      feat(windows): Build our own gdb
      chore(build): Update copyright year
2020-06-19 23:19:10 +02:00
sudden6
6d344f211b
Merge pull request #6167
Maxim Biro (2):
      feat(windows): Link all Windows deps dynamically
      feat(windows): Make sure no dlls are missing
2020-06-19 23:18:21 +02:00
sudden6
1c29152f9c
Merge pull request #6166
Maxim Biro (1):
      fix: Usage of random
2020-06-08 08:42:22 +02:00
sudden6
bc9381c900
Merge pull request #6164
William (1):
      docs(translation): correct old url reference
2020-06-08 08:41:52 +02:00
Maxim Biro
2f6d3f443f
chore(build): Update copyright year 2020-06-06 15:15:12 -04:00
Maxim Biro
ffc0359919
feat(windows): Build our own gdb 2020-06-06 15:04:04 -04:00
Maxim Biro
bfa49df006
feat(windows): Make sure no dlls are missing 2020-06-05 22:54:56 -04:00
Maxim Biro
f5f42233ca
fix: Usage of random
- Seed random in Core Thread. Core Thread didn't seed random, resulting
  in always using the same bootstrap nodes, even when you restart qTox
  or change profiles.

- Use QDateTime::currentMSecsSinceEpoch() for seeding random. It
  provides a bigger range of numbers than QTime::currentTime().msec()
  does, and the latter somehow managed to result in approximately the
  same first random number being generated, within a certain range.

- Use something a it more sensible than a mod operation to bound random
  numbers within a range. It's not perfect either, but a lot better.
  Using mod on random skews its distribution too much.

- Use QRandomGenerator's bounded() function to generate random values
  within a range.

- Enable QRandomGenerator's usage starting with Qt 5.10.0.
  QRandomGenerator is present since Qt 5.10.0, not 5.15.0.

- Bootstrap off every 5th node instead of two consecutive nodes. It's
  likely that two consecutive nodes will have the same owner, which
  makes some attacks more likely. The node selection algorithm should be
  scraped and redone from scratch to be honest though.
2020-06-04 15:58:17 -04:00
Maxim Biro
ef38c6b7b7
feat(windows): Link all Windows deps dynamically 2020-06-04 15:36:38 -04:00
William
96e220fb28
docs(translation): correct old url reference 2020-06-04 12:44:50 +02:00
Anthony Bilinski
9da1e3bbdf
fix(preview): Don't log a warning on missing exif orientation metadata
libexif returns 0 for the orientation when orientation metadata isn't present.
Treat this the same as 1, i.e. no orientation change.
2020-05-27 22:17:29 -07:00
Anthony Bilinski
10d0cae80c
Merge pull request #6153
Maxim Biro (5):
      chore(windows): update OpenSSL to 1.1.1g
      chore(windows): update SQLCipher to v4.4.0
      chore(windows): update FFmepg to 4.2.3
      chore(windows): add a note on openal-soft loopback
      chore(windows): update Exif to 0.6.22
2020-05-27 22:16:41 -07:00
sudden6
0f4dc940ce
refactor: remove Core dependency from Group
Replace the direct call with a signal connection in Widget, this keeps
Group clean.
2020-05-27 10:39:02 +02:00
sudden6
445340a0e9
refactor: remove getInstance from ContentDialog
This UI element probably should never depend on Core, but this is to fix
for a later time.
2020-05-27 10:39:02 +02:00
sudden6
19f4a6c4e0
refactor: remove getInstance from AddFriendForm 2020-05-27 10:38:57 +02:00
Anthony Bilinski
c73cedf2a0
Merge pull request #6154
bodwok (1):
      fix(chathistory): file transfers sometimes show wrong author name
2020-05-25 00:54:16 -07:00
bodwok
1bc97ef219
fix(chathistory): file transfers sometimes show wrong author name 2020-05-24 20:23:28 +03:00
Maxim Biro
4e4e77b594
chore(windows): update Exif to 0.6.22 2020-05-24 02:14:33 -04:00
Maxim Biro
0df31e0d73
chore(windows): add a note on openal-soft loopback 2020-05-24 02:13:11 -04:00
Maxim Biro
fd1f11c201
chore(windows): update FFmepg to 4.2.3 2020-05-24 02:10:36 -04:00
Maxim Biro
2b0f3081ac
chore(windows): update SQLCipher to v4.4.0 2020-05-24 02:09:47 -04:00
Maxim Biro
9657e5ef1b
chore(windows): update OpenSSL to 1.1.1g 2020-05-24 02:08:39 -04:00
sudden6
8e7ae808a3
Merge pull request #6079
bodwok (3):
      fix(ui): updating friends list color at runtime
      fix(ui): using a separate css file
      style: placing files in alphabetical order
2020-05-23 10:59:30 +02:00
sudden6
8445f352b1
Merge pull request #6149
Vincas Dargis (1):
      fix(apparmor): Allow access to Aspell personal dictionaries
2020-05-21 23:29:44 +02:00
Vincas Dargis
6a21d96214 fix(apparmor): Allow access to Aspell personal dictionaries
Running qTox under AppArmor confinement produces these `DENIED` messages:

```
type=AVC msg=audit(1589897925.045:793): apparmor="DENIED"
operation="open" profile="qtox" name="/home/vincas/.aspell.en.pws"
pid=36671 comm="qtox" requested_mask="r" denied_mask="r" fsuid=1000
ouid=1000
```
```
type=AVC msg=audit(1589897925.045:794): apparmor="DENIED"
operation="open" profile="qtox" name="/home/vincas/.aspell.en.prepl"
pid=36671 comm="qtox" requested_mask="r" denied_mask="r" fsuid=1000
ouid=1000
```
```
type=AVC msg=audit(1589996245.245:1193): apparmor="DENIED"
operation="file_lock" profile="qtox" name="/home/vincas/.aspell.en.pws"
pid=53202 comm="qtox" requested_mask="k" denied_mask="k" fsuid=1000
ouid=1000
```
```
type=AVC msg=audit(1589996245.245:1194): apparmor="DENIED"
operation="file_lock" profile="qtox"
name="/home/vincas/.aspell.en.prepl" pid=53202 comm="qtox"
requested_mask="k" denied_mask="k" fsuid=1000 ouid=1000
```

Add file rule to allow reading and locking Aspell-specific user files [0].

[0] http://aspell.net/man-html/Format-of-the-Personal-and-Replacement-Dictionaries.html
2020-05-20 20:44:44 +03:00
Anthony Bilinski
0b256c5b83
chore(docs): add instructions for avoiding bootstrap node censorship
Fix #5948
2020-05-20 03:29:02 -07:00
sudden6
efaa14d11e
Merge pull request #6136
Vincas Dargis (1):
      fix(apparmor): Allow spellchecking
2020-05-19 12:35:56 +02:00
Vincas Dargis
2ebf51b5b7 fix(apparmor): Allow spellchecking
qTox 1.17.2 produces these DENIED messages on Debian Sid:

```
type=AVC msg=audit(1588944857.534:854): apparmor="DENIED"
operation="open" profile="qtox"
name="/usr/share/hspell/hebrew.wgz.sizes" pid=29172 comm="qtox"
requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
```

```
type=AVC msg=audit(1588945073.014:885): apparmor="DENIED"
operation="open" profile="qtox"
name="/usr/share/kf5/sonnet/trigrams.map" pid=29334 comm="qtox" req
uested_mask="r" denied_mask="r" fsuid=1000 ouid=0
```

```
type=AVC msg=audit(1588945273.590:905): apparmor="DENIED"
operation="open" profile="qtox" name="/var/lib/aspell/sl.rws" pid=29391
comm="qtox" requested_mask=
"r" denied_mask="r" fsuid=1000 ouid=0
```

Add file read rules to allow reading spellcheck-related files.
2020-05-19 09:14:37 +03:00
Mick Sayson
6e163ca5ed
feat(notification): Notifications now always replace the previous one
This is a feature/fix to improve notification behavior when we receive
over 3 messages.

SnoreNotify prevents over 3 notifications from being displayed before a
user clears the notification. This is presumably to avoid infinite
notification spam.

Unfortunately this results in the notifications just coming in _after_
the user clears them. This means if there are 100s of messages built up
the user has to clear their notifications N messages / 3 times.

This feature/fix folds all notifications into a single notification
representing the current qTox notification state. See
notificationgenerator_test.cpp for what the new messages look like.
2020-05-17 00:00:53 -07:00
Mick Sayson
a9f6543e43
feat(notification): Notification string generator for multiple messages 2020-05-17 00:00:48 -07:00
Anthony Bilinski
14571abaa3
Merge pull request #6143
Mick Sayson (1):
      fix(preview): Fix exif orientations
2020-05-16 17:46:28 -07:00