SparkyLinux Forums

Software & hardware support => Newbie questions => Topic started by: anonimac on March 05, 2021, 11:23:46 AM

Title: GUI application problem
Post by: anonimac on March 05, 2021, 11:23:46 AM
I have a problem with starting one GUI application, the base of the application works in the background but graphical interface is not working, i click on the icon and nothing happens. The only way to open it is via terminal with "sudo" but this app should work without sudo and should start automaticaly with sparky...can someone help me with that?

Thanks.
Title: Re: GUI application problem
Post by: pavroo on March 05, 2021, 12:44:38 PM
1. Make sure you have 'sparky-su' package installed.
2. Run your app with the command:
spsudo app
Title: Re: GUI application problem
Post by: anonimac on March 05, 2021, 01:14:31 PM
Still the same thing...app wont auto start with sparky and the only way to open it is via terminal sudo command. Something is blocking GUI from openning
Title: Re: GUI application problem
Post by: pavroo on March 05, 2021, 02:13:13 PM
What's the app name?
Title: Re: GUI application problem
Post by: anonimac on March 05, 2021, 02:25:41 PM
I wanted to implement sdwdate (secure time syncronization) from Whonix system which is based on two components...sdwdate and sdwdate-gui. The app actually works just cant make GUI to work properly.
Title: Re: GUI application problem
Post by: lami07 on March 05, 2021, 02:59:52 PM
What's the error message when you run sdwdate-gui in terminal?
Title: Re: GUI application problem
Post by: anonimac on March 05, 2021, 03:04:36 PM
This is what i get,

access control disabled, clients can connect from any host
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-sdwdate-gui'
tor_status_changed unexpected error: <class 'NameError'>
status_changed unexpected error: <class 'json.decoder.JSONDecodeError'>
status_changed unexpected error: <class 'json.decoder.JSONDecodeError'>
status_changed unexpected error: <class 'json.decoder.JSONDecodeError'>
Title: Re: GUI application problem
Post by: lami07 on March 05, 2021, 04:31:29 PM
Quote from: anonimac on March 05, 2021, 03:04:36 PM
access control disabled, clients can connect from any host
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-sdwdate-gui'
tor_status_changed unexpected error: <class 'NameError'>
status_changed unexpected error: <class 'json.decoder.JSONDecodeError'>
status_changed unexpected error: <class 'json.decoder.JSONDecodeError'>
status_changed unexpected error: <class 'json.decoder.JSONDecodeError'>


Non of those look fatal.

What's your desktop environment?

What's the response to echo $QT_QPA_PLATFORMTHEME command?
Title: Re: GUI application problem
Post by: anonimac on March 05, 2021, 04:59:50 PM
XFCE + gtk2
Title: Re: GUI application problem
Post by: lami07 on March 05, 2021, 05:43:18 PM
GTK2 might be an issue here. Let's temporarily change it to something different. For starters run
sudo apt update
sudo apt install qt5ct

After that run commands below one after another in one terminal session (same terminal window)
export QT_QPA_PLATFORMTHEME=qt5ct
qt5ct


In qt5ct change Style to Fusion. Apply changes.
After that, still in the same terminal window run sdwdate-gui
Title: Re: GUI application problem
Post by: anonimac on March 05, 2021, 06:01:11 PM
All the same, nothing happens...still need to use sudo password, not starting on startup and when i click on start menu icon nothing happens