Preparing for NPAPI is disabled to improve Google Chrome

5:49 PM
Preparing for NPAPI is disabled to improve Google Chrome -

Chrome security and stability, Google announced late last year that NPAPI plugin support, an ability that we hung it for years from , who is disabled by default in Chrome in April 2015. the NPAPI that the receiver plug-in for Windows and Mac allows install receiver for Web to recognize that receiver installed and allows users to launch applications simply by on them. The distance from NPAPI support is user experience for users concerning the Receiver for Web Citrix access to the Chrome browser on Windows and Mac.

  1. Users are prompted, Citrix Receiver every time they access the recipient to install on site.
  2. an ICA file to be saved when users attempt to launch an application or desktop. You have the ICA file at the bottom of the browser click to activate the start.
  3. Workspace control will be disabled under Windows.

While we are actively working us to the new technology, which will replace our dependence on NPAPI plugins, there are some workarounds you can take in the short term. Here are what you can do.

to reactivate NPAPI

, as mentioned herein, NPAPI can still be activated in Chrome by advanced users and companies by April 2015 when it is disabled by default. However, this will only work until September 2015, when Google Chrome is completely disable NPAPI.

Adjust Receiver for Web

If you do not want or can not re-enable NPAPI plugin there are a number of adjustments that can be done to reduce the interference to receivers for Web. All customization code in this article is to Storefront 2.6.

Disable client download prompt for Chrome

If you never the code below to insert in custom.script.js in contrib folder under the Receiver for Web site will provide users of Chrome browser to install Citrix receiver asked.

 $ (document) .ready (function () {function endPluginAssistant () {CTXS.setCookie (CTXS.COOKIE_PLUGIN_ASSISTANT_STATE, CTXS.PLUGIN_ASSISTANT_DONE); if (CTXS.getCookie (CTXS.COOKIE_PLUGIN_ASSISTANT_STATE) == = null) {CTXS.displayTemplate ( "CookiesAreDisabled");} else {CTXS.Application.displaySpinner (); CTXS.Events.publish (CTXS.Events .pluginAssistant.done);}}; var = origInit CTXS.PluginDetection.init ; CTXS.PluginDetection.init = function () {if (CTXS.ClientInfo.isChrome ()) {endPluginAssistant (); return;} OrigInit ();}}); 

a permanent link Enter recipients in Chrome Download

The above code snippet helps the recipient to install prompt for Chrome disable. However, you may still want to download your users to be able to install the receiver and, if needed. Apply a link to the User Menu Add the following code snippet in custom.script.js Receiver for Chrome browser for download.

 $ (document) .ready (function () {$ .ctxs ctxsUserMenu.prototype._origGenerateDropDownMenu = $ .ctxs.ctxsUserMenu.prototype._generateDropDownMenu;. $ .ctxs.ctxsUserMenu.prototype._generateDropDownMenu = function (ddMenu) {var self = this; var $ mbody = ddMenu.children () "usermenu-body."; if (CTXS.ClientInfo.isChrome () && (CTXS.ClientInfo.isWindows () || CTXS.ClientInfo. isMacOSX ())) {var = clientUrl CTXS.ClientInfo.isWindows () CTXS.Config.pluginAssistant.win32 .path: CTXS.Config.pluginAssistant.macOS.path; $ mBody.append ( ' '? format (clientUrl));.} self._origGenerateDropDownMenu (ddMenu);};}); 

They also have the following strings in the custom.wrstrings.en.js and a localized version for each language you need custom.wrstrings support. Js. Install "Receiver on your desktop ',

provides the resulting UI as:

 Download Receiver:' Install Receiver ', DownloadReceiverToolTip 

with a selection client user Enter

