GNS3 / gns3-webclient-pack

Client pack to use with the web Ui via protocol handlers
GNU General Public License v3.0
16 stars 2 forks source link

number in the label gns3+telnet #14

Closed Raizo62 closed 6 days ago

Raizo62 commented 4 years ago

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

grossmj commented 4 years ago

Damn... what Linux distro do you use for LiveRaizo?

Raizo62 commented 4 years ago

Debian buster backport

grossmj commented 1 year ago

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"
Raizo62 commented 1 year ago

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 ?

grossmj commented 1 year ago

Do you have an "alpha" or "alnum" in "is_file_url_or_path()" of xdg-open ?

I have "alpha"

Image

Raizo62 commented 1 year ago

Same bug with an other Debian (a bullseye)

Raizo62 commented 1 year ago

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"