Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Best way to make Synaptic use Dark Breeze theme?

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
User avatar
Xeno Idaltu
Posts: 47
Joined: 2019-08-15 05:36
Location: Free-Source Technocracy

Best way to make Synaptic use Dark Breeze theme?

#1 Post by Xeno Idaltu »

Synaptic opens as Root, it's default white theme is too bright to read.
What's the best way to make Synaptic use a Dark Theme when opening as Root?

User avatar
NFT5
df -h | grep > 20TiB
df -h | grep > 20TiB
Posts: 598
Joined: 2014-10-10 11:38
Location: Canberra, Australia
Has thanked: 10 times
Been thanked: 43 times

Re: Best way to make Synaptic use Dark Breeze theme?

#2 Post by NFT5 »

You're still using KDE?

Settings > System Settings > Appearance > Application Style > Gnome Application Style (GTK)

User avatar
Xeno Idaltu
Posts: 47
Joined: 2019-08-15 05:36
Location: Free-Source Technocracy

Re: Best way to make Synaptic use Dark Breeze theme?

#3 Post by Xeno Idaltu »

That only changes GTK themes when they are in normal use.
When applications require Root Authentication before opening they use KDE's default GTK theme.

I'm assuming maybe copy/past a file in /root

User avatar
NFT5
df -h | grep > 20TiB
df -h | grep > 20TiB
Posts: 598
Joined: 2014-10-10 11:38
Location: Canberra, Australia
Has thanked: 10 times
Been thanked: 43 times

Re: Best way to make Synaptic use Dark Breeze theme?

#4 Post by NFT5 »

Of course.

The first thing I do when setting up a new installation is give myself sudo privileges.

As root:

Code: Select all

adduser [username] sudo
So I run Synaptic, and other programs like GParted, with sudo privileges, not as root. This way the windows follow my selected theme(s). There is no difference in what I can do this way versus running as root.

User avatar
Xeno Idaltu
Posts: 47
Joined: 2019-08-15 05:36
Location: Free-Source Technocracy

Re: Best way to make Synaptic use Dark Breeze theme?

#5 Post by Xeno Idaltu »

1) On installation I added my username to sudo.
Two different passwords: Root and username/Sudo

2) SU vs Sudo & Polkit vs Kdesu:
Synaptic asks for SU password for Authentication. (Polkit-KDE Authentication)
When Mounting a Hard Drive using Dolphin Manager it asks for SU Password. Polkit-KDE Authentication)
KDE Partition Manager asks for SU (Kdesu) [freezes]
Muon/Discovery ask for Sudo password when installing/uinstalling packages. (Polkit-KDE Authentication)
Muon/Discovery ask for SU when trying to configure Sources Lists (Kdesu) [freezes]

3) To solve the freezing I created file "kdesurc" on $HOME/.config:
Now I can open KDE Partition using Sudo
But is this safe from a security point? It is still using Kdesu.
Shouldn't all the GUI on KDE open using Polkit or any other alternative?


-------


# Going back to Synaptic on Root Dark Theme:

Are you using KDE?
Because what I think I read is that you added yourself to Sudo, and when opening Synaptic you will get Synaptic using the normal GTK Theme. Which is not happening in my case.
Even if I open KDE Partition Manager using Kdesu with Sudo privileges, I will get KDE Parition Manager with the default QT Colorscheme.

So far the easiest way I know is linking Kdesu to /usr/bin and then opening KSystemSettings off the terminal:

Code: Select all

kdesu systemsettings5 
KDE System Settings will open in Root Mode:
From there I'll just go to the GTK/QT colortheme modules and click apply on one of the installed themes.
I will then restart an the colorshemes should be there.
I won't have to worry about manually creating directories/files on /root because they have already been automatically done.

When the old version of kdesu was on our repos, this was the way I would do it.

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 72 times

Re: Best way to make Synaptic use Dark Breeze theme?

#6 Post by stevepusser »

Have you been able to find where kdesu is located on your system? If not, install mlocate, run "updatedb" as root or with sudo, then run "locate kdesu" after it finishes. It should then work if you invoke kdesu with its full path.
MX Linux packager and developer

User avatar
Xeno Idaltu
Posts: 47
Joined: 2019-08-15 05:36
Location: Free-Source Technocracy

Re: Best way to make Synaptic use Dark Breeze theme?

#7 Post by Xeno Idaltu »

It's on:
/usr/lib/x86_64-linux-gnu/libexec/kf5/kdesu

I wouldn't mind using the default white themes but when I have everything using dark, even the browser it hurts our eyes.
I could use the terminal for almost everything but since I'm still learning it is helpful having GUIs to guide me around. Once I learn enough I almost never use them that much.

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 72 times

Re: Best way to make Synaptic use Dark Breeze theme?

#8 Post by stevepusser »

Xeno Idaltu wrote:It's on:
/usr/lib/x86_64-linux-gnu/libexec/kf5/kdesu

I wouldn't mind using the default white themes but when I have everything using dark, even the browser it hurts our eyes.
I could use the terminal for almost everything but since I'm still learning it is helpful having GUIs to guide me around. Once I learn enough I almost never use them that much.
What happens when you run in the terminal:

Code: Select all

/usr/lib/x86_64-linux-gnu/libexec/kf5/kdesu systemsettings5


Doesn't it run the settings app as root?
MX Linux packager and developer

User avatar
wizard10000
Global Moderator
Global Moderator
Posts: 622
Joined: 2019-04-16 23:15
Location: southeastern us
Has thanked: 81 times
Been thanked: 96 times

Re: Best way to make Synaptic use Dark Breeze theme?

#9 Post by wizard10000 »

You could also use sudo -H or sudo -i to run systemsettings5.
we see things not as they are, but as we are.
-- anais nin

User avatar
NFT5
df -h | grep > 20TiB
df -h | grep > 20TiB
Posts: 598
Joined: 2014-10-10 11:38
Location: Canberra, Australia
Has thanked: 10 times
Been thanked: 43 times

Re: Best way to make Synaptic use Dark Breeze theme?

#10 Post by NFT5 »

Xeno Idaltu wrote:Are you using KDE?
Because what I think I read is that you added yourself to Sudo, and when opening Synaptic you will get Synaptic using the normal GTK Theme. Which is not happening in my case.
Image

oddyolynx
Posts: 1
Joined: 2023-04-28 02:49

Re: Best way to make Synaptic use Dark Breeze theme?

#11 Post by oddyolynx »

install gtk-chtheme
then when you open settings and apply the GTK theme it will apply

I was able to get Adwaita-dark to work

Image

Post Reply