xdg-desktop-portal-gtk seems to be breaking KDE functionality  [Solved]

Help with the version of MX KDE officially released by the Development Team.
When asking for help, use Quick System Info from MX Tools. It will be properly formatted using the following steps.
1. Click on Quick System Info in MX Tools
2. Right click in your post and paste.
Message
Author
Outlander
Posts: 33
Joined: Thu May 12, 2022 9:44 pm

xdg-desktop-portal-gtk seems to be breaking KDE functionality  [Solved]

#1 Post by Outlander »

Sorry if this is posted in the wrong place.

KDE uses xdg-desktop-portal-kde to allow GTK applications to make use of KDE native dialogs for stuff like saving and opening files. Or at least... it should. It seems to me that the inclusion of xdg-desktop-portal-gtk in MX KDE breaks this functionality. I honestly don't know enough about DBus to say why exactly the GTK file chooser is used... but it is, and uninstalling it allows the expected behavior.

This is an issue because mx-packageinstaller (which is absolutely excellent, btw) depends on xdg-desktop-gtk. Can this be changed? I think this is only used for the Flatpak installer, but Flatpack depends only on xdg-desktop-portal-backend, which xdg-desktop-portal-kde provides. It would be quite nice to get the functionality of xdg-desktop-portal-kde in MX Linux.

Quick system info:

Code: Select all

System:
  Kernel: 5.10.0-14-amd64 x86_64 bits: 64 compiler: gcc v: 10.2.1 
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.10.0-14-amd64 
  root=UUID=<filter> ro quiet splash 
  Desktop: KDE Plasma 5.20.5 wm: kwin_x11 vt: 7 dm: SDDM 
  Distro: MX-21.1_KDE_x64 Wildflower April 9  2022 
  base: Debian GNU/Linux 11 (bullseye) 
Machine:
  Type: Desktop System: Gigabyte product: N/A v: N/A serial: <filter> 
  Mobo: Gigabyte model: H170N-WIFI-CF v: x.x serial: <filter> 
  UEFI-[Legacy]: American Megatrends v: F4 date: 03/14/2016 
Battery:
  Device-1: sony_controller_battery_64:d4:bd:28:4f:3b model: N/A serial: N/A 
  charge: N/A status: Discharging 
CPU:
  Info: Quad Core model: Intel Core i5-6400 bits: 64 type: MCP 
  arch: Skylake-S family: 6 model-id: 5E (94) stepping: 3 microcode: EC 
  cache: L2: 6 MiB 
  flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx 
  bogomips: 21599 
  Speed: 800 MHz min/max: 800/3300 MHz Core speeds (MHz): 1: 800 2: 800 
  3: 800 4: 800 
  Vulnerabilities: Type: itlb_multihit status: KVM: VMX disabled 
  Type: l1tf 
  mitigation: PTE Inversion; VMX: conditional cache flushes, SMT disabled 
  Type: mds mitigation: Clear CPU buffers; SMT disabled 
  Type: meltdown mitigation: PTI 
  Type: spec_store_bypass 
  mitigation: Speculative Store Bypass disabled via prctl and seccomp 
  Type: spectre_v1 
  mitigation: usercopy/swapgs barriers and __user pointer sanitization 
  Type: spectre_v2 mitigation: Retpolines, IBPB: conditional, IBRS_FW, 
  STIBP: disabled, RSB filling 
  Type: srbds mitigation: Microcode 
  Type: tsx_async_abort status: Not affected 
