|
|
|
|
@ -293,6 +293,7 @@ void yon_terminal_integrated_start_shell(GtkWidget *terminal, char* command, voi
|
|
|
|
|
if (!access(path,0)){
|
|
|
|
|
__yon_window_config_file = g_key_file_new();
|
|
|
|
|
__yon_window_config_path=yon_char_new(path);
|
|
|
|
|
chmod(__yon_window_config_path,0777);
|
|
|
|
|
if (!g_key_file_load_from_file(__yon_window_config_file,__yon_window_config_path,G_KEY_FILE_NONE,NULL)){
|
|
|
|
|
struct stat st;
|
|
|
|
|
int size;
|
|
|
|
|
@ -1088,9 +1089,7 @@ GtkWidget *yon_ubl_browser_window_open(char *link, char *browser_window_name){
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
|
|
GtkWidget *yon_ubl_browser_window_open(char *link, char *browser_window_name){
|
|
|
|
|
char *user=getenv("SUDO_USER");
|
|
|
|
|
if (!user)
|
|
|
|
|
user=getlogin();
|
|
|
|
|
char *user=yon_ubl_root_user_get();
|
|
|
|
|
char *command=yon_char_unite("sudo -u ",user," xdg-open ", link,NULL);
|
|
|
|
|
yon_launch(command);
|
|
|
|
|
return NULL;
|
|
|
|
|
|