D1Ck3n
December 11, 2024, 7:45am
1
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
code:
distro_hello.py
import gi
import webbrowser
import subprocess
import os
gi.require_version("Gtk", "3.0")
gi.require_version("Vte", "2.91")
from gi.repository import Gtk, Gdk, Vte, GLib
class WelcomeWindow(Gtk.Window):
This file has been truncated. show original
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?
D1Ck3n
December 13, 2024, 8:28am
4
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
best
system
(system)
Closed
January 12, 2025, 8:29am
5
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.