This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Strange behaviour of root GTK software

Tags: None
(comma "," separated)
grzadr
Registered Member
Posts
10
Karma
0
Hi,

I have this strange problem when I launch some root GTK-based software. When I launch apps, like Synaptic or GParted, from their normal shortcuts, they look like this:

Image

When I launch them via terminal, for example:
Code: Select all
sudo synaptic
sudo gparted

they look like this:

Image

What is happening?

Admin edit: Please continue further discussion here: viewtopic.php?f=17&t=135369
grzadr
Registered Member
Posts
10
Karma
0
I've mispalced this topic. I've moved it to Appearance & System Customization section.
User avatar
vinnywright
Registered Member
Posts
59
Karma
1
OS
my synaptic looks like your root screen shot ,,,,,,,,,,,,,you should never run GUI apps with sudo ,,,,you must use kdesudo to do this or files in your ~/ (/home/you) will get changed to being owned by root ,,,,,this may be your problem.

synaptick should ask for your password when launched from the menu and so get ran as root the proper way............is this not the case?

VINNY
User avatar
wizard10000
Registered Member
Posts
5
Karma
0
vinnywright wrote:my synaptic looks like your root screen shot ,,,,,,,,,,,,,you should never run GUI apps with sudo ,,,,you must use kdesudo to do this or files in your ~/ (/home/you) will get changed to being owned by root ,,,,,this may be your problem.

synaptick should ask for your password when launched from the menu and so get ran as root the proper way............is this not the case?


Vinny, the way it's done in Plasma5 is
Code: Select all
synaptic-pkexec
. I have used kdesu and kdesudo also (and have used kdesu to launch a dbus session) but so far synaptic-pkexec as worked best for me.

cheers -

-- wiz
User avatar
vinnywright
Registered Member
Posts
59
Karma
1
OS
wizard10000 wrote:
vinnywright wrote:my synaptic looks like your root screen shot ,,,,,,,,,,,,,you should never run GUI apps with sudo ,,,,you must use kdesudo to do this or files in your ~/ (/home/you) will get changed to being owned by root ,,,,,this may be your problem.

synaptick should ask for your password when launched from the menu and so get ran as root the proper way............is this not the case?


Vinny, the way it's done in Plasma5 is
Code: Select all
synaptic-pkexec
. I have used kdesu and kdesudo also (and have used kdesu to launch a dbus session) but so far synaptic-pkexec as worked best for me.

cheers -

-- wiz


yes the menu shortcut dose,and should be running "synaptic-pkexec " as the command.

the OP had stated he ran ,,,, "sudo synaptic" from a terminal ,,,,,,,,and I was stating this was a dangerous thing to do . ;)

VINNY
grzadr
Registered Member
Posts
10
Karma
0
When i launch app like:
Code: Select all
synaptic-pkexec
kdesudo synaptic

It doesn't integrate with Breeze theme. Only when I launch via:
Code: Select all
sudo synaptic
User avatar
vinnywright
Registered Member
Posts
59
Karma
1
OS
grzadr wrote:When i launch app like:
Code: Select all
synaptic-pkexec
kdesudo synaptic

It doesn't integrate with Breeze theme. Only when I launch via:
Code: Select all
sudo synaptic


I would guess thay you have some files in /home/you that have become root owned and need to be fixed ,,,,,

I would do
Code: Select all
sudo chown -R username:group /home/you


where username:group is your user name and group name and /home/you is your user name not "you"

VINNY
grzadr
Registered Member
Posts
10
Karma
0
It is still the same.
eberhards
Registered Member
Posts
15
Karma
0
same problem for me :'(
User avatar
alideda
Registered Member
Posts
251
Karma
0
OS
@vinnywright,
I do not understand, OP asks for graphic layout and you are constantly lecturing unrelated to the question.
GTK programs look ugly in a plasma environment, there is a setting in system work and GTK programs
look a little nicer. :)

@grzadr,
Image
Image
You do not need that you started these two programs with sudo or kdesudo.
I started these programs look the same if they are ignited with sudo, kdesudo or the name of the program.
eberhards
Registered Member
Posts
15
Karma
0
ave@alideda my settings look exactly the same like yours, but sill, if i open synaptic normally, it looks like grzads screenshot, but if i start synaptic with the konsole and sudo synaptic, it looks perfectly fine, like grzads second screenshot.

i even tested it with a new live image and the problem is also there.

btw distro is kde neon
eberhards
Registered Member
Posts
15
Karma
0
it seems this is a plasma 5.7 and higher problem, because on linux mint 18 kde with plasma 5.6.5 it works perfectly fine. maybe they fix it with plasma 5.9 :)
User avatar
geoffreyg
Registered Member
Posts
11
Karma
0
Possibly the same problem noted with Krusader. :'(

Also, problem was not apparent until 5.8.3


Lenovo T460s, Neon, Netrunner, Kubuntu


Bookmarks



Who is online

Registered users: Bing [Bot], daret, Google [Bot], Sogou [Bot]