Run a bash script via GTK Button

Hi all!

For a small project I would like to build a small “Hello” tool that links all important docs and can start a script from the home directory.
The issue: When I click the button “run postinstall” nothing happens. What am I doing wrong?
The “Update System Button” is working as expected :confused:

code:

Best
D1Ck3n

Hi,

Does the “Update System” button work?
If yes, maybe the environment is not properly setup, try adding the -l option to bash.

Is on_postinstall_button_clicked() being executed?

Hi there,

thanks for the reply.

the update button works as expected. the “run postinstall” give me just this output:

python3 welcome.py 
/home/user/git/keybuntu/archived/code/ksx_welcome.py:72: DeprecationWarning: Gtk.Alignment.new is deprecated
  alignment = Gtk.Alignment.new(0.5, 0.5, 0, 0)
/home/user/git/keybuntu/archived/code/ksx_welcome.py:129: DeprecationWarning: Vte.Terminal.spawn_sync is deprecated
  terminal.spawn_sync(

(ksx_welcome.py:36740): VTE-WARNING **: 09:25:17.549: (../src/vtepty.cc:667):bool _vte_pty_spawn_sync(VtePty*, const char*, const char* const*, const char* const*, GSpawnFlags, GSpawnChildSetupFunc, gpointer, GDestroyNotify, GPid*, int, GCancellable*, GError**): runtime check failed: ((spawn_flags & ignored_spawn_flags()) == 0)

the button press seems to work, but it does nothing :confused:

best

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.