Graphics:
  Device-1: NVIDIA GP107 [GeForce GTX 1050 Ti] vendor: Micro-Star MSI 
  driver: nvidia v: 510.47.03 bus-ID: 01:00.0 chip-ID: 10de:1c82 
  class-ID: 0300 
  Display: x11 server: X.Org 1.20.13 compositor: kwin_x11 driver: 
  loaded: nvidia unloaded: fbdev,modesetting,nouveau,vesa alternate: nv 
  display-ID: :0 screens: 1 
  Screen-1: 0 s-res: 1920x1080 s-dpi: 81 s-size: 602x342mm (23.7x13.5") 
  s-diag: 692mm (27.3") 
  Monitor-1: HDMI-0 res: 1920x1080 hz: 60 dpi: 82 
  size: 598x336mm (23.5x13.2") diag: 686mm (27") 
  OpenGL: renderer: NVIDIA GeForce GTX 1050 Ti/PCIe/SSE2 
  v: 4.6.0 NVIDIA 510.47.03 direct render: Yes 
Audio:
  Device-1: Intel 100 Series/C230 Series Family HD Audio vendor: Gigabyte 
  driver: snd_hda_intel v: kernel bus-ID: 00:1f.3 chip-ID: 8086:a170 
  class-ID: 0403 
  Device-2: NVIDIA GP107GL High Definition Audio vendor: Micro-Star MSI 
  driver: snd_hda_intel v: kernel bus-ID: 01:00.1 chip-ID: 10de:0fb9 
  class-ID: 0403 
  Sound Server-1: ALSA v: k5.10.0-14-amd64 running: yes 
  Sound Server-2: PulseAudio v: 14.2 running: yes 
Network:
  Device-1: Intel Ethernet I219-V vendor: Gigabyte driver: e1000e v: kernel 
  port: f000 bus-ID: 00:1f.6 chip-ID: 8086:15b8 class-ID: 0200 
  IF: eth1 state: up speed: 1000 Mbps duplex: full mac: <filter> 
  Device-2: Intel I211 Gigabit Network vendor: Gigabyte driver: igb 
  v: kernel port: d000 bus-ID: 04:00.0 chip-ID: 8086:1539 class-ID: 0200 
  IF: eth0 state: down mac: <filter> 
  Device-3: Intel Wireless 8260 driver: iwlwifi v: kernel modules: wl 
  port: d000 bus-ID: 05:00.0 chip-ID: 8086:24f3 class-ID: 0280 
  IF: wlan0 state: down mac: <filter> 
Bluetooth:
  Device-1: Intel Bluetooth wireless interface type: USB driver: btusb 
  v: 0.8 bus-ID: 1-8:5 chip-ID: 8087:0a2b class-ID: e001 
  Report: hciconfig ID: hci0 rfk-id: 1 state: up address: <filter> bt-v: 2.1 
  lmp-v: 4.2 sub-v: 100 hci-v: 4.2 rev: 100 
  Info: acl-mtu: 1021:4 sco-mtu: 96:6 link-policy: rswitch sniff 
  link-mode: slave accept 
  service-classes: rendering, capturing, object transfer, audio 
Drives:
  Local Storage: total: 1.04 TiB used: 22.11 GiB (2.1%) 
  SMART Message: Unable to run smartctl. Root privileges required. 
  ID-1: /dev/sda maj-min: 8:0 model: T-FORCE 1TB size: 953.87 GiB 
  block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s type: SSD 
  serial: <filter> rev: 3A0 scheme: MBR 
  ID-2: /dev/sdb maj-min: 8:16 vendor: PNY model: CS900 120GB SSD 
  size: 111.79 GiB block-size: physical: 512 B logical: 512 B 
  speed: 6.0 Gb/s type: SSD serial: <filter> rev: 0612 scheme: MBR 
Partition:
  ID-1: / raw-size: 18.92 GiB size: 18.45 GiB (97.54%) 
  used: 12.45 GiB (67.5%) fs: ext4 dev: /dev/sda1 maj-min: 8:1 
  ID-2: /home raw-size: 926.94 GiB size: 911.32 GiB (98.31%) 
  used: 9.66 GiB (1.1%) fs: ext4 dev: /dev/sda3 maj-min: 8:3 
Swap:
  Kernel: swappiness: 15 (default 60) cache-pressure: 100 (default) 
  ID-1: swap-1 type: partition size: 8 GiB used: 256 KiB (0.0%) priority: -2 
  dev: /dev/sda2 maj-min: 8:2 
Sensors:
  System Temperatures: cpu: 41.5 C mobo: 29.8 C gpu: nvidia temp: 43 C 
  Fan Speeds (RPM): N/A gpu: nvidia fan: 0% 
Repos:
  Packages: 2523 note: see --pkg apt: 2510 lib: 1430 flatpak: 13 
  No active apt repos in: /etc/apt/sources.list 
  Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list 
  1: deb http://deb.debian.org/debian bullseye-updates main contrib non-free
  Active apt repos in: /etc/apt/sources.list.d/debian.list 
  1: deb http://deb.debian.org/debian bullseye main contrib non-free
  2: deb http://security.debian.org/debian-security bullseye-security main contrib non-free
  Active apt repos in: /etc/apt/sources.list.d/mx.list 
  1: deb http://la.mxrepo.com/mx/repo/ bullseye main non-free
  2: deb http://la.mxrepo.com/mx/repo/ bullseye ahs
Info:
  Processes: 224 Uptime: 52m wakeups: 2 Memory: 7.72 GiB 
  used: 2.51 GiB (32.5%) Init: SysVinit v: 2.96 runlevel: 5 default: 5 
  tool: systemctl Compilers: gcc: 10.2.1 alt: 10 Shell: bash 
  default: Bash v: 5.1.4 running-in: quick-system-info-mx inxi: 3.3.06 
Boot Mode: BIOS (legacy, CSM, MBR)
[/strikeout]

Disregard this. I got it fixed. Was an issue on my end with environment variables not setting properly. Sorry for the idiotic post, folks.

User avatar
n8ive999
Posts: 16
Joined: Mon Apr 11, 2022 6:57 pm

Re: xdg-desktop-portal-gtk seems to be breaking KDE functionality

#2 Post by n8ive999 »

@Outlander
I have the same problem. Same OS/DE. The file picker still shows GTK picker.
However, I don't know what environment variables are causing this problem.
Could you explain what did to fix this?

I cannot find xdg-desktop-portal-kde in the repos. I also tried uninstalling the xdg-desktop-portal-gtk package - but this jut removed the mx-packageinstaller.

User avatar
markol
Posts: 415
Joined: Sat Jan 30, 2021 8:33 am

Re: xdg-desktop-portal-gtk seems to be breaking KDE functionality

#3 Post by markol »

@n8ive999 if you're talking about Firefox and Thunderbird, you have to set use-xdg-desktop-portal.file-picker to 2 (or to 1, don't remember now) in about:config
VSCode has to be started with

Code: Select all

GTK_USE_PORTAL=1 code

User avatar
n8ive999
Posts: 16
Joined: Mon Apr 11, 2022 6:57 pm

Re: xdg-desktop-portal-gtk seems to be breaking KDE functionality

#4 Post by n8ive999 »

I'm not referring to FF or TB, but most every other GTK application.
Specifically, geany.
I already tried starting it with

Code: Select all

GTK_USE_PORTAL=1 geany
Doesn't help.

User avatar
markol
Posts: 415
Joined: Sat Jan 30, 2021 8:33 am

Re: xdg-desktop-portal-gtk seems to be breaking KDE functionality

#5 Post by markol »

IIRC GTK apps use GTK/Nautilus file picker by default and they have to be (re)programmed to allow the use of other file pickers
I'm sure someone from the dev team knows more about it

Post Reply

Return to “MX KDE Official Release”