[Bug 1889477] [NEW] xdg-open on Kubuntu 20.04 reports 'Could not connect to localhost: Connection refused' if localhost service not already up
Launchpad Bug Tracker
1889477 at bugs.launchpad.net
Sat Jan 9 08:57:39 UTC 2021
You have been subscribed to a public bug:
1) The release of Ubuntu you are using, via 'lsb_release -rd' or System -> About Ubuntu
Description: Ubuntu 20.04.1 LTS
Release: 20.04
(Kubuntu 20.04 Fresh Install)
2) The version of the package you are using, via 'apt-cache policy pkgname' or by checking in Software Center
xdg-utils:
Installed: 1.1.3-2ubuntu1
Candidate: 1.1.3-2ubuntu1
3) What you expected to happen
xdg-open "http://localhost:1313" to open the default browser at http://localhost:1313
4) What happened instead
A gui dialog titled 'Error -- KIO Client' pops up with the message 'Could not connect to host localhost: Connection refused.'
5) More Info
I use xdg-open "http://localhost:someport" in my bash scripts before it actually starts the service as a time saver. On older Ubuntu and other distros it would open the default browser (Firefox) with a page not found. I press reload once the service is setup and Firefox loads the page.
On Kubuntu 20.04 xdg-open gets blocked if the port is not already
opened.
Example command:
xdg-open "http://localhost:1313"
This did work on Kubuntu and Ubuntu 18.04 and Ubuntu 19.10. Currently
works on Manjaro KDE with latest stable update. Worked on Fedora 31 KDE
(can not remember if I tested 32).
Current Manjaro package reported as: xdg-utils 1.1.3+19+g9816ebb-1
Ubuntu 20.04 not tested.
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: xdg-utils 1.1.3-2ubuntu1
ProcVersionSignature: Ubuntu 5.4.0-42.46-generic 5.4.44
Uname: Linux 5.4.0-42-generic x86_64
ApportVersion: 2.20.11-0ubuntu27.4
Architecture: amd64
CasperMD5CheckResult: skip
CurrentDesktop: KDE
Date: Wed Jul 29 13:53:07 2020
InstallationDate: Installed on 2020-05-28 (62 days ago)
InstallationMedia: Kubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423)
PackageArchitecture: all
SourcePackage: xdg-utils
UpgradeStatus: No upgrade log present (probably fresh install)
** Affects: kde-cli-tools (Ubuntu)
Importance: Low
Status: New
** Tags: amd64 apport-bug focal xdg-utils
--
xdg-open on Kubuntu 20.04 reports 'Could not connect to localhost: Connection refused' if localhost service not already up
https://bugs.launchpad.net/bugs/1889477
You received this bug notification because you are a member of Kubuntu Bugs, which is subscribed to kde-cli-tools in Ubuntu.
More information about the kubuntu-bugs
mailing list