Closed Raizo62 closed 6 days ago
Damn... what Linux distro do you use for LiveRaizo?
Debian buster backport
I checked on Debian Bullseye. xdg-open is the same version as on Ubuntu 22.04 LTS and I don't have issues to open gns3+telnet URIs. Do you still have an issue?
$ /usr/bin/xdg-open --version
xdg-open 1.1.3
$ xdg-open "gns3+telnet://127.0.0.1:5000/PC1"
GNS3 WebClient launcher version 1.0.0b4
Copyright (c) 2023 GNS3 Technologies Inc.
Parsing URL "gns3+telnet://127.0.0.1:5000/PC1"
It is a very old issue than i don't remember everything about.
But, on the last LiveRaizo (Debian Bullseye+backport) :
$ apt update
$ apt purge xdg-utils # because i patched xdg-open to this bug
$ apt install xdg-utils # to get the original
$ xdg-open "gns3+telnet://127.0.0.1:5000/PC1"
xdg-open: file 'gns3+telnet://127.0.0.1:5000/PC1' does not exist
$ xdg-open "gns+telnet://127.0.0.1:5000/PC1" # without the 3 in gns3
# firefox starts
Do you have an "alpha" or "alnum" in "is_file_url_or_path()" of xdg-open ?
Do you have an "alpha" or "alnum" in "is_file_url_or_path()" of xdg-open ?
I have "alpha"
Same bug with an other Debian (a bullseye)
Looking at the code, it seems to depend on the graphical environment : return of the function "detectDE" On LiveRaizo, it uses "DE=generic" which starts "open_generic" On my "other Debian", it use "DE=lxqt" which starts "open_lxqt" which starts also "open_generic"
Hi
Perhaps that i do a mistake, then sorry....
I have installed temporary gns3-webclient-pack on LiveRaizo (to access to gns3server on other LiveRaizo)
When i do :
/usr/bin/xdg-open "gns3+telnet://127.0.0.1:5000/PC1"
I have this error message :xdg-open: file 'gns3+telnet://[...]' does not exist
After several tests/tries/manpage/docs, i modified the code of /usr/bin/xdg-open to change "alpha" to "alnum" in the function "is_file_url_or_path()", then xdg-open starts gns3-webclient-launcher
I believe that xdg-open doesn't like the 3 in gns3+telnet