output install path

git-svn-id: svn://code.dyne.org/veejay/trunk@883 eb8d1916-c9e9-0310-b8de-cf0c9472ead5
This commit is contained in:
Niels Elburg
2007-03-29 00:22:57 +00:00
parent 53e5cfe493
commit a1c8a0d1b8
3 changed files with 12 additions and 1 deletions

View File

@@ -105,6 +105,11 @@ static int set_option( const char *name, char *value )
err++;
}
}
else if (strcmp(name, "q") == 0 )
{
fprintf(stdout, "%s", get_gveejay_dir());
exit(0);
}
else if (strcmp(name, "P" ) == 0 || strcmp(name, "preview" ) == 0 )
{
preview = atoi(optarg);
@@ -130,7 +135,7 @@ int main(int argc, char *argv[]) {
// default host to connect to
sprintf(hostname, "127.0.0.1");
while( ( n = getopt( argc, argv, "s:h:p:nvHf:X:P:")) != EOF )
while( ( n = getopt( argc, argv, "s:h:p:nvHf:X:P:q")) != EOF )
{
sprintf(option, "%c", n );
err += set_option( option, optarg);

View File

@@ -5624,6 +5624,11 @@ char *get_glade_path()
return glade_path;
}
char *get_gveejay_dir()
{
return GVEEJAY_DATADIR;
}
void get_gd(char *buf, char *suf, const char *filename)
{
const char *dir = GVEEJAY_DATADIR;

View File

@@ -49,4 +49,5 @@ GdkPixbuf *vj_gdk_pixbuf_scale_simple( const GdkPixbuf *src, int dw, int d
gchar *_utf8str( const char *c_str );
void find_user_themes();
char *get_glade_path();
char *get_gveejay_dir();
#endif