You are not logged in.

#1 2023-07-14 02:14:55

Ayson_Roberto
Member
Registered: 2023-06-12
Posts: 23

Firefox Opening Links as Local Files

Whenever I click on a link on a program that isnt firefox, the link gets opened as a local file

image.png

what can i do about this? it is really annoying.

Offline

#2 2023-07-14 06:23:02

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,132

Re: Firefox Opening Links as Local Files

Please don't paraphrase, https://bbs.archlinux.org/viewtopic.php?id=57855
http://www.catb.org/~esr/faqs/smart-questions.html

You click *where* on *what* exactly and does "xdg-open /path/to/file/you/clicked" cause the same and why is the uri some krun/kioexec cache?

Online

#3 2023-07-14 12:25:41

Ayson_Roberto
Member
Registered: 2023-06-12
Posts: 23

Re: Firefox Opening Links as Local Files

seth wrote:

Please don't paraphrase, https://bbs.archlinux.org/viewtopic.php?id=57855
http://www.catb.org/~esr/faqs/smart-questions.html

You click where on what exactly and does "xdg-open /path/to/file/you/clicked" cause the same and why is the uri some krun/kioexec cache?

I click anywhere on any link to a website on any application that *isnt a web browser* and i get sent to a local file instead of the actual webpage.

xdg-open sends to me to the krun/kioexec cache page too instead of the actual webpage, and i get this from the command line

 [aubrey@claire-V2 ~]$ xdg-open https://en.pronouns.page/@heckenfricken
[aubrey@claire-V2 ~]$ command= "/usr/lib/firefox/firefox" args= ("/usr/lib/firefox/firefox", "https://en.pronouns.page/@heckenfricken")
kf.kio.core: Protocol Class of url QUrl("https://en.pronouns.page/@heckenfricken") , isn't ':local', cancelling job.
Copying QUrl("https://en.pronouns.page/@heckenfricken")  to QUrl("file:///home/aubrey/.cache/kioexec/krun/1676_0/@heckenfricken")
Telling kioexecd to watch path "/home/aubrey/.cache/kioexec/krun/1676_0/@heckenfricken" dest "https://en.pronouns.page/@heckenfricken"
All files downloaded, will call slotRunApp shortly
EXEC "/usr/lib/firefox/firefox /home/aubrey/.cache/kioexec/krun/1676_0/@heckenfricken"
EXEC done
A KUiServerV2JobTracker instance contains 1 stalled jobs
xdg-open https://en.pronouns.page/@heckenfricken 

I do not know why the url is some krun/kioexec cache, this is the issue I am trying to fix. I want to be sent to the actual web page when I click on a link but instead I get sent to the krun/kioexec cache.

Offline

#4 2023-07-14 12:31:22

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,466
Website

Re: Firefox Opening Links as Local Files

So your xdg-open is not xdg-open.  What is it?

type xdg-open
pacman -Qo $(type -a xdg-open)
pacman -Qk xdg-utils

Last edited by Trilby (2023-07-14 12:32:31)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#5 2023-07-14 14:11:27

Ayson_Roberto
Member
Registered: 2023-06-12
Posts: 23

Re: Firefox Opening Links as Local Files

Trilby wrote:

So your xdg-open is not xdg-open.  What is it?

type xdg-open
pacman -Qo $(type -a xdg-open)
pacman -Qk xdg-utils
[aubrey@claire-V2 ~]$ type xdg-open
xdg-open is /usr/bin/xdg-open
[aubrey@claire-V2 ~]$ pacman -Qo $(type -a xdg-open)
/usr/bin/xdg-open is owned by xdg-utils 1.1.3+25+g8ae0263-1
error: No package owns is
/usr/bin/xdg-open is owned by xdg-utils 1.1.3+25+g8ae0263-1
[aubrey@claire-V2 ~]$ pacman -Qk xdg-utils
xdg-utils: 25 total files, 0 missing files

Offline

#6 2023-07-14 14:36:54

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,466
Website

Re: Firefox Opening Links as Local Files

Okay, xdg-open is fine (or at least it's only as fubar as upstream intends it to be).  But somehow xdg-open is passing the url to a Qt-based tool (which firefox is not) and that Qt program in turn muddles the url then passes it to firefox.

Do you do any qt programming yourself and create any tools you use?  If not (or really in either case) what all qt programs do you have installed, i.e.

expac '%n %D' | awk '/qt/{print $1;}'

Last edited by Trilby (2023-07-14 14:38:54)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#7 2023-07-14 15:22:01

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,132

Re: Firefox Opening Links as Local Files

Check the default browser and url handler, https://wiki.archlinux.org/title/Xdg-utils#xdg-settings

Does "kde-open" cause the same?

Ps: "anywhere" is zero informsation, no matter how much you emphasize it.

Online

#8 2023-07-14 15:43:00

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,466
Website

Re: Firefox Opening Links as Local Files

seth wrote:

Does "kde-open" cause the same?

Forget my previous checks of qt tools - kde-open is almost certainly the culprit which seth's suggestion should verify.  Xdg-open will just hand off to kde-open if you are using kde.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#9 2023-07-14 18:50:29

Ayson_Roberto
Member
Registered: 2023-06-12
Posts: 23

Re: Firefox Opening Links as Local Files

seth wrote:

Check the default browser and url handler, https://wiki.archlinux.org/title/Xdg-utils#xdg-settings

Does "kde-open" cause the same?

Ps: "anywhere" is zero informsation, no matter how much you emphasize it.

checking my default web browser and url handler.

web browser - firefox.desktop

url handler gave nothing back as a response

kde-open does the same thing, yes but i also got this notification, which i dont think i got before.

image.png

this is the output i got from kde-open

 [aubrey@claire-V2 ~]$ kde-open https://google.com
[aubrey@claire-V2 ~]$ command= "/usr/lib/firefox/firefox" args= ("/usr/lib/firefox/firefox", "https://google.com")
kf.kio.core: Protocol Class of url QUrl("https://google.com") , isn't ':local', cancelling job.
Copying QUrl("https://google.com")  to QUrl("file:///home/aubrey/.cache/kioexec/krun/19472_0/unnamed")
QIODevice::read (QSslSocket): device not open
Telling kioexecd to watch path "/home/aubrey/.cache/kioexec/krun/19472_0/unnamed" dest "https://google.com"
All files downloaded, will call slotRunApp shortly
EXEC "/usr/lib/firefox/firefox /home/aubrey/.cache/kioexec/krun/19472_0/unnamed"
EXEC done
A KUiServerV2JobTracker instance contains 1 stalled jobs

Offline

#10 2023-07-14 18:56:24

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,132

Re: Firefox Opening Links as Local Files

Try to set the default-url-scheme-handler for http and https and also the x-scheme-handler's
kde-open probably wants to create a local copy of the "file" so you could probably "xdg-open http://www.foo.bar/file.txt" what seems smart, but isn't.

Edit: w/o looking it up, I'd assume the notification difference is because of the way or environment how xdg-open invokes kde-open.

Last edited by seth (2023-07-14 18:57:21)

Online

Board footer

Powered by FluxBB