Comments (9)
In the .desk file (probably called app.desk) it should tell deskshell the default location to start the app at. I am guessing that this is missing. So in app.desk there should be:-
"defaultLocation": "index.htm",
If this is missing then I think it will try to start at / which is why you are getting the error. You will also need a starting page for your application, if it is called something else then add or change "defaultLocation" to be the name of the starting page. Hopefully deskshell will then display this first page instead of the error.
@Ingwie: looks like desk_parse is looking in the wrong place for desk.decl-defs (it is looking relative to user application instead of relative to deskshell install directory?).
from appjs-deskshell.
@Ingwie: simplest way to help here would be to go to the demos tab in the default application, select html website and then click on "view source", on windows this opens explorer with the working demo app so people could then copy and paste that and start from there. View source is implemented by opening explorer, on mac we would need to use process.platform or similar to detect we are running on mac and then start up the finder.
from appjs-deskshell.
I had all the above in place. Originally, I was getting a javascript error in the console on augular that I fixed. Then I just got the "Error Loading" page.
Here is my .desk file.
{
"name":"default"
,"version":"0.2"
,"author":"mpenrose"
,"description":"default app shown when you start deskshell"
,"main":"app.js"
,"licence":"MIT"
,"frontend":"chromium-portable"
,"backend":"node"
,"defaultLocation":"index.htm"
,"width":1024
,"height":640
,"htdocs":"/"
}
the app.js is a copy from your demo. I understand that pouchdb uses Indexeddb on Chrome. And It look like deskshell is using webSQL. Maybe this is the problem?
Thank you for the help.
from appjs-deskshell.
Not sure if this is the problem but I see you have the following:-
,"htdocs":"/"
on mac that means that the htdocs directory will be served from root i.e. /
try changing that to be:
,"htdocs":"htdocs"
instead so that it is pointing to a relative directory called "htdocs" then you should also check that there is a folder called "htdocs" under the folder containing the .desk file.
My guess is that the problem is simply that deskshell cannot find index.htm so that is what the error means. I think it is looking for /index.htm and not finding it.
from appjs-deskshell.
From what I remember, the htdocs path is appended to the dirname of the desk file.
I.e. if your .desk file is at /Users/Ingwie/Work/deskshell-demo/app.desk and it reads „htdocs“:“htdocs“ it looks for /Users/Ingwie/Work/deskshell-demo/htdocs - and then the DefaultLocation - like index.htm: /Users/Ingwie/Work/deskshell-demo/htdocs/index.htm . Its just minor poking of the webserver-part. ^^
Am 12.11.2013 um 15:37 schrieb sihorton [email protected]:
Not sure if this is the problem but I see you have the following:-
,"htdocs":"/"
on mac that means that the htdocs directory will be served from root i.e. /
try changing that to be:,"htdocs":"htdocs"
instead so that it is pointing to a relative directory called "htdocs" then you should also check that there is a folder called "htdocs" under the folder containing the .desk file.My guess is that the problem is simply that deskshell cannot find index.htm so that is what the error means. I think it is looking for /index.htm and not finding it.
—
Reply to this email directly or view it on GitHub.
from appjs-deskshell.
Ah yes you are correct. So in which case / means that deskshell is looking for /Users/Ingwie/Work/deskshell-demo/index.htm and that file is probably in /Users/Ingwie/Work/deskshell-demo/htdocs/index.htm.
from appjs-deskshell.
Correct :) So some web server poking may be necessary ova
Am 12.11.2013 um 20:16 schrieb sihorton [email protected]:
Ah yes you are correct. So in which case / means that deskshell is looking for /Users/Ingwie/Work/deskshell-demo/index.htm and that file is probably in /Users/Ingwie/Work/deskshell-demo/htdocs/index.htm.
—
Reply to this email directly or view it on GitHub.
from appjs-deskshell.
That did it. All work.
from appjs-deskshell.
Great, glad it is working for you now. Good luck with your app!
from appjs-deskshell.
Related Issues (20)
- Compiling Windows .exe stuck on compiling app.nsi HOT 12
- Chrome crashes when running the app
- Kiosk app .exe close button not working
- Use built-in webkit browser instead of using chrome HOT 1
- Portable Windows Hello World not running
- Local node_modules HOT 1
- Use Chromium instead of Chrome HOT 1
- Running Deskshell only runs a Chromium Browser HOT 1
- How to debug packaged executable? HOT 16
- Your website is broken HOT 13
- deskshell.exe source code HOT 1
- zip on website is broken
- How to Digitally sign the Package HOT 1
- Your website deskshell.org is offline... HOT 6
- socket.io.js not found HOT 1
- Downloads broken? HOT 7
- Creating an app with a static port?
- Would this work on a non-gui operating system ?
- Is this project still actively developed? HOT 2
- Nothing happens in deskshell HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from appjs-deskshell.