On Thu, 22 Feb 2024 22:19:21 +0100 Ulrich Windl <u20230...@gmail.com> wrote: >On 2/22/24 22:15, Ulrich Windl wrote: >> On 2/22/24 21:54, 'Stuart Perkins' via qubes-users wrote: >>> >>> On Thu, 22 Feb 2024 21:25:18 +0100 >>> Ulrich Windl <u20230...@gmail.com> wrote: >>> >>>> Hi! >>>> >>>> >>>> I managed to configure Thunderbird to run any links via a DVM. However >>>> today I realized that URLs with parameters are truncated (Qubes-OS 4.2) >>>> after the first parameter it seem. >>>> >>>> For example I have the URL >>>> ../viewtopic.php?f=21&t=196913&p=1023049&e=1023049 >>>> >>>> When I view it in Firefox, the URL bar has only .../viewtopic.php?f=21 >>>> >>>> Unfortunately I have no idea how to debug or fix that. >>>> >>>> >>>> Kind regards, >>>> >>>> Ulrich >>>> >>> Easy work around. Setup your "default browser" to be "open in vm". >>> >> I'm confused: The URL _is_ opened in a VM; the issue is that the URL >> being passed in truncated after the first parameter it seems. >> >> https and https content type is redirected to a "run-vm-firefox" that >> contains: >> >> #!/bin/bash >> qvm-run-vm '$dispvm' /bin/firefox "$1" >> >> I would guess that qvm-run-vm has a quoting problem. >> >> >> I see that qvm-run-vm passes the parameter correctly to >> /usr/lib/qubes/qrun-in-vm. >> >> I don't know python, but these lines seems to have a problem: >> >> cmd = ' '.join(sys.argv[1:]) >> sys.stdout.write("exec bash -c '%s' || exit 127\n" % cmd.replace("'", >> "'\\''")) >> > >Here's my test result: > >$ sh -x /usr/bin/qvm-run-vm @dispvm >"../viewtopic.php?f=21&t=196913&p=1023049&e=1023049" >+ getopt -o htd --long help,no-gui,dispvm -n /usr/bin/qvm-run-vm -- >@dispvm ../viewtopic.php?f=21&t=196913&p=1023049&e=1023049 >+ OPTS= -- '@dispvm' '../viewtopic.php?f=21&t=196913&p=1023049&e=1023049' >+ eval set -- -- '@dispvm' >'../viewtopic.php?f=21&t=196913&p=1023049&e=1023049' >+ set -- -- @dispvm ../viewtopic.php?f=21&t=196913&p=1023049&e=1023049 >+ [ 3 -gt 0 ] >+ shift >+ break >+ [ != 1 ] >+ [ 2 -lt 2 ] >+ [ = 1 ] >+ [ != 1 ] >+ VMNAME=@dispvm >+ shift >+ service=qubes.VMShell >+ [ != 1 ] >+ service=qubes.VMShell+WaitForSession >+ exec /usr/lib/qubes/qrexec-client-vm @dispvm >qubes.VMShell+WaitForSession /usr/lib/qubes/qrun-in-vm >./viewtopic.php?f=21&t=196913&p=1023049&e=1023049 >bash: line 1: ../viewtopic.php?f=21: No such file or directory > Presuming xfce4... bash-5.2# pwd /home/user/.config bash-5.2# cat mimeapps.list [Default Applications] text/html=qvm-open-in-dvm.desktop x-scheme-handler/http=qvm-open-in-dvm.desktop x-scheme-handler/https=qvm-open-in-dvm.desktop x-scheme-handler/about=qvm-open-in-dvm.desktop x-scheme-handler/unknown=qvm-open-in-dvm.desktop application/pdf=org.gnome.Evince.desktop application/sql=org.gnome.TextEditor.desktop [Added Associations] text/plain=org.gnome.gedit.desktop; application/pdf=gimp.desktop;pdfmod.desktop;org.gnome.Evince.desktop; image/jpeg=gimp.desktop;display-im6.q16.desktop; image/png=gimp.desktop; application/sql=org.gnome.TextEditor.desktop; bash-5.2# -- You received this message because you are subscribed to the Google Groups "qubes-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to qubes-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/qubes-users/20240222174150.235b3f21%40yahoo.com.
Re: [qubes-users] issue with URL handler in Thunderbird: started VM receives truncated URL
'Stuart Perkins' via qubes-users Thu, 22 Feb 2024 14:41:58 -0800
- [qubes-users] issue with URL handler in T... Ulrich Windl
- Re: [qubes-users] issue with URL han... 'Stuart Perkins' via qubes-users
- Re: [qubes-users] issue with URL... Ulrich Windl
- Re: [qubes-users] issue with... Ulrich Windl
- Re: [qubes-users] issue ... 'Stuart Perkins' via qubes-users
- Re: [qubes-users] issue with... 'Skyler Ferris' via qubes-users
- Re: [qubes-users] issue ... Demi Marie Obenour
- Re: [qubes-users] issue ... Ulrich Windl
- Re: [qubes-users] i... 'Skyler Ferris' via qubes-users
- Re: [qubes-user... Manuel Amador (Rudd-O)