[Vala] Single instance...



When I try to run this code show error "Violación de segmento". Any ideas to fix it?
I want to run a single instance of my app.

//valac valac --pkg unique-1.0
using Unique;

int main(string[] args){
Unique.App app = new Unique.App("org.centinela.unique", null); //Error here!

    if(app.is_running) {
        print("is running... take arguments and do something...\n");
        return 0;
    }

    print("OK, no problem....\n");
    return 0;
}

Attachment: smime.p7s
Description: Firma criptográfica S/MIME



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]