Commit graph

58 commits

Author SHA1 Message Date
Alex Liebowitz
ac5df086a9 On Windows, denormalize URI when opening link with app closed 2017-06-29 00:56:59 -04:00
Alex Liebowitz
c8cbf61f94 Reliably focus app window when opening lbry:// links
Also refactors and simplifies the code for handling URIs requested from
outside apps.
2017-06-28 03:28:30 -04:00
Alex Grintsvayg
6c3a30eac0 move keytar into main app process, so webpack doesnt package it and fuck up the keytar.node path 2017-06-26 13:08:54 -04:00
Krishnaraj Bhat
db64723c24 Add timeout for jayson client requests
request() didn't hit the callback sometimes
fixes #19
fixes #188
2017-06-03 13:34:58 +05:30
Alex Liebowitz
df9391da76 On Windows, open installer using shell (allows elevation)
When you're just running a bare process, Windows can't show the "this
app wants elevated permissions" box and child_process.spawn throws an
error.
2017-06-01 05:51:37 -04:00
Jeremy Kauffman
aee0603dc9 fix version info on help 2017-05-25 14:29:28 -04:00
Jeremy Kauffman
51a2f4f52e Merge branch 'api-fixes' 2017-05-24 20:10:36 -04:00
Alex Grintsvayg
d77fc883d1 only try to claim reward for initial claims, not updates 2017-05-23 13:08:32 -04:00
Jeremy Kauffman
4f7e7c6922 debug fixes 2017-05-21 14:07:02 -04:00
Jeremy Kauffman
02025bb2dc Merge remote-tracking branch 'origin/master' into redux 2017-05-12 16:49:30 -04:00
Jeremy Kauffman
57bd67d925 Merge pull request #121 from lbryio/windows-linux-uris
Windows URI handling
2017-05-12 16:46:48 -04:00
Alex Grintsvayg
df7ce9cc64 api returns fields in lowercase now 2017-05-11 17:44:00 -04:00
Alex Liebowitz
980a509260 Disable single instance app on Linux for now (Electron bug)
On Linux, app.makeSingleInstance is always returning true (i.e. "this
is not the original process").
2017-05-11 06:17:35 -04:00
Alex Liebowitz
d888707d56 Tweak logic in makeSingleInstance callback 2017-05-11 06:15:39 -04:00
Alex Liebowitz
df46c3f4e5 Undo normalization that Windows does to URIs passed in from other apps 2017-05-11 03:12:24 -04:00
Alex Liebowitz
2b6528ca3e Fix argv.length check in makeSingleInstance callback
Also correct length of argv: with Electron, there's just the
executable, not interpreter + filename.
2017-05-11 03:12:00 -04:00
Alex Liebowitz
856aa28db2 Convert to single-instance app
- Prevents multiple windows from being opens at once
 - Allows for URI launching by capturing argv from second process
2017-05-11 03:09:43 -04:00
Alex Liebowitz
b189b31347 Fix handling for URIs requested before window is open on Windows 2017-05-11 03:02:25 -04:00
Alex Liebowitz
d44d5806fd Add setAsDefaultProtocolClient call for Windows 2017-05-10 04:05:55 -04:00
Jeremy Kauffman
60d298b354 Merge remote-tracking branch 'origin/master' into redux 2017-05-09 16:58:48 -04:00
Jeremy Kauffman
9c02327b26 merge plus some bug fixes 2017-05-09 16:12:48 -04:00
Jeremy Kauffman
b28b116a24 Merge pull request #116 from lbryio/uri-handling
URI handling (WIP)
2017-05-08 10:11:18 -04:00
Alex Liebowitz
2761ebbd92 Attach did-finish-load event to win.webContents instead of win 2017-05-08 05:22:38 -04:00
Alex Liebowitz
ef4274012f Add better handling for URIs requested during load 2017-05-08 05:04:11 -04:00
Alex Liebowitz
499fa1214f Fix variable name in open URI callback 2017-05-08 02:33:54 -04:00
Alex Liebowitz
758bb59ccb Add basics of URI handling for Mac and Windows 2017-05-05 05:19:15 -04:00
Alex Liebowitz
9fc2a70ee5 Don't try to send version info to render process if window isn't open 2017-05-05 02:19:52 -04:00
6ea86b96
0d3647c709 Redux proof of concept 2017-05-02 18:24:21 -04:00
Alex Liebowitz
9348d4d912 Move version checking into Electron 2017-04-27 02:58:34 -04:00
Jeremy Kauffman
a8d85d7c1d allow anyone with lbc into early access 2017-04-20 10:45:45 -04:00
Jeremy Kauffman
0b17ca6043 stop opening dev toolbar 2017-04-17 14:39:13 -04:00
Jeremy Kauffman
8d67d36ad9 views, rewards, fixes for no api, other fixes 2017-04-17 09:47:38 -04:00
Jeremy Kauffman
575db85477 so far 2017-04-17 09:46:51 -04:00
Alex Liebowitz
8614276f0c Improve shutdown process 2017-04-13 17:32:59 -04:00
Alex Liebowitz
4b11525bce Tweak shutdown logic 2017-03-27 16:48:28 -04:00
Alex Liebowitz
70da416ca2 Finish Windows compatibility for shutdown process 2017-03-27 16:48:28 -04:00
Jeremy Kauffman
2a0cf1d6db Merge branch 'master' into fast_pages 2017-03-27 09:46:47 -04:00
Jeremy Kauffman
dc13de7160 make page changes fast 2017-03-26 14:30:18 -04:00
Alex Liebowitz
3e33f78235 Add code to get process IDs for daemon on Windows 2017-03-25 10:27:20 -04:00
Alex Liebowitz
31e3b3006b Small bugfixes and typos 2017-03-25 10:27:20 -04:00
Alex Liebowitz
977acafb8c Refactor shutdown process 2017-03-25 10:26:50 -04:00
Alex Liebowitz
dead2bdeb3 Add Mac and Windows installer launching
Also starts a detached process so the window doesn't get held open
(many GUI apps launch the interface in a new process, so xdg-open
returns immediately, but it's not guaranteed).
2017-03-25 10:26:50 -04:00
Alex Liebowitz
71e8d42b27 Minor style fixes and tweaks 2017-03-25 10:24:34 -04:00
Alex Liebowitz
f51b720e05 Make upgrade process better at killing old daemons
- Manually call xdg-open instead of using shell.openItem(), which
   doesn't reliably work from the main process
 - If there's a connection error or timeout when asking the daemon
   to close, fall back on force killing
2017-03-25 10:24:34 -04:00
Alex Liebowitz
c086842972 Revert newest upgrade changes (need more work) 2017-03-22 07:21:48 -04:00
Alex Liebowitz
4958f9decf Make upgrade process better at killing old daemons
- Manually call xdg-open instead of using shell.openItem(), which
   doesn't reliably work from the main process
 - If there's a connection error or timeout when asking the daemon
   to close, fall back on force killing
2017-03-22 07:17:53 -04:00
Alex Grintsvayg
20064ee558 some progress, but needs more work 2017-03-17 18:05:25 -04:00
Alex Liebowitz
3c2f3abe8e Real update system
- Now asks the daemon to close, even if it wasn't started by the same
   app
 - Improved UX during upgrade process (cancel buttons, final dialog
   where you approve the update, etc.)
 - Saves updates in temp directory, closes app and launches the installer
2017-03-17 13:15:07 -04:00
Alex Grintsvayg
666fd5a490 renamed lbrynet to lbrynet-daemon, removed some unused code, lowercased daemon release name 2017-03-02 23:37:20 -05:00
jobevers
02dd08a72f allow lbrynet-daemon executable to be configured 2017-02-23 14:15:09 -06:00