F-i-f / tweaks-system-menu

Gnome Shell Extension to put Gnome Tweaks in the system menu.
GNU General Public License v3.0
38 stars 14 forks source link

Tweaks/Extensions duplicate entries shows sometimes issue #19

Closed Scotty-Trees closed 5 months ago

Scotty-Trees commented 2 years ago

Greetings,

Just wanted to say real quick I enjoy using your extension very much and find it very useful so thank you for making it!

I have this issue that I encounter sometimes, can't reproduce it exactly. Sometimes it happens, sometimes it doesn't. But sometimes I can reproduce it to happen when I lock my screen and then log back in or sometimes I can reproduce it when I turn the extension on and off again. I'll post some screenshots below to help show exactly what I'm talking about and my system info if that helps at all. Let me know if there's any other information I can provide, I'd be happy to help in whatever capacity I can.

Screenshot from 2022-01-19 00-40-54 Screenshot from 2022-01-19 00-41-28 Screenshot from 2022-01-19 00-41-39

[scott@endeavourOS ~]$ inxi -Fxxxza --no-host
System:
  Kernel: 5.16.1-arch1-1 x86_64 bits: 64 compiler: gcc v: 11.1.0
    parameters: BOOT_IMAGE=/boot/vmlinuz-linux
    root=UUID=2c6a8f39-939c-47a4-9d95-dabf69e6f5c6 rw nvidia-drm.modeset=1
    quiet loglevel=3 nowatchdog
  Desktop: GNOME 41.3 tk: GTK 3.24.31 wm: gnome-shell dm: GDM 41.0
    Distro: EndeavourOS base: Arch Linux
Machine:
  Type: Laptop System: Acer product: Aspire E5-576G v: V1.32
    serial: <superuser required>
  Mobo: KBL model: Ironman_SK v: V1.32 serial: <superuser required>
    UEFI: Insyde v: 1.32 date: 10/24/2017
Battery:
  ID-1: BAT1 charge: 14.7 Wh (100.0%) condition: 14.7/62.2 Wh (23.7%)
    volts: 12.7 min: 11.1 model: PANASONIC AS16B5J type: Li-ion
    serial: <filter> status: Full
