mirror of
https://github.com/transmission/transmission.git
synced 2025-12-25 04:45:56 +00:00
(trunk gtk) add a Donate item to the Help menu
This commit is contained in:
@@ -504,8 +504,13 @@ gtr_open_file( const char * path )
|
||||
if( !opened )
|
||||
{
|
||||
char * argv[] = { (char*)"xdg-open", (char*)path, NULL };
|
||||
g_spawn_async( NULL, argv, NULL, G_SPAWN_SEARCH_PATH,
|
||||
NULL, NULL, NULL, NULL );
|
||||
opened = g_spawn_async( NULL, argv, NULL, G_SPAWN_SEARCH_PATH,
|
||||
NULL, NULL, NULL, NULL );
|
||||
}
|
||||
|
||||
if( !opened )
|
||||
{
|
||||
g_message( "Unable to open \"%s\"", path );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user