summaryrefslogtreecommitdiff
path: root/SpiceXPI
AgeCommit message (Collapse)AuthorFilesLines
2013-01-29xpi: add Proxy memberHEADmasterMarc-André Lureau5-1/+29
Set SPICE_PROXY environment variable accordingly.
2013-01-29xpi: use safer g_environ_setenv()Marc-André Lureau1-8/+11
Quoting GLib: Environment variable handling in UNIX is not thread-safe, and your program may crash if one thread calls g_setenv() while another thread is calling getenv(). (And note that many functions, such as gettext(), call getenv() internally.) This function is only safe to use at the very start of your program, before creating any other threads (or creating objects that create worker threads of their own). If you need to set up the environment for a child process, you can use g_get_environ() to get an environment array, modify that with g_environ_setenv() and g_environ_unsetenv(), and then pass that array directly to execvpe(), g_spawn_async(), or the like.
2013-01-29xpi: add a few g_environ functions from GLib >= 2.28Marc-André Lureau4-0/+240
2012-12-10fix issues in ScriptablePluginObject::SetPropertyFederico Simoncelli1-3/+9
2012-12-10support smaller NPNetscapeFuncs tablesFederico Simoncelli1-47/+5
2012-11-20bump max. firefox versionPeter Hatina1-1/+1
2012-07-16validate tcp port valuesPeter Hatina1-2/+29
2012-07-10update rdf versions - plugin, firefoxPeter Hatina1-2/+2
2012-07-04add missing IDL attributesPeter Hatina1-0/+2
2012-05-09SetSSLChannels: add ssmartcard, susbredir, stunnelAlon Levy1-1/+2
Adding some more channels to the RHEL 5 list. The longer winded story is that ovirt-engine passes us those values because vdsm unconditionally removes the first letter of every channel name in the secure channels list (aka SSLChannels here). Instead of changing vdsm, and dealing with multiple vdsm versions for each cluster, a huge PITA, let spice-xpi parse some extra channel names. RHBZ: 790416
2012-05-03fix signal handling when disconnectingPeter Hatina1-1/+3
2012-04-23remove leading 's' from all spice channel namesPeter Hatina1-9/+15
2012-04-04Fix printf-format stringChristophe Fergeau1-1/+1
Use %z modifier for ssize_t variables, and for an uint32_t variable, the %l modifier shouldn't be neeeded.
2012-04-04Remove unused SendWStr()Christophe Fergeau2-16/+0
2012-04-04Change SendStr to handle a std::stringChristophe Fergeau2-15/+15
All callers were using std::string::c_str(), better to move this call to SendStr instead of doing it everywhere.
2012-04-04Move secure channel fixup to secure channel setterChristophe Fergeau1-15/+14
The secure channel names need to be fixed for compatibility with older spice versions. However, it's better to do it directly when m_secure_channels is set rather than waiting until its first use
2012-04-04Handle USB-related plugin propertiesChristophe Fergeau2-10/+10
The Firefox plugin exposes the UsbAutoShare property and the SetUsbFilter method that were not wired until now. This commit propagates their value to the nsPluginInstance object and send them through the controller socket.
2012-04-03tmp files owned by current userPeter Hatina1-0/+2
2012-04-03initialize nsPluginInstancePeter Hatina1-3/+11
2012-04-03check string length before calling strcpyPeter Hatina1-0/+2
2012-04-03remove unused class memberPeter Hatina1-1/+0
2012-04-03add support for DisableEffects and ColorDepthYonit Halperin5-1/+55
- ColorDepth should be 32 or 16 - DisableEffects is a comma separated string, composed of one or more of the following options: "wallpaper"/"font-smooth"/"animation", or "all" rhbz #747313 Signed-off-by: Yonit Halperin <yhalperi@redhat.com>
2012-03-21fix disconnect signal sendingPeter Hatina1-1/+2
2012-03-09~/.spicec is no longer neededMarc-André Lureau2-6/+0
Don't attempt to create an unused directory See also: https://bugzilla.redhat.com/show_bug.cgi?id=801871
2012-03-08Drop sigchld handlerPeter Hatina2-34/+31
2012-03-05Use G_GUINT64_FORMAT to print guint64 valuesChristophe Fergeau1-2/+2
gcc complains about the format string being wrong otherwise (the modifier to use is compiler/architecture dependant).
2012-03-05Fix SendCtrlAltDelete xpi property spellingChristophe Fergeau4-11/+11
It was spelt SendCtrlAltdelete (lower case "d" in delete) throughout the code base while spice-x and the rhev/ovirt portals use SendCtrlAltDelete. This commit changes all occurences of Altdelete to AltDelete. After this change, the "Pass Ctrl+Alt+Del" check box in the rhev/ovirt portal works as expected.
2012-03-05Default to enabling Ctrl+Alt+DelChristophe Fergeau1-1/+1
On Linux, the default behaviour of the client is to have Ctrl+Alt+Del passthrough enabled, so it's better to default to enabling it from the controller as well to avoid getting a different behaviour when the client handles controller messages about CAD. Thanks to Uri for this suggestion.
2012-03-05Add controller message for "SEND_CAD"Christophe Fergeau1-0/+1
2012-03-05Use ::SendBool for smartcard controlChristophe Fergeau1-1/+1
2012-03-05Add nsPluginInstance::SendBoolChristophe Fergeau2-0/+7
::SendVal will not send messages when the value is 0, which is not what is expected when sending a boolean value.
2012-03-02idl: add missing attribute Smartcard to nsISpicec interfaceMarc-André Lureau1-0/+1
Interestingly, this doesn't seem to prevent it from working correctly. So this patch is mostly for correctness.
2012-02-24Remove unused global variableMarc-André Lureau1-2/+0
2012-02-24Switch from log4cpp to glibMarc-André Lureau6-238/+47
GLib is used in the defacto library for desktop projects. It includes logging facilities that can be filtered by domain and level, and can be redirected or formated in various ways. Instead of pulling an extra large depedency for a small plugin, let's use what is common to the desktop. Afaict, nobody else is using log4cpp in Fedora. The configuration file is not user friendly. In comparison, you can just run "G_MESSAGES_DEBUG=SpiceXPI firefox" and easily modify logging via environment variable. There is no logging to file, and there is no configuration file. If you want to redirect to file, you can do so via redirection, or other mechanisms (ldpreload, environment..).
2012-02-24build: some clean-upMarc-André Lureau2-64/+55
- remove invalid or obsolete includes, variables - get rid of useless variables - make it more silent - shorten file location: /foo/baz/bar -> bar - prefer $(top_srcdir)/foo/bar vs ../../../foo/bar - remove useless configure check - sort a few lines
2012-02-24Avoid a race leading to a plugin crashMarc-André Lureau1-3/+31
When the child exits quickly (failed to start etc..), it doesn't get tracked properly and when receiving sigchld, "fake_this" may be NULL leading to a crash (fake_this = s_children[info->si_pid])
2012-02-19Add smartcard optionMarc-André Lureau4-0/+26
2012-02-19build: use spice-protocol headersMarc-André Lureau3-140/+2
2012-02-06build: added cachedir option to typelib.pyPeter Hatina1-2/+9
2012-01-31Add SPICE_XPI_DEBUG to not follow childs die and easier debuggingMarc-André Lureau1-4/+6
Spice XPI assumes that the client is the child PID, however for debugging reasons, it's useful to spawn the client as a sub process of the launched program. This allows clients such as: #!/bin/sh exec gnome-terminal -e "gdb --args spicec --controller $@"
2012-01-27build: deal with non-const return values of NPP_GetMIMEDescription()Marc-André Lureau2-0/+14
Deal with const and non-const return value of NPP_GetMIMEDescription(). Although it is hard to find evidences of how this value is used, I think the non-const value could return a static string. But I prefer being on the safe side and return a strdup() to the risk of leaking that string on older versions. Fixes the build on RHEL6 with xulrunner-1.9.2.24-2.el6.
2012-01-26build: fix out-of-tree buildMarc-André Lureau2-9/+6
Fix out of tree build, and some minor clean-up.
2012-01-26build: fix build on both rhel6/<f16 and f16Marc-André Lureau1-12/+13
2011-11-23fix SpiceXPI.xpi manual installationPeter Hatina2-17/+8
2011-11-15fix supported firefox versionsPeter Hatina1-3/+2
2011-11-15fix compiler error, ambiguous function signaturesPeter Hatina2-2/+2
2011-10-03Merge branch 'master' of ssh://git.freedesktop.org/git/spice/spice-xpiPeter Hatina1-27/+6
2011-09-28plugin: try to run /usr/libexec/spice-xpi-client firstMarc-André Lureau1-27/+6
Although not really important, the previous code was racy (stat + exec). I propose running /usr/libexec/spice-xpi-client without parameters, which could be a shell script with the required arguments to call spicec or other spice clients (and could be easily tweaked to run various clients depending on environment etc..) Ex: exec spicec --controller "$@"
2011-08-25call JS OnDisconnected, when spicec quitsPeter Hatina2-22/+89
2011-06-07Fix compiler warningsHans de Goede6-10/+9