Tom Van Eyck
cdbda52d9a
Disabled HardwareMediaKeyHandling, fixes vector-im/element-web#15704
...
Signed-off-by: Tom Van Eyck <tom.vaneyck@telenet.be>
2021-04-02 16:52:30 +02:00
Šimon Brandner
55dffc8c52
Fix disabling spellchecker
...
This is quite ugly. We have to use the store here to get this working since spellCheckerEnabled isn't persistent
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-04-02 12:07:33 +02:00
Germain Souquet
adfb4a424a
remove unused imports
2021-04-01 09:30:15 +01:00
Germain Souquet
5fc871492e
make shortcut pressed variable more explanatory
2021-03-31 17:18:39 +01:00
Germain Souquet
84990559ec
Avoid exit listener to hijack other application shortcuts
2021-03-31 08:58:24 +01:00
Germain Souquet
d986555517
Only prompt exit warning for keyboard shortcuts
2021-03-29 12:10:27 +01:00
Germain Souquet
3d18ff16d1
Attempt to minimise the window first rather than exiting
2021-03-25 14:50:33 +00:00
Germain Souquet
9cdea580d3
Remove checkbox options for exit dialog
2021-03-25 14:34:02 +00:00
Germain Souquet
68587e84ed
Add user settings for warn before exit
2021-03-25 14:15:04 +00:00
Germain Souquet
c9c0ceb757
Add prompt to warn before quitting the application
2021-03-25 12:46:10 +00:00
Šimon Brandner
121bba1f35
Set an empty array to disable spell-checker
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-03-03 14:49:07 +01:00
Šimon Brandner
9ca19d7de6
Use getSpellCheckLanguages() instead of a setting
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-02-18 20:12:47 +01:00
Šimon Brandner
dce524f5bc
Use try-catch
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-02-18 18:39:51 +01:00
Šimon Brandner
48d66c0031
Merge branch 'feature-multi-language-spell-check' of https://github.com/SimonBrandner/element-desktop into feature-multi-language-spell-check
2021-02-18 18:30:37 +01:00
Šimon Brandner
36438479fc
Merge branch 'develop' into feature-multi-language-spell-check
2021-02-18 18:25:21 +01:00
Šimon Brandner
f51acb78e0
Update src/electron-main.js
...
Co-authored-by: J. Ryan Stinnett <jryans@gmail.com>
2021-02-18 18:05:37 +01:00
Šimon Brandner
44c8f2c30f
Merge 'upstream/develop' and use contextBridge
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-01-14 08:31:52 +01:00
J. Ryan Stinnett
5ad0967b07
Enable context isolation, bridge expected IPC
...
This enables Electron's context isolation mode as recommended in their guidance.
We use the context bridge feature to regain access to only the IPC channels we
expect to have access to.
2021-01-13 15:21:00 +00:00
Šimon Brandner
3b496c362b
Don't wait for loaded
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-01-05 19:45:34 +01:00
Šimon Brandner
c4b7e856db
Expose desktopCapturer instead of the awfullness
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2020-12-26 08:28:35 +01:00
Šimon Brandner
a36321b697
Some improvements
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2020-12-25 16:24:21 +01:00
Šimon Brandner
353f5b35df
Fix screen-sharing
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2020-12-25 15:54:13 +01:00
Šimon Brandner
0d00f3ea6c
Fix more formatting
2020-12-01 20:27:09 +01:00
Šimon Brandner
2ef3c8c1ab
Fix formatting
2020-12-01 20:22:51 +01:00
Šimon Brandner
e373c03b2a
Cleanup
2020-12-01 20:19:12 +01:00
Šimon Brandner
107efba6f3
Added getAvailableSpellCheckLanguages case
2020-11-29 20:50:57 +01:00
Edward Betts
82c88ca654
Correct spelling mistakes
2020-11-14 21:54:07 +00:00
Damir Jelić
8add8d7717
electron-main: Fix some lint issues.
2020-10-13 17:07:39 +02:00
Damir Jelić
1d811b6f4b
electron-main: Use keytar to for the seshat passphrase.
...
This will also change the passphrase for existing setups if no
passphrase is found in the secret store.
2020-10-13 15:59:21 +02:00
Damir Jelić
50a4069893
electron-main: Refactor out the randomArray method.
2020-10-13 15:58:35 +02:00
David Baker
c6ab88508f
Remove the Element (Riot) shortcuts too
2020-07-28 15:56:05 +01:00
David Baker
94086f247a
Remove ' (Riot)' from app name
...
And remove the hacks to make the user data path different from the
app name. Also add the profile dir to the legacy user data dir too.
Fixes https://github.com/vector-im/riot-web/issues/14619
Fixes https://github.com/vector-im/riot-web/issues/14623
2020-07-21 17:57:54 +01:00
David Baker
9d15c1bbd0
Don't forget nightly when computing userData path
...
We were assuming we were always 'Element'
2020-07-15 20:21:06 +01:00
David Baker
769d4cf647
Merge remote-tracking branch 'old-origin/develop' into dbkr/update_more_icons
2020-07-15 13:53:04 +01:00
David Baker
b06bba2c69
More icon updates
2020-07-15 13:50:00 +01:00
David Baker
b839264d9f
Merge pull request #113 from vector-im/dbkr/move_function_for_linter
...
Fix lint error
2020-07-15 11:43:54 +01:00
David Baker
5f01bbd9e0
Fix lint error
2020-07-15 11:41:30 +01:00
J. Ryan Stinnett
71c8ea417d
Merge remote-tracking branch 'origin/develop' into element-develop
2020-07-15 10:44:25 +01:00
David Baker
3a253fe742
Some terribleness to make updating work on windows
...
Squirrel doesn't handle the executable changing name, as hopefully
explained in comments
2020-07-14 19:05:28 +01:00
David Baker
4a488c9ab2
Add old app name in brackets
...
And fix user data path to be non-bracketed version always.
2020-07-07 18:57:29 +01:00
David Baker
c048dff4de
Apply 1 suggestion(s) to 1 file(s)
2020-07-02 13:42:45 +00:00
David Baker
85dd2504db
Rebrand step 2
...
* Continue to use Riot user data directory if it exists and the new
one doesn't, so users stay logged in.
* Move the auto-launcher over to new name.
* Look for keytar password under both names.
2020-07-02 13:30:11 +01:00
David Baker
386e0be08d
This one's easy too
2020-07-01 15:40:23 +01:00
David Baker
466a871094
Rebrand step 1: s/riot/element/ in the places where it's reasonably simple
2020-07-01 15:30:53 +01:00
Michael Telatynski
891e7ca234
Show expiring toast on completed downloads to prompt user to open
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-06-29 16:08:39 +01:00
Damir Jelić
2da6bc6a1e
electron-main: Rename the deletion method for the index.
2020-06-24 11:06:09 +02:00
Damir Jelić
141107c678
electron-main: Skip the reindex if we're going to delete the db anyways.
2020-06-23 16:42:27 +02:00
Damir Jelić
069f009d85
Merge remote-tracking branch 'origin/poljar/eventindex-user-version' into develop
2020-06-19 09:54:29 +02:00
Damir Jelić
c1646e882a
Merge remote-tracking branch 'origin/poljar/eventindex-newly-encrypted-room' into develop
2020-06-19 09:54:19 +02:00
Damir Jelić
a9b4110d65
electron-main: Add support to set and get the user version.
2020-06-17 17:19:47 +02:00
Damir Jelić
193dd0f9e3
main: Add an event index IPC method to check if a room is being indexed.
2020-06-08 16:41:15 +02:00
Michael Telatynski
c2ecef12f2
Fix riot-desktop manual update check getting stuck on Downloading...
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-06-07 13:18:33 +01:00
Michael Telatynski
861c90c3d8
delint
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-06-05 18:41:29 +01:00
Michael Telatynski
799ccc6197
Electron recall latest downloaded update for when the user manually checks for updates
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-06-05 18:36:10 +01:00
Hubert Chathi
f841622e81
Merge pull request #95 from uhoreg/keytar
...
use keytar to store pickle keys
2020-06-03 16:54:48 -04:00
Michael Telatynski
20fb0f477b
tidy comment
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-05-31 12:28:15 +01:00
Michael Telatynski
c6620735b4
Fix electron context menu copy/save-as
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-05-31 12:23:23 +01:00
Hubert Chathi
188190888b
more lint
2020-05-28 15:36:06 -04:00
Hubert Chathi
b366dbb460
fix lint errors and add copyright info
2020-05-28 15:30:00 -04:00
Hubert Chathi
19edcd436e
use keytar to store pickle keys
2020-05-28 15:07:39 -04:00
Travis Ralston
d33ce95dd0
Merge pull request #91 from vector-im/travis/ipc-renderer
...
Enforce sandbox on all spawned BrowserWindow objects
2020-05-27 10:03:28 -06:00
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
Travis Ralston
0269501d4f
Enforce sandbox on all spawned BrowserWindow objects
...
The docs (https://www.atom.pe/docs/api/sandbox-option/ ) say we should be using the browser-native `window.open` implementation, but in practice that appears very much false. Electron, no matter our set of options, appears to always make a hit to the ipcRenderer with `window.open` calls, causing the calling code to explode due to the sandbox making that impossible.
By using `app.enableSandbox()`, it puts the sandbox in place over all BrowserWindow objects, including the temporary ones which empirically are being created for `window.open`. We do not need to specify `sandbox: true` to the BrowserWindow with this approach, though uncommenting and therefore reintroducing the flag causes our lovely ipcRenderer error again.
As far as I can tell, the sandbox does actually get applied to the window though the fact that `sandbox: true` still does things despite the docs saying otherwise leaves me a bit uncomfortable.
Fixes https://github.com/vector-im/riot-web/issues/13719
2020-05-20 16:16:57 -06: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