diff --git a/CHANGELOG.md b/CHANGELOG.md index 6064e34..7c17532 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,6 +22,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Reset bottom bar on error / invalid URL - Side scrolling doesn't cut off text on the left side (#1) +## Removed +- Opening multiple URLs from the command line (threading issues) ## [1.0.0] - 2020-06-18 Initial release. diff --git a/README.md b/README.md index f6cd950..7fef0a1 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ update-desktop-database ~/.local/share/applications ## Usage -Just call `amfora` or `amfora ` on the terminal. On Windows it might be `amfora.exe` instead. +Just call `amfora` or `amfora ` on the terminal. On Windows it might be `amfora.exe` instead. The project keeps many standard terminal keybindings and is intuitive. Press ? inside the application to pull up the help menu with a list of all the keybindings, and Esc to leave it. If you have used Bombadillo you will find it similar. diff --git a/amfora.desktop b/amfora.desktop index eb26eae..7a9e93c 100644 --- a/amfora.desktop +++ b/amfora.desktop @@ -7,5 +7,5 @@ Categories=Network;WebBrowser;ConsoleOnly; Keywords=gemini Terminal=true TryExec=amfora -Exec=amfora %U +Exec=amfora %u MimeType=x-scheme-handler/gemini; diff --git a/amfora.go b/amfora.go index 81118cc..4476da8 100644 --- a/amfora.go +++ b/amfora.go @@ -19,14 +19,12 @@ func main() { } display.Init() - for _, url := range os.Args[1:] { - display.NewTab() - display.URL(url) - } - if len(os.Args[1:]) == 0 { // There should always be a tab display.NewTab() + } else { + display.NewTab() + display.URL(os.Args[1]) } if err = display.App.Run(); err != nil {