Cannot open external links from within Electron applications

For a few weeks now, I have not been able to open external links from within Electron applications, such as Teams for Linux or Prospect Mail.
I tried the solution suggested here, but had no luck. Namely:

  • teams-for-linux >/dev/null 2>/dev/null doesn’t solve the problem;
  • xdg-settings is not installed (command not found...); when I try to install xdg-utils, I get a message saying that xdg-utils and xdg-utils-handlr are in conflict. Should I replace the latter with the former?
  • xdg-open forum.manjaro.org yields the error message /usr/bin/xdg-open: line 2: handlr: command not found.

While explicit links can be copied and pasted in the browser, embedded links cannot, which sometimes makes my life very difficult.
Any help would be greatly appreciated.

Output of `inxi -Fazy`
System:
Kernel: 6.2.8-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 12.2.1
parameters: BOOT_IMAGE=/vmlinuz-6.2-x86_64
root=UUID=ca0b13f1-3220-4bc9-9dc7-77d2311111e0 rw rootflags=subvol=@ quiet
apparmor=1 security=apparmor udev.log_priority=3
Desktop: KDE Plasma v: 5.27.3 tk: Qt v: 5.15.8 info: latte-dock
wm: kwin_x11 vt: 1 dm: SDDM Distro: Manjaro Linux base: Arch Linux
Machine:
Type: Laptop System: LENOVO product: 4180Q3U v: ThinkPad T420
serial: <superuser required> Chassis: type: 10 serial: <superuser required>
Mobo: LENOVO model: 4180Q3U serial: <superuser required>
UEFI-[Legacy]: LENOVO v: 83ET82WW (1.52 ) date: 06/04/2018
Battery:
ID-1: BAT0 charge: 18.4 Wh (27.7%) condition: 66.5/57.7 Wh (115.2%)
volts: 10.5 min: 11.1 model: SANYO 45N1023 type: Li-ion serial: <filter>
status: charging
CPU:
Info: model: Intel Core i7-2640M bits: 64 type: MT MCP arch: Sandy Bridge
gen: core 2 level: v2 built: 2010-12 process: Intel 32nm family: 6
model-id: 0x2A (42) stepping: 7 microcode: 0x2F
Topology: cpus: 1x cores: 2 tpc: 2 threads: 4 smt: enabled cache:
L1: 128 KiB desc: d-2x32 KiB; i-2x32 KiB L2: 512 KiB desc: 2x256 KiB
L3: 4 MiB desc: 1x4 MiB
Speed (MHz): avg: 1148 high: 1618 min/max: 800/3500 scaling:
driver: intel_cpufreq governor: schedutil cores: 1: 930 2: 958 3: 1086
4: 1618 bogomips: 22337
Flags: avx ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3
Vulnerabilities:
Type: itlb_multihit status: KVM: VMX unsupported
Type: l1tf mitigation: PTE Inversion
Type: mds mitigation: Clear CPU buffers; SMT vulnerable
Type: meltdown mitigation: PTI
Type: mmio_stale_data status: Unknown: No mitigations
Type: retbleed status: Not affected
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: Retpolines, IBPB: conditional, IBRS_FW,
STIBP: conditional, RSB filling, PBRSB-eIBRS: Not affected
Type: srbds status: Not affected
Type: tsx_async_abort status: Not affected
Graphics:
Device-1: Intel 2nd Generation Core Processor Family Integrated Graphics
vendor: Lenovo ThinkPad T420 driver: i915 v: kernel arch: Gen-6
code: Sandybridge process: Intel 32nm built: 2011 ports:
active: DP-1,LVDS-1 empty: DP-2, DP-3, HDMI-A-1, HDMI-A-2, HDMI-A-3, VGA-1
bus-ID: 00:02.0 chip-ID: 8086:0126 class-ID: 0300
Device-2: Chicony integrated camera type: USB driver: uvcvideo
bus-ID: 1-1.6:5 chip-ID: 04f2:b221 class-ID: 0e02
Display: x11 server: X.Org v: 21.1.8 compositor: kwin_x11 driver: X:
loaded: modesetting alternate: fbdev,vesa dri: crocus gpu: i915
display-ID: :0 screens: 1
Screen-1: 0 s-res: 1920x1980 s-dpi: 96 s-size: 506x522mm (19.92x20.55")
s-diag: 727mm (28.62")
Monitor-1: DP-1 pos: top-left model: BenQ GW2780 serial: <filter>
built: 2021 res: 1920x1080 hz: 60 dpi: 82 gamma: 1.2
size: 598x336mm (23.54x13.23") diag: 686mm (27") ratio: 16:9 modes:
max: 1920x1080 min: 720x400
Monitor-2: LVDS-1 pos: primary,bottom-r model: LG Display 0x02e2
built: 2010 res: 1600x900 hz: 60 dpi: 131 gamma: 1.2
size: 310x174mm (12.2x6.85") diag: 355mm (14") ratio: 16:9 modes: 1600x900
API: OpenGL v: 3.3 Mesa 23.0.1 renderer: Mesa Intel HD Graphics 3000 (SNB
GT2) direct-render: Yes
Audio:
Device-1: Intel 6 Series/C200 Series Family High Definition Audio
vendor: Lenovo driver: snd_hda_intel v: kernel bus-ID: 00:1b.0
chip-ID: 8086:1c20 class-ID: 0403
API: ALSA v: k6.2.8-1-MANJARO status: kernel-api with: aoss
type: oss-emulator tools: alsamixer,amixer
Server-1: sndiod v: N/A status: off tools: aucat,midicat,sndioctl
Server-2: JACK v: 1.9.22 status: off tools: N/A
Server-3: PipeWire v: 0.3.67 status: off with: pipewire-media-session
status: active tools: pw-cli
Server-4: PulseAudio v: 16.1 status: active with: pulseaudio-jack
type: module tools: pacat,pactl,pulsemixer
Network:
Device-1: Intel 82579LM Gigabit Network vendor: Lenovo ThinkPad T520
driver: e1000e v: kernel port: 5080 bus-ID: 00:19.0 chip-ID: 8086:1502
class-ID: 0200
IF: enp0s25 state: up speed: 1000 Mbps duplex: full mac: <filter>
Device-2: Intel Centrino Advanced-N 6205 [Taylor Peak] driver: iwlwifi
v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1 bus-ID: 03:00.0
chip-ID: 8086:0085 class-ID: 0280
IF: wlan0 state: up mac: <filter>
IF-ID-1: wwp0s29u1u4i6 state: down mac: <filter>
Bluetooth:
Device-1: Broadcom BCM2045B (BDC-2.1) type: USB driver: btusb v: 0.8
bus-ID: 1-1.4:4 chip-ID: 0a5c:217f class-ID: fe01 serial: <filter>
Report: rfkill ID: hci0 rfk-id: 4 state: up address: see --recommends
Drives:
Local Storage: total: 1.36 TiB used: 1.02 TiB (74.7%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/sda maj-min: 8:0 vendor: Samsung model: SSD 860 EVO 500GB
size: 465.76 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
type: SSD serial: <filter> rev: 3B6Q scheme: MBR
ID-2: /dev/sdb maj-min: 8:16 vendor: HGST (Hitachi) model: HTS541010A9E680
size: 931.51 GiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
type: HDD rpm: 5400 serial: <filter> rev: A7G0 scheme: MBR
Partition:
ID-1: / raw-size: 100 GiB size: 100 GiB (100.00%) used: 24.23 GiB (24.2%)
fs: btrfs dev: /dev/sda2 maj-min: 8:2
ID-2: /boot raw-size: 512 MiB size: 511 MiB (99.80%)
used: 188.9 MiB (37.0%) fs: vfat dev: /dev/sda1 maj-min: 8:1
ID-3: /home raw-size: 365.26 GiB size: 365.26 GiB (100.00%)
used: 307.79 GiB (84.3%) fs: btrfs dev: /dev/sda3 maj-min: 8:3
ID-4: /var/log raw-size: 100 GiB size: 100 GiB (100.00%)
used: 24.23 GiB (24.2%) fs: btrfs dev: /dev/sda2 maj-min: 8:2
Swap:
Alert: No swap data was found.
Sensors:
System Temperatures: cpu: 63.0 C mobo: N/A
Fan Speeds (RPM): cpu: 3512
Info:
Processes: 335 Uptime: 2h 28m wakeups: 2 Memory: 15.41 GiB
used: 7.28 GiB (47.2%) Init: systemd v: 252 default: graphical
tool: systemctl Compilers: gcc: 12.2.1 clang: 15.0.7 Packages: pm: pacman
pkgs: 2557 libs: 462 tools: pamac,paru pm: flatpak pkgs: 0 Shell: Zsh v: 5.9
running-in: konsole inxi: 3.3.26

Yes. No idea what xdg-utils-handlr is and don’t care. Some AUR package by someone who thought they were fixing something, apparently. Seems like it accomplished the opposite.

You need to specify the protocol:

xdg-open https://forum.manjaro.org
1 Like

Fantastic, @Yochanan! Replacing xdg-utils-handlr with xdg-utils solved the problem. Thanks! :tada:
I’m replying not only to thank you, but also to add that I’ve tried the xdg-open command with and without the protocol, and both work (just for the record).

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.