pwmt / zathura

Document viewer
https://pwmt.org/projects/zathura
zlib License
2.02k stars 140 forks source link

Links won't open in chromium #111

Closed sebastinas closed 4 months ago

sebastinas commented 5 years ago

On GitLab by @xavlab on Mar 12, 2019, 16:10


Weblinks (http) open correctly in most apps, but not in zathura (mouse double clicks on links). Any help ? Archlinux with bspwm here...

sebastinas commented 5 years ago

zathura will simply run xdg-open $URL to open a link. First question: does that work for you? If yes, please strace zathura and check what it executes. You can also build the current develop branch and enable full debug output to get some info on the links.

sebastinas commented 5 years ago

On GitLab by @xavlab on Mar 17, 2019, 14:27


Hi. thanks for your reply. xdg-open $whatever works from a shell : the link gets opened in chromium.

When I start zathura from a shell (usually I do so from emacs), links open up inside the terminal.

Here's what the terminal says after I exit zathura (sorry it's in french):

/usr/bin/xdg-open : ligne 756 : 12598 Trappe pour point d'arrêt et de trace              (core dumped)"$command_exec" "$@"
/usr/bin/xdg-open: ligne 881: x-www-browser : commande introuvable
/usr/bin/xdg-open: ligne 881: firefox : commande introuvable
/usr/bin/xdg-open: ligne 881: iceweasel : commande introuvable
/usr/bin/xdg-open: ligne 881: seamonkey : commande introuvable
/usr/bin/xdg-open: ligne 881: mozilla : commande introuvable
/usr/bin/xdg-open: ligne 881: epiphany : commande introuvable
/usr/bin/xdg-open: ligne 881: konqueror : commande introuvable
The setuid sandbox is not running as root. Common causes:
  * An unprivileged process using ptrace on it, like a debugger.
  * A parent process set prctl(PR_SET_NO_NEW_PRIVS, ...)
Failed to move to new namespace: PID namespaces supported, Network namespace supported, but failed: errno = Operation not permitted
/usr/bin/xdg-open : ligne 868 : 12626 Trappe pour point d'arrêt et de trace              (core dumped)$browser "$1"
/usr/bin/xdg-open: ligne 881: chromium-browser : commande introuvable
/usr/bin/xdg-open: ligne 881: google-chrome : commande introuvable
/usr/bin/xdg-open: ligne 881: www-browser : commande introuvable
/usr/bin/xdg-open: ligne 881: links2 : commande introuvable
/usr/bin/xdg-open: ligne 881: elinks : commande introuvable
/usr/bin/xdg-open: ligne 881: links : commande introuvable
sebastinas commented 5 years ago

On GitLab by @valoq on Mar 20, 2019, 19:12


@xavlab Thanks for reporting this issue. Can you please try to run zathura with "set sandbox none" in your zathurarc file.

The line "A parent process set prctl(PR_SET_NO_NEW_PRIVS, ...)" is exactly what seccomp does, which is used by default by zathura to prevent increasing privileges by a sandboxed application.

sebastinas commented 5 years ago

On GitLab by @xavlab on Mar 20, 2019, 20:46


Yeaah... Works with that option ! Many thanks.

sebastinas commented 5 years ago

On GitLab by @xavlab on Mar 20, 2019, 20:46


closed