Edited saving commands, unwanted outputs removed

pull/11/head
parent 3383664721
commit b4703c0b20

@ -72,8 +72,6 @@ void on_monitor_config_save(GtkWidget *self, monitor_edit_window *window){
}
void on_terminal_done(GtkWidget *terminal, int size, widgets_dict *widgets){
char *text=vte_terminal_get_text_range(VTE_TERMINAL(terminal),0,0,0,10,NULL,NULL,NULL);
printf("\"%s\"\n",text);
gtk_widget_destroy(terminal);
}
@ -100,7 +98,6 @@ static void child_ready(VteTerminal *terminal, GPid pid, GError *error, gpointer
void on_terminal_check_progress(VteTerminal *terminal, widgets_dict *widgets){
char *text = vte_terminal_get_text(terminal,NULL,NULL,NULL);
// printf("%d - %s\n",rows, text);
gtk_progress_bar_set_fraction(GTK_PROGRESS_BAR(widgets->TerminalInfoLabel),(double)yon_char_find_count(text,"::")/4);
}
@ -377,11 +374,9 @@ void on_configuration_save_local(GtkWidget *self, widgets_dict *widgets)
str=yon_configuration_get_save_command(save_drivers_local_command);
delstr=yon_configuration_get_remove_command(remove_drivers_local_command);
if (delstr){
printf("%s\n\n",delstr);
yon_config_save(delstr);
}
if (str){
printf("%s\n\n",str);
yon_config_save(str);
videoconfig.status_render.text_to_render=LOCAL_SAVE_SUCCESS;
@ -409,11 +404,9 @@ void on_configuration_save_global(GtkWidget *self, widgets_dict *widgets)
str=yon_configuration_get_save_command(save_drivers_global_command);
delstr=yon_configuration_get_remove_command(remove_drivers_global_command);
if (delstr){
printf("%s\n\n",delstr);
yon_config_save(delstr);
}
if (str){
printf("%s\n\n",str);
yon_config_save(str);
videoconfig.status_render.text_to_render=LOCAL_SAVE_SUCCESS;
@ -1516,8 +1509,6 @@ int main(int argc, char *argv[])
videoconfig.lock_save_global=-1;
videoconfig.lock_save_local=-1;
local = setlocale(LC_ALL, "");
for (int i=0;i<argc;i++)
printf("%s\n",argv[i]);
textdomain(LocaleName);
int option_index=0;
struct option long_options[] = {

@ -45,15 +45,15 @@
#define load_drivers_global_command "/usr/bin/ubconfig --default --source global get video FAILSAFENVIDIA FAILSAFEATI OPTIRUN PRIMUSRUN VGADRV_AUTO "
#define save_drivers_global_command "/usr/bin/ubconfig --target global set video "
#define save_drivers_global_command "pkexec /usr/bin/ubconfig --target global --noexecute set video "
#define load_drivers_local_command "/usr/bin/ubconfig --default --source system get video FAILSAFENVIDIA FAILSAFEATI OPTIRUN PRIMUSRUN VGADRV_AUTO "
#define save_drivers_local_command "pkexec /usr/bin/ubconfig --target system set video "
#define save_drivers_local_command "pkexec /usr/bin/ubconfig --target system --noexecute set video "
#define remove_drivers_global_command "/usr/bin/ubconfig --target system remove video "
#define remove_drivers_global_command "/usr/bin/ubconfig --target system remove --noexecute video "
#define remove_drivers_local_command "/usr/bin/ubconfig --target system remove video "
#define remove_drivers_local_command "/usr/bin/ubconfig --target system remove --noexecute video "
#define install_proprietary_command "pkexec pacman --quiet --needed --noconfirm -Sy "

Loading…
Cancel
Save