Make the keystore cli app a BApplication.
We need the app to be registered so that the app info can be retrieved.
This commit is contained in:
committed by
Ryan Leavengood
parent
64ca113fe0
commit
a5a2a2754e
+1
-1
@@ -88,7 +88,6 @@ StdBinCommands
|
||||
draggers.cpp
|
||||
ffm.cpp
|
||||
iroster.cpp
|
||||
keystore.cpp
|
||||
listattr.cpp
|
||||
listfont.cpp
|
||||
listres.cpp
|
||||
@@ -254,6 +253,7 @@ SubInclude HAIKU_TOP src bin hid_decode ;
|
||||
SubInclude HAIKU_TOP src bin iasl ;
|
||||
SubInclude HAIKU_TOP src bin ideinfo ;
|
||||
SubInclude HAIKU_TOP src bin keymap ;
|
||||
SubInclude HAIKU_TOP src bin keystore ;
|
||||
SubInclude HAIKU_TOP src bin less ;
|
||||
SubInclude HAIKU_TOP src bin listdev ;
|
||||
SubInclude HAIKU_TOP src bin locale ;
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
SubDir HAIKU_TOP src bin keystore ;
|
||||
|
||||
BinCommand keystore :
|
||||
keystore.cpp
|
||||
: be
|
||||
: keystore.rdef ;
|
||||
@@ -7,6 +7,7 @@
|
||||
*/
|
||||
|
||||
|
||||
#include <Application.h>
|
||||
#include <KeyStore.h>
|
||||
|
||||
#include <stdio.h>
|
||||
@@ -243,6 +244,8 @@ print_usage(const char* name)
|
||||
int
|
||||
main(int argc, char* argv[])
|
||||
{
|
||||
BApplication app("application/x-vnd.Haiku-keystore-cli");
|
||||
|
||||
if (argc < 2)
|
||||
return print_usage(argv[0]);
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
resource app_signature "application/x-vnd.Haiku-keystore-cli";
|
||||
resource app_flags B_MULTIPLE_LAUNCH;
|
||||
Reference in New Issue
Block a user