1/* 2 * Copyright 2019, Fran��ois Revol, revol@free.fr. 3 * Distributed under the terms of the MIT license. 4 */ 5 6 7#include <stdio.h> 8 9#include <Application.h> 10#include <InterfacePrivate.h> 11#include <String.h> 12 13using BPrivate::set_control_look; 14 15 16int 17main(int argc, char** argv) 18{ 19 if (argc < 2) { 20 printf("usage: %s /path/to/ControlLook\n", argv[0]); 21 printf("\nTells app_server and applications which ControlLook " 22 "add-on to load, which defines the look of interface controls.\n"); 23 return 1; 24 } 25 26 BString path(argv[1]); 27 28 BApplication app("application/x-vnd.Haiku-setcontrollook"); 29 30 status_t err = set_control_look(path); 31 if (err < B_OK) { 32 fprintf(stderr, "error setting Control Look: %s\n", strerror(err)); 33 return 1; 34 } 35 36 return 0; 37} 38 39