Commit Graph

157 Commits

Author SHA1 Message Date
DC
840966c7f0 Remove global shortcuts when player isn't active 2016-03-28 22:57:40 -07:00
DC
b8ff4b378b Linux updater: better message 2016-03-28 18:52:09 -07:00
DC
86069a7173 Linux update notifications
Fixes #257
2016-03-28 16:16:43 -07:00
Feross Aboukhadijeh
589880f1e3 OS X: Prevent white flash on window open
We got the window to run less JS but now it’s shown by the main process
too soon! This fixes that with a setTimeout.

Perhaps when this issue is fixed
(https://github.com/atom/electron/issues/861) we can remove the timeout.
2016-03-27 00:27:28 -07:00
Feross Aboukhadijeh
203d058280 About window: increase size slightly 2016-03-26 23:43:24 -07:00
Feross Aboukhadijeh
5335bf39b5 Windows/Linux: Hide menu on About Window 2016-03-26 23:43:24 -07:00
Feross Aboukhadijeh
b263a69716 Windows/Linux: Add About Window (#220) 2016-03-26 23:43:24 -07:00
Feross Aboukhadijeh
9ef1d0a605 Keyboard shortcuts: volume shortcuts should be local
`globalShortcut` will register the shortcut at the OS level, even when
the app is not focused.

Using `localShortcut` would work, but let's put it in the top menu
instead, where all the other shortcuts are.
2016-03-26 20:04:29 -07:00
Feross Aboukhadijeh
0cf89600c0 es6ify 2016-03-26 19:58:04 -07:00
DC
3928564314 Add (BETA) to window title
Also fix a bug: fix relative paths to the default torrents.
2016-03-26 18:11:40 -07:00
Feross Aboukhadijeh
b85f0b9489 Merge pull request #202 from grunjol/feature-volume-management-clean
Add volume management
2016-03-25 23:46:59 -07:00
Feross Aboukhadijeh
59a1bc03f2 Perf: Remove all *Sync methods for Linux startup 2016-03-25 21:47:49 -07:00
Feross Aboukhadijeh
01e27b2691 Linux: Ensure ".local/share/{applications,icons}" exists 2016-03-25 18:56:22 -07:00
Feross Aboukhadijeh
656e811e84 Merge pull request #203 from grunjol/feature-unity-desktop-shortcuts
Add unity launcher icons
2016-03-25 18:50:02 -07:00
Feross Aboukhadijeh
db60b99982 window useContentSize 2016-03-25 17:50:29 -07:00
grunjol
4673354703 fixes #116 Add Unity launcher icons 2016-03-25 16:31:12 -03:00
Feross Aboukhadijeh
447413e4b9 delete commented out code 2016-03-25 03:40:18 -07:00
Feross Aboukhadijeh
c788b3358a Windows: fix magnet link handling 2016-03-25 03:33:39 -07:00
Feross Aboukhadijeh
0681169653 Windows: base Squirrel shortcut code on Nylas N1 2016-03-25 03:33:39 -07:00
Feross Aboukhadijeh
8bba565609 Windows: create desktop/start menu shortcuts on install/update 2016-03-25 03:33:39 -07:00
Feross Aboukhadijeh
78f08487c4 delay install splash screen so user sees it 2016-03-25 03:33:39 -07:00
Feross Aboukhadijeh
bdf7110135 Move --squirrel-xxxx handling to new file 2016-03-25 03:33:39 -07:00
Feross Aboukhadijeh
9d35ece954 Windows/linux: Don't autohide top menu bar (it's important) 2016-03-25 03:33:39 -07:00
Feross Aboukhadijeh
00e4cc1864 Prevent --squirrel arguments from getting added as torrents 2016-03-25 03:33:39 -07:00
Feross Aboukhadijeh
aecead4a2d Windows: Create installer .exe file 2016-03-25 03:33:39 -07:00
Feross Aboukhadijeh
fd5f4dd139 Show, unminimize, and focus window after opening magnet link (fix #210)
Requires a workaround for this Electron issue:
https://github.com/atom/electron/issues/4338
2016-03-24 02:56:34 -07:00
grunjol
fc6d8e7b7d add volume management 2016-03-23 09:01:07 -03:00
Feross Aboukhadijeh
310eebce2a remove app update check interval
If there’s an update, this would redownload it every 6 hours until the
app is restarted. We could fix it, but let’s just simplify this:

App updates are checked for on app startup only.
2016-03-21 20:19:30 -07:00
Feross Aboukhadijeh
f0df9011df add log.js module for renderer logging 2016-03-21 20:19:30 -07:00
Feross Aboukhadijeh
e7e7afab3b implement barebones auto updater 2016-03-21 20:19:30 -07:00
Feross Aboukhadijeh
3ba4b563ac move crash reporter placeholder 2016-03-21 20:19:30 -07:00
DC
15e3e49aa4 Fix #176: close window on OSX 2016-03-21 04:06:54 -07:00
DC
fe943db448 Fix window bounds restore on OSx 2016-03-21 03:56:56 -07:00
DC
511c60671c Restore window size correctly
* Don't attempt to change size when maximized or fullscreen
* Bugfix: restore window size correctly when returning from a video so big that it that caused the window to maximize
2016-03-21 02:34:56 -07:00
grunjol
5a4684d3c6 add icon for linux desktop file 2016-03-20 12:47:55 -03:00
Feross Aboukhadijeh
f71cda65ef Prevent multiple instances of the app from running at the same time
Fix #167
2016-03-20 03:54:25 -07:00
Feross Aboukhadijeh
c11ebf30bd Only use 'app.asar.unpacked' path where it is needed 2016-03-20 03:30:39 -07:00
Feross Aboukhadijeh
9f46da5477 Linux: Register .torrent file/magnet link handlers 2016-03-20 03:19:32 -07:00
Feross Aboukhadijeh
5cb0e6940f register-handlers.js 2016-03-20 03:15:29 -07:00
Feross Aboukhadijeh
c4a74c526d tweak registerProtocolHandler API 2016-03-20 03:15:29 -07:00
Feross Aboukhadijeh
fb37b87297 set windows protocol/file icons 2016-03-20 01:10:41 -07:00
Feross Aboukhadijeh
1022d616d2 Unpack icon files so setting browserWindow.icon works 2016-03-20 01:10:41 -07:00
Feross Aboukhadijeh
c8bd39056c Register .torrent file hander on Windows 2016-03-19 23:12:58 -07:00
Feross Aboukhadijeh
29138fc83c add documentation for registerProtocolHandler 2016-03-19 20:32:19 -07:00
Feross Aboukhadijeh
765d3bde56 detect if app is running in production
If app is running in “production” (i.e. it has been packaged), then it
will be invoked with one less argument.

WebTorrent.exe arguments

vs.

electron.exe /path/to/app arguments

We need to detect this to correctly handle command line arguments.
2016-03-19 20:32:19 -07:00
Feross Aboukhadijeh
84a87dd1de log command line arguments 2016-03-19 20:32:19 -07:00
Feross Aboukhadijeh
81bb8eea7b do all logging in the renderer 2016-03-19 20:32:19 -07:00
Feross Aboukhadijeh
afe5151e28 Handle command line arguments 2016-03-19 20:32:19 -07:00
Feross Aboukhadijeh
e70e32c5f8 use process.execPath instead of app.getPath('exec')
They’re equivalent
2016-03-19 20:32:19 -07:00
Feross Aboukhadijeh
3d1fd56450 Use real path to WebTorrent.exe 2016-03-19 20:32:19 -07:00