CPU:
  Info: model: Intel Core i5-8250U bits: 64 type: MT MCP arch: Coffee Lake
    family: 6 model-id: 0x8E (142) stepping: 0xA (10) microcode: 0xEA
  Topology: cpus: 1x cores: 4 tpc: 2 threads: 8 smt: enabled cache:
    L1: 256 KiB desc: d-4x32 KiB; i-4x32 KiB L2: 1024 KiB desc: 4x256 KiB
    L3: 6 MiB desc: 1x6 MiB
  Speed (MHz): avg: 3400 high: 3401 min/max: 400/3400 scaling:
    driver: intel_pstate governor: powersave cores: 1: 3400 2: 3400 3: 3401
    4: 3400 5: 3399 6: 3401 7: 3401 8: 3400 bogomips: 28808
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities:
  Type: itlb_multihit status: KVM: VMX disabled
  Type: l1tf
    mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable
  Type: mds mitigation: Clear CPU buffers; SMT vulnerable
  Type: meltdown mitigation: PTI
  Type: spec_store_bypass
    mitigation: Speculative Store Bypass disabled via prctl
  Type: spectre_v1
    mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2 mitigation: Full generic retpoline, IBPB: conditional,
    IBRS_FW, STIBP: conditional, RSB filling
  Type: srbds mitigation: Microcode
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel UHD Graphics 620 vendor: Acer Incorporated ALI driver: i915
    v: kernel bus-ID: 00:02.0 chip-ID: 8086:5917 class-ID: 0300
  Device-2: NVIDIA GP108M [GeForce MX150] vendor: Acer Incorporated ALI
    driver: nvidia v: 495.46 alternate: nouveau,nvidia_drm bus-ID: 01:00.0
    chip-ID: 10de:1d10 class-ID: 0302
  Device-3: Chicony HD WebCam type: USB driver: uvcvideo bus-ID: 1-7:4
    chip-ID: 04f2:b571 class-ID: 0e02
  Display: x11 server: X.Org 1.21.1.3 compositor: gnome-shell driver:
    loaded: modesetting,nvidia display-ID: :1 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x286mm (20.0x11.3")
    s-diag: 583mm (23")
  Monitor-1: eDP-1-1 res: 1920x1080 hz: 60 dpi: 142
    size: 344x194mm (13.5x7.6") diag: 395mm (15.5")
  OpenGL: renderer: NVIDIA GeForce MX150/PCIe/SSE2 v: 4.6.0 NVIDIA 495.46
    direct render: Yes
Audio:
  Device-1: Intel Sunrise Point-LP HD Audio vendor: Acer Incorporated ALI
    driver: snd_hda_intel v: kernel alternate: snd_soc_skl bus-ID: 00:1f.3
    chip-ID: 8086:9d71 class-ID: 0403
  Sound Server-1: ALSA v: k5.16.1-arch1-1 running: yes
  Sound Server-2: PulseAudio v: 15.0 running: no
  Sound Server-3: PipeWire v: 0.3.43 running: yes
Network:
  Device-1: Intel Dual Band Wireless-AC 3168NGW [Stone Peak] driver: iwlwifi
    v: kernel bus-ID: 03:00.0 chip-ID: 8086:24fb class-ID: 0280
  IF: wlan0 state: up mac: <filter>
  Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: Acer Incorporated ALI driver: r8168 v: 8.049.02-NAPI modules: r8169
    port: 3000 bus-ID: 04:00.1 chip-ID: 10ec:8168 class-ID: 0200
  IF: enp4s0f1 state: down mac: <filter>
Bluetooth:
  Device-1: Intel Wireless-AC 3168 Bluetooth type: USB driver: btusb v: 0.8
    bus-ID: 1-5:3 chip-ID: 8087:0aa7 class-ID: e001
  Report: rfkill ID: hci0 rfk-id: 1 state: up address: see --recommends
Drives:
  Local Storage: total: 2.05 TiB used: 701.19 GiB (33.4%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/sda maj-min: 8:0 vendor: SK Hynix model: HFS256G39TND-N210A
    size: 238.47 GiB block-size: physical: 4096 B logical: 512 B
    speed: 6.0 Gb/s type: SSD serial: <filter> rev: 1P10 scheme: GPT
  ID-2: /dev/sdb maj-min: 8:16 type: USB vendor: Seagate model: BUP Slim
    size: 1.82 TiB block-size: physical: 4096 B logical: 512 B type: N/A
    serial: <filter> rev: 1707 scheme: GPT
Partition:
  ID-1: / raw-size: 237.97 GiB size: 233.17 GiB (97.99%)
    used: 150.39 GiB (64.5%) fs: ext4 dev: /dev/sda2 maj-min: 8:2
  ID-2: /boot/efi raw-size: 512 MiB size: 511 MiB (99.80%)
    used: 296 KiB (0.1%) fs: vfat dev: /dev/sda1 maj-min: 8:1
Swap:
  Kernel: swappiness: 10 (default 60) cache-pressure: 100 (default)
  ID-1: swap-1 type: file size: 512 MiB used: 0 KiB (0.0%) priority: -2
    file: /swapfile
Sensors:
  System Temperatures: cpu: 67.0 C pch: 61.0 C mobo: N/A gpu: nvidia
    temp: 58 C
  Fan Speeds (RPM): N/A
Info:
  Processes: 292 Uptime: 6m wakeups: 1 Memory: 15.51 GiB
  used: 2.74 GiB (17.7%) Init: systemd v: 250 tool: systemctl Compilers:
  gcc: 11.1.0 Packages: pacman: 1335 lib: 303 flatpak: 0 Shell: Bash
  v: 5.1.16 running-in: tilix inxi: 3.3.11
[scott@endeavourOS ~]$ 
koter84 commented 2 years ago

Afstellingen_Uitbreidingen

I have sort of the same issue, i get the tweaks and extensions line a bunch of times... I'm on Fedora 35.

Tweaks-System-Menu: debug = true

Tweaks-System-Menu: _on_enable_change(tweaks): enable=false
Tweaks-System-Menu: _hideItem(tweaks)
Tweaks-System-Menu: _findMenuItemPosition([0x55a2f7b1c310 Gjs_ui_popupMenu_PopupImageMenuItem.popup-menu-item ("")]) = 2

Tweaks-System-Menu: _on_enable_change(tweaks): enable=true
Tweaks-System-Menu: _showItem(tweaks)
Tweaks-System-Menu: _on_position_change(tweaks): settings position=-1
Tweaks-System-Menu: _findMenuItemPosition([0x55a2d433cac0 Gjs_ui_popupMenu_PopupImageMenuItem.popup-menu-item ("")]) = 1
Tweaks-System-Menu: _on_position_change(tweaks): automatic position=2
Tweaks-System-Menu: _on_position_change(extensions): settings position=-1
Tweaks-System-Menu: _findMenuItemPosition([0x55a30e4ad7c0 Gjs_ui_popupMenu_PopupImageMenuItem.popup-menu-item ("")]) = 2
Tweaks-System-Menu: _on_position_change(extensions): automatic position=3

Tweaks-System-Menu: _on_enable_change(extensions): enable=false
Tweaks-System-Menu: _hideItem(extensions)
Tweaks-System-Menu: _findMenuItemPosition([0x55a2ee30bc50 Gjs_ui_popupMenu_PopupImageMenuItem.popup-menu-item ("")]) = 3

Tweaks-System-Menu: _on_enable_change(extensions): enable=true
Tweaks-System-Menu: _showItem(extensions)
Tweaks-System-Menu: _on_position_change(extensions): settings position=-1
Tweaks-System-Menu: _findMenuItemPosition([0x55a30e4ad7c0 Gjs_ui_popupMenu_PopupImageMenuItem.popup-menu-item ("")]) = 2
Tweaks-System-Menu: _on_position_change(extensions): automatic position=3
freddyw commented 2 years ago

Yup, noticed this as well, using Fedora 36.

F-i-f commented 5 months ago

Is the problem still reproducible using the latest version?

freddyw commented 5 months ago

I have not seen this on Fedora 40 ....

F-i-f commented 5 months ago

The code responsible with adding and removing button has been completely reworked for version 20. Since it hasn't been seen in a while, closing this issue.