General Discussion: Application Installation


page 1 of 1


toggle post quote post Post #184 by markzero 8 months, 2 weeks ago

How to install a custom application in Lucid desktop?

I am working Master work in faculty, with thesis "Webtop Systems" and I chose to work on Lucid desktop for several reasons. So my task is to understand handling with relational database and file system, and possibilities for deployment, through custom made application. If someone could reference me it would be really nice.

Anyway, I'm now stuck in the very beginning. I see there are two ways of building applications. Through "Install app package" in Administration Panel, I choose a zipped project. After choosing, I get "loading..." eternally, it loads forever... And, through Katana IDE. So, after writing sample app (MyContacts from developers documentation) I save it and then what? It just exists there but no option to install.

I am very new with Lucid, and sorry if asking basic questions, but I looked at docs with no regular info about installing an application.

Your feedback is greatly appreciated! Regards



toggle post quote post Post #185 by psychcf 8 months, 2 weeks ago

It's fine.

Once you have it written, see the packaging howto to package the application up and install it on Lucid:

http://www.lucid-desktop.org/documentation/en/dev/dev/howto/packages/#dev-howto-packages

Once it's intstalled you can either edit it in desktop/dojotoolkit/lucid/apps/[sysname]/, or just make changes to the package, uninstall the app, then reinstall the new changes.

We'll be sure to add this to the docs, thanks for pointing this out.



toggle post quote post Post #186 by markzero 8 months, 2 weeks ago

I wrote test app in Katana, having hierarchy:

  • dir: TestApp (empty)

  • TestApp.js (all the code is here)

  • meta.json

Zipped it like TestApp.lucid.zip

Uploaded (using localhost for lucid) to Administration Panel -> Install app package and got error "undefined"

TestApp.js looks like this:

dojo.provide("lucid.apps.TestApp");

dojo.declare("lucid.apps.TestApp", lucid.apps._App, { init: function(args){

    this.windows = [];
    var win = new lucid.widget.Window({
        title: "Test",
        width: "500px",
        height: "400px",
        main: true,      
    });
    this.windows.push(win);

    // draw UI here

    win.show();

},
kill: function(args){
    dojo.forEach(this.windows, function(win){
             if(!win.closed)
                win.close();
            }, this);
}

});

meta.json looks like this:

{ "type": "application", "sysname": "TestApp", "name": "Test Application", "author": "Marko", "email": "jakicmeister@email.com", "version": "1.0", "maturity": "Stable", "category": "Accessories", "icon": "", "filetypes": [], "compatible": ["1.0.0"] }

=========================================================================================



toggle post quote post Post #189 by psychcf 8 months, 1 week ago

Ok, it looks like you packaged everything right, but for some reason it's not installing. Double check your permissions. Could you tell us about the server and browser you're using, and if any errors are generated in both firebug/error console and PHP's error logs?

Sorry for the late response.

« previous This message has been revised


page 1 of 1


You need to sign in to post messages.

You are not logged in. You must log in or create an account to contribute to discussions.


This community is powered by Snapboard