El 03/08/12 14:11, "Luis L. Rodríguez Oro" escribió:
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; }
SOLVED: using Unique; using Gtk; int main(string[] args){ Gtk.init (ref args); Unique.App app = new Unique.App("org.centinela.unique", null); if(app.is_running) { print("is runing... take arguments and do something\n"); return 0; } Gtk.main(); print("ok, no problem....\n"); return 0; }
Attachment:
smime.p7s
Description: Firma criptográfica S/MIME