Skip to content

Commit

Permalink
Support for using it from the graphical file manager
Browse files Browse the repository at this point in the history
  • Loading branch information
mgrojo committed Nov 16, 2023
1 parent 878fe33 commit a6f9488
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
17 changes: 15 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,31 @@ or how to change the default installation prefix.

# Use a pre-built AppImage version

You can download a pre-build AppImage from the Releases section in GitHub. For using the file,
You can download a pre-built AppImage from the Releases section in GitHub. For using the file,
give it execution permissions and rename it to `open_url`.
```sh
mv Open_URL-x86_64.AppImage open_url
mv Open_URL-x86_64.AppImage ~/.local/bin/open_url
chmod +x open_url
```

# How to run
From the command line:
```
Usage: open_url <file.url>
```

If you want to open the URL files from the graphical file manager, put
`open_url` in the `PATH` for programs and the `open_url.desktop` file
in one of the standard location for desktop files. For example:

```sh
mv open_url ~/.local/bin/
cp open_url.desktop ~/.local/share/applications/
update-desktop-database
```

Then, from the file manager, you should be able to select _Open URL_ as
application to open `*.url` files.

[download-img]: https://img.shields.io/github/downloads/mgrojo/open_url/total.svg
[download]: https://github.com/mgrojo/open_url/releases
2 changes: 1 addition & 1 deletion open_url.desktop
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[Desktop Entry]
Name=Open URL
Comment=Open *.url files under Linux
Exec=open_url
Exec=open_url %f
Icon=open_url
Terminal=false
X-MultipleArgs=false
Expand Down

0 comments on commit a6f9488

Please sign in to comment.