If you have taken advantage of auto recourse to receiver for HTML5 feature to provide, unfortunately it will not function as a receiver for Web is no longer capable of recognizing whether the native receiver is installed. As mitigation, the above adjustment users can be extended to use with a variety of recipients. here is the code snippet is to provide both a download link and a recipient selection menu available.

 $ (document) .ready (function () {$ .ctxs.ctxsUserMenu.prototype._origGenerateDropDownMenu = $ ctxs.ctxsUserMenu.prototype._generateDropDownMenu;. $ .ctxs.ctxsUserMenu.prototype._generateDropDownMenu = function (ddMenu) { var self = this; var $ mbody = ddMenu.children ( "usermenu body."); if (CTXS.ClientInfo isChrome () && (CTXS.ClientInfo.isWindows () || CTXS.ClientInfo.isMacOSX ()).) {var = clientUrl CTXS.ClientInfo.isWindows () CTXS.Config.pluginAssistant.win32.path: CTXS.Config.pluginAssistant .macOS.path; $ MBody.append ( ' ' format (clientUrl).);} If (CTXS.ClientInfo.isChrome () && (CTXS.Config.pluginAssistant.html5.enabled == CTXS Html5Client.ENABLED_FALLBACK) &&. )) {CTXS.Html5Client.usingHtml5Client = function (flag) {return (CTXS.getCookie ( "CtxsUseHtml5Client") == "true") (CTXS.Html5Client.mustUseHtml5Client (!);}; var label = (CTXS.getCookie ( "CtxsUseHtml5Client") == "true") $ .localization.string ( 'ChangeToFullClient'): $ .localization.string ( 'ChangeToLiteClient'); var title = (CTXS.getCookie ( "CtxsUseHtml5Client") == "true" ?) $ .localization.string ( 'ChangeToFullClientToolTip'): $ .localization.string ( 'ChangeToLiteClientToolTip'); $ MBody.append ( '' + label + '') .find ( '# Userdetails- change client ') .click (function (event) {if (CTXS.getCookie ( "CtxsUseHtml5Client") == "true") {CTXS.setCookie ( "CtxsUseHtml5Client", "false", true); .. $ (' # User details -changeclient ') text ($ localization.string (' ChangeToLiteClient ')); $ (' # Userdetails-change client ') .attr (' title ', $ .localization.string (' ChangeToLiteClientToolTip '));} else {CTXS. setCookie ( "CtxsUseHtml5Client", "true", true); $ ( '. # Userdetails-change client') Text ($ .localization.string ( 'ChangeToFullClient')); $ ( '# Userdetails-change client') attr ( 'title', $ .localization.string ( 'ChangeToFullClientToolTip')) ;.} Event.preventDefault ();}); } Self._origGenerateDropDownMenu (ddMenu); }; }); 

They also have the following strings in the custom.wrstrings.en.js and a localized version for each language you need to support custom.wrstrings Js ..

["installreceiveronyourdesktop'ChangeToLiteClient:"
 download receiver:' install receiver ', DownloadReceiverToolTip switch to HTML5 receiver "ChangeToLiteClientToolTip:" you are currently using the full version of the receiver to start with applications. for changes here to use HTML5 version, click "ChangeToFullClient". switch to full receiver "ChangeToFullClientToolTip:" .. You are currently using the HTML5 version of Receiver use applications to start Click here to change to use the full version, "

The resulting UI looks like this:

Enabling Workspace Control for Chrome on Windows

workspace control is disabled if receiver for Web on Windows do not recognize may, if the browser in an ICA session (pass-through mode) is performed. This is to avoid that the meeting be separated through the browser itself. If you can ensure that this is never the case, ie Chrome never used in the double-hop deployment to share applications to access / desktops in the second hop the same XenApp / XenDesktop farms / sites you can use the following code snippet to custom application .script.js under the contrib folder to allow the receiver for Web site Workspace Control for Chrome

 $ (document) .ready (function () {var = origIsAllowed CTXS.WorkspaceControl.isAllowed. CTXS.WorkspaceControl.isAllowed = return function () {if (CTXS.ClientInfo.isChrome ()) {(CTXS.Config.userInterface.workspaceControl.enabled && CTXS.resources.isUnauthenticatedStore!);} Else {return origIsAllowed ();} }; CTXS.WorkspaceControl.isSessionReconnectAllowed = function () {var = userHasAppsInStore (CTXS.resources.numStoreResources> 0); var = appsAreShownToUser (CTXS.Config.userInterface.uiViews.showAppsView == 'true'); var workspace control abled = CTXS. WorkspaceControl.isAllowed (); Return workspace control abled && && userHasAppsInStore appsAreShownToUser; }; var = origIsAutoSessionReconnectAllowed CTXS.WorkspaceControl.isAutoSessionReconnectAllowed; CTXS.WorkspaceControl.isAutoSessionReconnectAllowed = function () {if (CTXS.ClientInfo.isChrome ()) {var autoReconnectConfigured = === CTXS.Config.userInterface.workspaceControl.autoReconnectAtLogon 'true', generalSessionReconnectAllowed = CTXS.WorkspaceControl.isSessionReconnectAllowed () allowedByAppShortcuts =! CTXS.AppShortcuts.isAppShortcutLaunch () || CTXS.Config.userInterface.appShortcuts.allowSessionReconnect === true, desktop auto launch = CTXS.Resources.autoLaunchSingleDesktop (); autoReconnectConfigured && && generalSessionReconnectAllowed allowedByAppShortcuts && return desktop auto launch !; } Else {return origIsAutoSessionReconnectAllowed (); }}; }); 
to open

Chrome automatically enable ICA File

Once the ICA file is saved, users can gain access to the action menu for the ICA file at the bottom of the browser, and select "Always open files of this type". After Start is automatically activated when the user clicks to launch an application / desktop icon.

Previous
Next Post »
0 Komentar