mirror of
https://github.com/game-stop/veejay.git
synced 2026-01-05 22:45:30 +01:00
output install path
git-svn-id: svn://code.dyne.org/veejay/trunk@883 eb8d1916-c9e9-0310-b8de-cf0c9472ead5
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user