Skip to content

Commit 2a96923

Browse files
committed
added some text to indicate why the first start takes so long so we know it's not broken and doing something
1 parent 73a93a6 commit 2a96923

File tree

4 files changed

+16
-2
lines changed

4 files changed

+16
-2
lines changed

app/index.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@
3535
<div class="pure-u-1-1">
3636
<div class="center">
3737
<h2 class="topText"><span id="topTextHeader">ATV Remote</span><span id="topTextKBLink"><a href="#" onclick="openKeyboardClick(event)">Use Keyboard</a></span></h2>
38+
<div id="initText" style="text-align: left; padding-left: 5px;">
39+
<p>If this is the first time this program has run, please be patient. It may take up to five minutes to get setup.</p>
40+
<p>The Python library "pyatv" is being installed in the directory<span id="workingPathSpan"></span>.</p>
41+
<p>If you see this message after waiting 5 minutes, try deleting the directory above and restarting the program.</p>
42+
</div>
3843
</div>
3944
</div>
4045
</div>

app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "atv-mac-remote",
3-
"version": "1.1.0",
3+
"version": "1.1.1",
44
"description": "ATV Remote",
55
"productName": "ATV Remote",
66
"scripts": {

app/web_remote.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ var dialog = remote.dialog;
77
var ipcRenderer = electron.ipcRenderer;
88
var mb = remote.getGlobal('MB');
99
const { Menu, MenuItem } = remote
10+
const path = require('path');
1011
//var atv = electron.remote.require('./remote').atv;
1112
//var NowPlayingInfo = atv.NowPlayingInfo;
1213
var nativeTheme = electron.remote.nativeTheme;
@@ -396,6 +397,9 @@ async function sendCommand(k, shifted) {
396397
// _connectToATV();
397398
// }
398399
}
400+
function getWorkingPath() {
401+
return path.join(process.env.APPDATA || (process.platform == 'darwin' ? process.env.HOME + '/Library/Application Support' : process.env.HOME + "/.local/share"), "ATV Remote");
402+
}
399403

400404
function isConnected() {
401405
return atv_connected
@@ -414,6 +418,7 @@ async function askQuestion(msg) {
414418

415419

416420
function startPairing(dev) {
421+
$("#initText").hide();
417422
//setStatus("Enter the pairing code");
418423
$("#results").hide();
419424
$("#pairButton").on('click', () => {
@@ -437,6 +442,7 @@ function submitCode() {
437442
}
438443

439444
function showKeyMap() {
445+
$("#initText").hide();
440446
$(".directionTable").fadeIn();
441447
var tvTimer;
442448
$("[data-key]").off('mousedown mouseup mouseleave');
@@ -551,6 +557,7 @@ function setStatus(txt) {
551557
}
552558

553559
function startScan() {
560+
$("#initText").hide();
554561
$("#loader").fadeIn();
555562
$("#addNewElements").show();
556563
$("#runningElements").hide();
@@ -732,5 +739,7 @@ try {
732739
nativeTheme.on('updated', themeUpdated);
733740

734741
$(function() {
742+
var wp = getWorkingPath();
743+
$("#workingPathSpan").html(`<strong>${wp}</strong>`)
735744
ipcRenderer.invoke('isWSRunning')
736745
})

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "atv-mac-remote",
3-
"version": "1.1.0",
3+
"version": "1.1.1",
44
"main": "app/main.js",
55
"description": "ATV Remote",
66
"productName": "ATV Remote",

0 commit comments

Comments
 (0)