Giter Club home page Giter Club logo

Comments (22)

javabrett avatar javabrett commented on July 21, 2024 3

This is now my favourite issue/enhancement. Being able to pass a configuration-file for the viewer launch binary is a fundamental behaviour - the alternative is wasted time loading the config file each time through a UI.

The issue summary should be updated to make it clear that the request is for command-line argument support for the config file.

Please vote for this issue.

from tigervnc.

grinderx avatar grinderx commented on July 21, 2024 2

Any progress with this? I have an application that can generate .tigervnc files and which then I 'd like to open with TigerVNC in order to connect to hosts. It's not possible right now. All other VNC clients I have tried can do this, but not TigerVNC. Thanks.

from tigervnc.

CendioOssman avatar CendioOssman commented on July 21, 2024 2

No one is working on this as far as I know.

from tigervnc.

TaylorSMarks avatar TaylorSMarks commented on July 21, 2024 1

Handling the files that your program generates isn't a feature or enhancement. That's the expected behavior. To not do that is a bug.

Instead, I have to completely ignore your partially-implemented file format (because it's worthless) and write a shortcut file that passes the proper arguments to the program.

If you'd actually finished implementing your file format, I could have a cross platform solution. Instead I'l have to write Windows shortcuts and .sh files that do the same thing.

from tigervnc.

bphinz avatar bphinz commented on July 21, 2024 1

Not sure if it helps your use case, but the latest (1.7.80) version of the TigerVNC Java viewer has a '-config' option that can be used to specify a .tigervnc file at startup.

from tigervnc.

jgeorgeson avatar jgeorgeson commented on July 21, 2024 1

Another voice for what @javabrett said. Clicking through the GUI to load the file is functional but clunky. Being able to double-click the config file to connect would be great, but a "bookmarks" style drop menu instead of a file chooser would work too I think.

from tigervnc.

 avatar commented on July 21, 2024

Same behavior here when using IP-addresses and port like "ServerName=192.168.0.10:1".
As far as I looked through the code it seems to be located within tigervnc/vncviewer/parameters.cxx, here lines 574 and following.
I cannot see any code splitting the string after "ServerName=" at the ":" if present into hostname/IP-address and port.

from tigervnc.

CendioOssman avatar CendioOssman commented on July 21, 2024

It supports this just fine. What it doesn't support is being given configuration files as a command line argument. It will then use the filename as the host to connect to.

So this is really a feature request for opening configuration files on the command line.

from tigervnc.

 avatar commented on July 21, 2024

Thanks for clarification. So: When windows-double-clicking on (the associated) .tigervnc file the filename gets handed over to TigerVNC, but the content of the config file itself is not being processed. Your change of the subject is correct then.

from tigervnc.

CendioOssman avatar CendioOssman commented on July 21, 2024

Correct. Besides options the viewer only supports a server name as a command line argument.

from tigervnc.

grinderx avatar grinderx commented on July 21, 2024

@CendioOssman If that's the case that's a shame :(

@bphinz Thanks for the suggestion. Unfortunately there are two issues:

  1. The ServerName option doesn't get parsed to the client at all
  2. The Fullscreen mode doesn't work when using all the monitors

from tigervnc.

bphinz avatar bphinz commented on July 21, 2024

Would you mind submitting a ticket for that. The ServerName issue I'm aware of (it's a quirk that exists because of applet mode), but I didn't know about Fullscreen. Thanks

from tigervnc.

co0kiee avatar co0kiee commented on July 21, 2024

I'd love for this to get done.

from tigervnc.

 avatar commented on July 21, 2024

Is this still needing to be done? I saw the bounty on bountysource.

from tigervnc.

Kypert avatar Kypert commented on July 21, 2024

from tigervnc.

grinderx avatar grinderx commented on July 21, 2024

Could you please point to the related commit for this as I can't find it? Thanks

from tigervnc.

CendioOssman avatar CendioOssman commented on July 21, 2024

Ah. The syntax was slightly off on the PR so github didn't automatically close this. I can do it manually.

@Kypert, let me know if there are any issues claiming the bounty.

from tigervnc.

CendioOssman avatar CendioOssman commented on July 21, 2024

Could you please point to the related commit for this as I can't find it? Thanks

It's PR #632 and commit 50439d7.

from tigervnc.

grinderx avatar grinderx commented on July 21, 2024

It's PR #632 and commit 50439d7.

Thanks. My understanding is that this patch has been applied to the latest beta. However, it doesn't seem to be working for me. I tried by double clicking a .tigervnc file as well as by reverting to the CLI

C:\>vncviewer64-1.8.90.exe vncserver.tigervnc

In both cases I get the same error:

unable to resolve host by name: No such host is known.

from tigervnc.

CendioOssman avatar CendioOssman commented on July 21, 2024

Double clicking or dragging works fine for me. However the command line needs to include a \ for the viewer to be able to tell the difference between it and a hostname.

Are you sure your config file just doesn't have an invalid ServerName in it?

from tigervnc.

grinderx avatar grinderx commented on July 21, 2024

OK, I checked again and CLI works the way you instructed by adding the \. Double-clicking also worked, I had to fix my windoze settings by editing the registry and cleaning up the "Open with" apps configured previously.

All good now. Thanks for fixing this issue 👍 Hopefully, the next stable version which will include this patch won't take long to get released :)

from tigervnc.

CendioOssman avatar CendioOssman commented on July 21, 2024

This is included in the just released 1.9.0.

from tigervnc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.