Advertising

Welcome to SparkyLinux forums
Zapraszamy również na polsko-języczne Forum Linuxiarze.pl

Author Topic: GUI application problem  (Read 259 times)

Offline anonimac

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
GUI application problem
« 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.

Offline pavroo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2201
  • Karma: 4
    • SparkyLinux
Re: GUI application problem
« Reply #1 on: March 05, 2021, 12:44:38 pm »
1. Make sure you have 'sparky-su' package installed.
2. Run your app with the command:
Code: [Select]
spsudo app
Nothing is easy as it looks. Danielle Steel
Join #sparkylinux at irc.freenode.net

Offline anonimac

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
Re: GUI application problem
« Reply #2 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

Offline pavroo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2201
  • Karma: 4
    • SparkyLinux
Re: GUI application problem
« Reply #3 on: March 05, 2021, 02:13:13 pm »
What's the app name?
Nothing is easy as it looks. Danielle Steel
Join #sparkylinux at irc.freenode.net

Offline anonimac

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
Re: GUI application problem
« Reply #4 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.

Offline lami07

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 305
  • Karma: 6
    • Sparky Community Repos
Re: GUI application problem
« Reply #5 on: March 05, 2021, 02:59:52 pm »
What's the error message when you run sdwdate-gui in terminal?
Quote from: forum rules
When an issue has been resolved for you, please edit the original post to include <SOLVED> in the title. This provides a good indicator for users with a similar problem to check out the thread
Want to chat? Join #sparkylinux at irc.freenode.net

Offline anonimac

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
Re: GUI application problem
« Reply #6 on: March 05, 2021, 03:04:36 pm »
This is what i get,

Code: [Select]
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'>
« Last Edit: March 05, 2021, 03:19:25 pm by lami07 »

Offline lami07

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 305
  • Karma: 6
    • Sparky Community Repos
Re: GUI application problem
« Reply #7 on: March 05, 2021, 04:31:29 pm »
Code: [Select]
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?
Quote from: forum rules
When an issue has been resolved for you, please edit the original post to include <SOLVED> in the title. This provides a good indicator for users with a similar problem to check out the thread
Want to chat? Join #sparkylinux at irc.freenode.net

Offline anonimac

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
Re: GUI application problem
« Reply #8 on: March 05, 2021, 04:59:50 pm »
XFCE + gtk2

Offline lami07

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 305
  • Karma: 6
    • Sparky Community Repos
Re: GUI application problem
« Reply #9 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
Code: [Select]
sudo apt update
sudo apt install qt5ct
After that run commands below one after another in one terminal session (same terminal window)
Code: [Select]
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
Quote from: forum rules
When an issue has been resolved for you, please edit the original post to include <SOLVED> in the title. This provides a good indicator for users with a similar problem to check out the thread
Want to chat? Join #sparkylinux at irc.freenode.net

Offline anonimac

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
Re: GUI application problem
« Reply #10 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