Smoothing stuff
See merge request !70
}
void paths_init(){
- const char* home = environment_get_home_path();
- Q_mkdir( home );
-
- {
- StringOutputStream path( 256 );
- path << home << "/";
- g_strSettingsPath = path.c_str();
- }
+ g_strSettingsPath = environment_get_home_path();
Q_mkdir( g_strSettingsPath.c_str() );
bool open_url( const char* url ){
char command[2 * PATH_MAX];
snprintf( command, sizeof( command ),
- "xdg-open \"%s\" &", url, url );
+ "xdg-open \"%s\" &", url );
return system( command ) == 0;
}
#endif