summaryrefslogtreecommitdiffstats
path: root/src/virt-viewer-file.c
Commit message (Collapse)AuthorAgeFilesLines
* vv-file: Show 'newer-version-url' when version check failsChristophe Fergeau2015-06-091-5/+17
| | | | | | | We currently display a generic error message when the current binary is older than the minimum version specified in the vv file. The previous commit added a 'newer-version-url' field to these .vv file. This commit adds that URL to the error message if it's set.
* vv-file: Add 'newer-version-url' key to .vv filesChristophe Fergeau2015-06-091-0/+27
| | | | | | If set, this URL will be displayed when one of the version checks ('version' of 'versions' key fail). This URL should contain explanations about how to get an updated remote-viewer version.
* util: Replace virt_viewer_compare_version with _compare_buildidChristophe Fergeau2015-06-091-2/+1
| | | | | | This allows us to do a more accurate version check if the .vv file producer wants to allow builds newer than x.y-z because they contain an important bug fix.
* vv-file: Use "versions" in min version checkChristophe Fergeau2015-06-091-2/+21
| | | | | | | | This tries to use the list of versions added to .vv files by the previous commit. If remote-viewer was built with an os-id specified, and if it's found in the 'versions' .vv file key, then the version associated with it is used for version checks, otherwise the 'version' field is used if present.
* vv-file: Add VirtViewerFile::versionsChristophe Fergeau2015-06-091-1/+72
| | | | | | | | | | | | Specifying a single minimal version in the .vv file is not enough as the client version will be highly dependent on the OS it's running in. Windows versioning is not the same as linux versioning, Fedora 21 and Fedora 22 may have different release numbers for the same version, and we may want to force a specific minimal release in case of a critical bug fix. This commit adds supports for a 'versions' field in .vv files where a list of os-id:version couples can be stored.
* vv-file: Refactor virt_viewer_file_check_min_versionChristophe Fergeau2015-06-091-12/+15
| | | | Reorganize the code a bit so that it's easier to extend it.
* vv-file: Move version checking code in its own functionChristophe Fergeau2015-06-091-5/+15
| | | | | | This moves the version checking code in a virt_viewer_file_check_min_version helper so that it can be reused/extended more easily.
* ovirt: Add support for an 'admin' key in vv fileChristophe Fergeau2015-04-091-0/+26
| | | | | | | | | | | When using a user with administrator rights, the VMs this user can access from the user portal and the admin portal are different, and REST API users must indicate which set of VMs they want through a specific header. libgovirt already has support for that in its API, but virt-viewer was not making use of that API. This commit adds support for an 'admin' field in the [ovirt] section of .vv files so oVirt can indicate remote-viewer whether this header should be set or not.
* Fix 'seperate' typo in man page/commentsChristophe Fergeau2014-10-091-2/+2
|
* Add ovirt-specific properties to VirtViewerFileChristophe Fergeau2014-08-181-0/+108
| | | | | They will be useful to implement foreign menu support through oVirt REST API
* Add 'group' argument to VirtViewerFile helpersChristophe Fergeau2014-08-181-69/+84
| | | | | | For foreign menu support, we'll need a way to pass oVirt-specific information in the .vv file. This will be done through an additional [ovirt] section, this commit is in preparation for that.
* Fix 'title' leak in virt_viewer_file_fill_app()Christophe Fergeau2014-06-101-3/+5
| | | | virt_viewer_file_get_title() returns a newly allocated string.
* Improve window title when connected to newer spice-serverJonathon Jongsma2014-02-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Recent spice servers send the guest vm name and uuid to the client. We can use these values to display the proper vm name in the window title if a title is not specified on the commandline. We can also be smarter about the title in virt-viewer as well. If a title is specified on the comamndline (-t/--title=foo), we use that. If not, we fall back to the vm name. If that is empty, we fall back to the uri of the connection. Comparison between old behavior and new behavior Using new spice-server Command Old title New title ------- --------- --------- remote-viewer -t xyz spice://host:port xyz xyz remote-viewer spice://host:port spice://host:port <vmname> virt-viewer <vmname> <vmname> <vmname> virt-viewer <uuid> <uuid> <vmname> Using old spice-server Command Old title New title ------- --------- --------- remote-viewer -t xyz spice://host:port xyz xyz remote-viewer spice://host:port spice://host:port spice://host:port virt-viewer <vmname> <vmname> <vmname> virt-viewer <uuid> <uuid> <vmname>
* Fix rebuild of accelerators menu when loading from fileMarc-André Lureau2014-01-071-1/+2
| | | | | | | | | It's not enough to set the property to notify of its change. Add a virt_viewer_app_set_enable_accel() helper, and call it after the changes to accelerators are made when loading from file. I verified the menu is correctly built when connection from controller or command line too.
* Unify configured hotkey behaviourMarc-André Lureau2013-11-071-4/+6
| | | | | | | | | | | Whether the hotkeys are set through command line, controller or file, we should get the same keybinding result (clear unspecified, and enable global bindings) However, when started from command line arguments, without --hotkey argument, it will have basic non-global default bindings. https://bugzilla.redhat.com/show_bug.cgi?id=1023447
* file: learn to set secure-attention hotkeyMarc-André Lureau2013-11-071-0/+26
|
* Rename internal toggle-fullscreen menu accel nameMarc-André Lureau2013-11-071-1/+1
| | | | This avoid confusion with other fullscreen state property
* file: factor a bit setting accelerators codeMarc-André Lureau2013-11-071-22/+20
|
* file: add missing field commentMarc-André Lureau2013-07-301-0/+1
|
* file: add delete-this-file optionMarc-André Lureau2013-04-301-0/+32
| | | | | | | In case the virt-viewer setting file is meant to temporary, you may use the delete-this-file=1 option to ask the client to remove it, once it has been read. This is useful for example in ovirt context, where connection settings file are generated and can't be reused.
* spice: forward secure-channelsMarc-André Lureau2013-04-151-0/+26
| | | | This needs spice-gtk >= 0.19.7 and will warn with lower version
* file: add version field, raise an error if incompatibilyMarc-André Lureau2013-03-081-4/+51
| | | | | | The virt-viewer connection file can now have a version=0.5 field. If the virt-viewer version opening the connection doesn't provide at least that version, an error is raised with the version required.
* spice: add proxy configuration to connection fileMarc-André Lureau2013-01-291-1/+25
|
* file: add username supportMarc-André Lureau2013-01-181-0/+25
|
* Sanitize syntax-checkMichal Privoznik2012-12-051-0/+1
| | | | | | | | make syntax-check is producing some errors about empty line at EOF and missing #include <config.h> in src/virt-viewer-file.c * src/virt-viewer-file.c: add #include <config.h> * data/virt-viewer-debug.nsis.in: remove empty line at EOF
* Add VirtViewerFileMarc-André Lureau2012-11-271-0/+797
v2: - use !! for boolean values setter - switch from bytearray/base64 to plain string for CA (PEM) - add file format comment