-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to redirect to an application #1
Comments
What application? Can it be opened via URL schema? For example, you can enter vscode://settings/ in the browser to jump to vscode, an example rule is
After configuring this rule, clicking the link https://github.dev/rxliuli/redirector will open vscode. |
I'm trying to redirect to the flatpak application installed on my desktop computer called "Junction" - found here: https://flathub.org/apps/re.sonny.Junction - which in the terminal executes with the command, /usr/bin/flatpak run re.sonny.Junction I obviously do not know the correct way to set up the redirection part of the rule - or perhaps Redirector won't work for this????? |
Thanks much, that helped. |
Sorry, but I've run into another issue that I THINK is related, but I'm not a tech type person, so perhaps you'll say this should be a new issue. I followed your suggestion above, using this rule within the Brave browser: (https://*) >> x-junction://$1 But, when I click on an https:// hyperlink on a web page within the Brave browser, it opens Junction, but the URL supplied to Junction has file:///home/main1 as the prefix, and after the https it is missing a : and a /. (So, for example, if in the Brave browser I click on a hyperlink on a web page for https://google.com , what is supplied to Junction is file:///home/main1/https/www.google.com instead of just https://google.com. This obviously won't work, any browser I select within Junction to open the desired web site - https://google.com in this example - will instead attempt to open file://home/main1/https/google.com, which of course will fail. On my Ubuntu system, /home/main1 is my user home directory.) How do I make Redirector send the URL to Junction without the prefix of file:///home/main1 for my home directory, and how do I also make it have https:// in the correct URL instead of simply https/ ? |
Use Or you can use the URLPattern matching pattern, which supports more explicit parameters, such as
Sorry for the confusion, this plugin supports two matching modes, and I should stick to one mode when giving examples. |
Thanks for your response. Sadly, none of the options you listed solved the problem, still the same problem. Here is what I've tried:
|
What will happen if you click x-junction://https://www.google.com/ directly in the browser? Can Junction be opened correctly? |
With the Redirector rule of (https://.*) => x-junction://$1 in effect, when I enter x-junction://https://www.google.com directly in the URL field of the Brave browser, Junction does open up as expected, but the URL it is receiving as shown within the Junction application is this erroneous URL: /home/main1/https/search.brave.com/search?q=x-junction%3A%2F%2Fhttps%3A%2F%2Fwww.google.com&source=desktop . |
It seems that directly opening the link has the same issue, it might be a problem with Chrome or Junction, maybe you can check sonnyp/Junction#163. |
Ok, thanks for pointing that out. |
When I click on a certain hyperlink on a web page within my web browser (Brave), I'd like to redirect it to launch an application installed on my Ubuntu Jammy system. How do I do that?
The text was updated successfully, but these errors were encountered: