Commit graph

37 commits

Author SHA1 Message Date
Michael Telatynski
66d9204578 Run before-quit on updates too to flush rageshake
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-05-23 11:52:49 +01:00
Michael Telatynski
1cd23edb80 Update help message to fix broken url to electron docs
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-05-14 11:27:26 +01:00
Steef Hegeman
f0c68e0b39 widen search paths / fix vector-im/riot-web#13190
This does two things related to search paths:
- also search for webapp symlink in the case of packaged applications
  (e.g. Archlinux used to provide a symlink this way, linking to a
  riot-web copy installed elsewhere, instead of creating an asar of it)
- also take dirname(asarPath) as a valid resources path, as this is how
  riot-desktop currently is packaged. Fixes vector-im/riot-web#13190.
2020-04-16 14:08:16 +02:00
Michael Telatynski
8c9d77ad53
Merge pull request #67 from vector-im/t3chguy/poc_riot_desktop_sso_multi_profile
Fix Electron SSO handling to support multiple profiles
2020-04-14 17:09:15 +01:00
Michael Telatynski
855ffd7f83 Add riot-desktop shortcuts for forward/back matching browsers&slack
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-04-14 15:04:58 +01:00
Michael Telatynski
b9da31fc15 Fix Electron SSO handling to support multiple profiles
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-04-14 13:29:47 +01:00
Michael Telatynski
9ebf217160 Fix spellcheck language fallback algorithm
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-04-01 16:35:53 +01:00
Damir Jelić
2571c26372 electron-main: Use const instead of let for the index variable. 2020-03-24 14:23:49 +01:00
Damir Jelić
1e05af203c electron-main: Immediatelly set the eventIndex variable to null when closing.
The react-sdk doesn't await the closing of the event index, this is done
so because of limitations in the lifecycle module. This wasn't a problem
since we used to just set the eventIndex variable to null. Nowadays we
wait for Tantivy to shutdown using a close() method on the index.

To avoid this being called multiple times while we're already closing the
index set the eventIndex variable to null before awaiting.

This fixes https://github.com/vector-im/riot-web/issues/12838.
2020-03-24 14:21:04 +01:00
Michael Telatynski
f1ff04c8bc Register Mac electron specific Cmd+, shortcut to User Settings
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-03-19 23:42:09 +00:00
Damir Jelić
19c02610fd electron-main: Use the new shutdown method. 2020-03-13 11:32:25 +01:00
Damir Jelić
23bfa9262e electron-main: Add support to delete events from the index. 2020-03-12 11:46:14 +01:00
Damir Jelić
3509d3d5af electron-main: Fix a couple of lint errors. 2020-03-11 12:05:34 +01:00
Damir Jelić
4b35086028 electron-main: Reindex the event index if it indicates that this is needed. 2020-03-11 11:27:00 +01:00
Michael Telatynski
ec33fb4509
Merge branch 'master' into t3chguy/depr8 2020-03-05 11:12:39 +00:00
Michael Telatynski
825d90e27b move the setter from the deprecated method also
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-03-05 11:12:01 +00:00
Michael Telatynski
c91a39097d Migrate from deprecated BrowserWindow::isMenuBarAutoHide() 2020-03-03 10:00:09 +00:00
Michael Telatynski
4b8b32c3e5 only register open-url handler on macos 2020-03-02 16:49:55 +00:00
Michael Telatynski
dd45008291 update comments and win32 specialcase 2020-03-02 16:49:04 +00:00
Michael Telatynski
d7ebad284e update comment 2020-03-02 16:46:50 +00:00
Michael Telatynski
eac8118452 Small comment tweaks 2020-03-02 16:45:28 +00:00
Michael Telatynski
bbc44801c2 add missing protocol.js 2020-03-02 15:49:37 +00:00
Michael Telatynski
abe074e43e riot-desktop open SSO in browser so user doesn't have to auth twice 2020-03-02 15:04:51 +00:00
Michael Telatynski
0d2b7ee157 Upgrade to electron 8.0.1 and implement spellchecking
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-02-24 17:16:35 +00:00
David Baker
0577abd885 Hopefully enable subpixel font rendering
https://github.com/vector-im/riot-web/issues/12443 points out the
electron eccentricity that the background of a BrowserWindow is
'transparent' (whatever that actually means in practice) by default
which causes subpixel font rendering to be disabled. Set an explicit
background colour as per the faq entry.

Fixes https://github.com/vector-im/riot-web/issues/12443
2020-02-21 11:17:18 +00:00
David Baker
0fdba02e07 ElectronPlatform: Add the indexSize method.
Port https://github.com/vector-im/riot-web/pull/11529
2020-02-03 16:23:42 +00:00
David Baker
ab91a311c4 ElectronPlatform: Add the ability to load file events from the event index
Port https://github.com/vector-im/riot-web/pull/11907
2020-02-03 16:21:35 +00:00
David Baker
a3021fce0a Updates URL for Electron Command Line Switches
Port https://github.com/vector-im/riot-web/pull/11810
2020-02-03 16:20:09 +00:00
David Baker
b7b9779b65 electron-main: Provide a better error message if Seshat isn't installed.
Port https://github.com/vector-im/riot-web/pull/11691
2020-02-03 16:19:16 +00:00
Michael Telatynski
7d6ae5437a Add accelerators to context menu options like cut&paste in electron 2019-12-19 11:16:32 +00:00
David Baker
14a919cf9b Fix the linting errors 2019-12-10 18:10:15 +00:00
David Baker
a13c0e0be5 Electron API updates
A couple of changes to properties rather than functions and the
register*Protocol functionsd are now synchronous and so don't need
a completion callback.
2019-12-10 18:02:20 +00:00
David Baker
680caed505 Remove unnecessary logging 2019-12-10 17:56:50 +00:00
David Baker
8d3529787a Search for the webapp resources on startup
and error if we can't find them.
2019-12-10 17:40:17 +00:00
David Baker
672b846364 Pack the webapp into an asar 2019-12-10 15:54:17 +00:00
David Baker
986c12b451 Remove support for the origin migrator
Requires https://github.com/vector-im/riot-web/pull/11631
2019-12-09 12:49:41 +00:00
David Baker
a2c5d6176f Initial copy of files from the riot-web repo
None of this will work as it will need tweaking (at the very least
I've not copied the origin migrator because that's had long enough)
but these are files which already existed in their current state and
so don't need re-reviewing.
2019-12-06 18:17:34 +00:00