shell icon indicating copy to clipboard operation
shell copied to clipboard

Problem with dark theme during execution of wireshark

Open KCynk opened this issue 1 year ago • 1 comments

(1) Issue/Bug Description: Problem with dark theme during execution of wireshark. Looks like there is problem with QT_STYLE_OVERRIDE https://www.reddit.com/r/linuxquestions/comments/pgcdob/i_cant_find_a_way_to_use_darkmode_on_wireshark/

(2) Steps to reproduce (if you know):

e099e2114f7cc34f06148d52943986@localhost:~$ wireshark -style Adwaita-Dark
_IceTransSocketUNIXConnect: Cannot connect to non-local host pop-os
_IceTransSocketUNIXConnect: Cannot connect to non-local host pop-os
 ** (wireshark:20558) 21:40:20.098688 [GUI WARNING] -- Qt: Session management error: Could not open network socket
 ** (wireshark:20558) 21:40:20.098830 [GUI WARNING] -- QApplication: invalid style override 'Adwaita-Dark' passed, ignoring it.
	Available styles: Windows, Fusion

image image image

(3) Expected behavior: Wireshark dark theme

(4) Distribution (run cat /etc/os-release):

e099e2114f7cc34f06148d52943986@localhost:~$ cat /etc/os-release
NAME="Pop!_OS"
VERSION="22.04 LTS"
ID=pop
ID_LIKE="ubuntu debian"
PRETTY_NAME="Pop!_OS 22.04 LTS"
VERSION_ID="22.04"
HOME_URL="https://pop.system76.com"
SUPPORT_URL="https://support.system76.com"
BUG_REPORT_URL="https://github.com/pop-os/pop/issues"
PRIVACY_POLICY_URL="https://system76.com/privacy"
VERSION_CODENAME=jammy
UBUNTU_CODENAME=jammy
LOGO=distributor-logo-pop-os

(5) Gnome Shell version:

(6) Pop Shell version (run apt policy pop-shell or provide the latest commit if building locally):

e099e2114f7cc34f06148d52943986@localhost:~$ sudo gnome-shell --version
[sudo] password for e099e2114f7cc34f06148d52943986: 
GNOME Shell 42.5

e099e2114f7cc34f06148d52943986@localhost:~$ sudo apt policy pop-shell
pop-shell:
  Installed: 1.1.0~1682616779~22.04~b5accce
  Candidate: 1.1.0~1682616779~22.04~b5accce
  Version table:
 *** 1.1.0~1682616779~22.04~b5accce 1001
       1001 http://apt.pop-os.org/release jammy/main amd64 Packages
       1001 http://apt.pop-os.org/release jammy/main i386 Packages
        100 /var/lib/dpkg/status

(7) Where was Pop Shell installed from: Official image

KCynk avatar Jun 29 '23 19:06 KCynk

Hi, I wanna share my setup :)

  • Install the dark theme for QT:
sudo apt install adwaita-qt
  • Test with override environment veriable:
QT_STYLE_OVERRIDE=Adwaita-Dark wireshark

If WireShark goes well with dark mode, then we just need to add QT_STYLE_OVERRIDE=Adwaita-Dark to our user environment:

export QT_STYLE_OVERRIDE=Adwaita-Dark

Just apend the above to the ~/profile and restart :)

fernvenue avatar May 29 '24 07:05 fernvenue