GithubHelp home page GithubHelp logo

Linux Support about switchy HOT 122 CLOSED

peopleofidealism avatar peopleofidealism commented on July 18, 2024
Linux Support

from switchy.

Comments (122)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
Issue 8 has been merged into this issue.

Original comment by [email protected] on 10 Dec 2009 at 1:30

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
i use 1.1.0 with with Chrome-beta 4.0.249.30 Linux Mandriva 2008.1

this does not work

see the log when diagnosing :
****************************
[15:22:17] [info] - Browser Info: 5.0 (X11; U; Linux i686; en-US) 
AppleWebKit/532.5 
(KHTML, like Gecko) Chrome/4.0.249.30 Safari/532.5
[15:22:17] [success] - Plugin loaded successfully..
[15:22:17] [error] - Plugin not working properly!
[15:22:17] [success] - 'localStorage' supported..
[15:22:17] [success] - Wrote to local storage successfully..
***************************************************************

i tried with 

localhost
or
//localhost

and
as proxy port
8118

nothing works

anyway thanks for your work

Original comment by [email protected] on 10 Dec 2009 at 2:26

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
For Linux

chrome uses

-in gnome environment gnome proxy settings

-in kde environment kde proxy settings

i assume through freedesktop standards
thus
i assume you must replace these proxy settings feature by your own

Original comment by [email protected] on 10 Dec 2009 at 3:17

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
Issue 12 has been merged into this issue.

Original comment by [email protected] on 11 Dec 2009 at 1:09

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
Issue 13 has been merged into this issue.

Original comment by [email protected] on 11 Dec 2009 at 1:10

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
a more complete diagnosis
************************************************************
[16:24:58] [error] - Plugin Error @ProfileManager.applyProfile(Profile: 
{"name":"Privoxy","proxy":"//localhost:8118","useSameProxy":true,"proxyHttps":"/
/loca
lhost:8118","proxyFtp":"","proxySocks":"","bypassProxy":"<local>","configUrl":""
}) > 
TypeError: Object #<an HTMLEmbedElement> has no method 'setProxy'
[16:24:58] [info] - Browser Info: 5.0 (X11; U; Linux i686; en-US) 
AppleWebKit/532.5 
(KHTML, like Gecko) Chrome/4.0.249.30 Safari/532.5
[16:24:58] [success] - Plugin loaded successfully..
[16:24:58] [error] - Plugin not working properly!
[16:24:58] [success] - 'localStorage' supported..
[16:24:58] [success] - Wrote to local storage successfully..
********************************************************************************
**

Original comment by [email protected] on 12 Dec 2009 at 3:28

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
I'd like to see this for linux too. I get these:
[12:16:03] [error] - Plugin not working properly!
[12:16:03] [success] - 'localStorage' supported..
[12:16:03] [success] - Wrote to local storage successfully..
[12:16:39] [error] - Plugin Error @ProfileManager.applyProfile(Profile: 
{"name":"OptimusPrime","proxy":"localhost:48680","useSameProxy":true,"proxyHttps
":"",
"proxyFtp":"","proxySocks":"","bypassProxy":"localhost","configUrl":""}) > 
TypeError: 
Object #<an HTMLEmbedElement> has no method 'setProxy'
[12:17:02] [error] - Plugin Error @ProfileManager.applyProfile(Profile: 
{"name":"OptimusPrime","proxy":"localhost:48680","useSameProxy":true,"proxyHttps
":"",
"proxyFtp":"","proxySocks":"","bypassProxy":"localhost","configUrl":""}) > 
TypeError: 
Object #<an HTMLEmbedElement> has no method 'setProxy'
[12:18:07] [info] - Browser Info: 5.0 (X11; U; Linux i686; en-US) 
AppleWebKit/532.6 
(KHTML, like Gecko) Chrome/4.0.269.0 Safari/532.6
[12:18:07] [success] - Plugin loaded successfully..
[12:18:07] [error] - Plugin not working properly!
[12:18:07] [success] - 'localStorage' supported..
[12:18:07] [success] - Wrote to local storage successfully..
[12:18:08] [info] - Browser Info: 5.0 (X11; U; Linux i686; en-US) 
AppleWebKit/532.6 
(KHTML, like Gecko) Chrome/4.0.269.0 Safari/532.6
[12:18:08] [success] - Plugin loaded successfully..
[12:18:08] [error] - Plugin not working properly!
[12:18:08] [success] - 'localStorage' supported..
[12:18:08] [success] - Wrote to local storage successfully..
[12:18:09] [info] - Browser Info: 5.0 (X11; U; Linux i686; en-US) 
AppleWebKit/532.6 
(KHTML, like Gecko) Chrome/4.0.269.0 Safari/532.6
[12:18:09] [success] - Plugin loaded successfully..
[12:18:09] [error] - Plugin not working properly!
[12:18:09] [success] - 'localStorage' supported..
[12:18:09] [success] - Wrote to local storage successfully..
[12:18:13] [info] - Browser Info: 5.0 (X11; U; Linux i686; en-US) 
AppleWebKit/532.6 
(KHTML, like Gecko) Chrome/4.0.269.0 Safari/532.6
[12:18:13] [success] - Plugin loaded successfully..
[12:18:13] [error] - Plugin not working properly!
[12:18:13] [success] - 'localStorage' supported..
[12:18:13] [success] - Wrote to local storage successfully..

Original comment by [email protected] on 13 Dec 2009 at 5:19

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
Under development.

Original comment by [email protected] on 14 Dec 2009 at 6:17

  • Changed state: Accepted
  • Added labels: OpSys-Linux, Priority-High
  • Removed labels: Priority-Medium

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
thanks very much

Original comment by [email protected] on 14 Dec 2009 at 6:43

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024

Original comment by [email protected] on 17 Dec 2009 at 10:51

  • Changed state: Started

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
Happy to announce Linux support in version 1.2.0, please install and test the 
new 
version and report any problem you face.
I've tested this version on Ubuntu 9.10 only, though it should work at on any 
Gnome 
based desktop.

Original comment by [email protected] on 18 Dec 2009 at 2:10

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
Does it support 64bit distro? I uninstalled the older version,
deleted the older localstorage file for the extension, installed
again but the extension does not work. I am on Ubuntu 9.10 x86_64.
Log shows:

[11:57:09] [info] - Browser Info: 5.0 (X11; U; Linux x86_64; en-US) 
AppleWebKit/532.5 
(KHTML, like Gecko) Chrome/4.0.249.30 Safari/532.5
[11:57:09] [success] - Plugin loaded successfully..
[11:57:09] [error] - Plugin not working properly!
[11:57:09] [success] - 'localStorage' supported..
[11:57:09] [success] - Wrote to local storage successfully..

Original comment by [email protected] on 18 Dec 2009 at 6:31

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
Linux Mandriva 2008.1 kde 3.5.9
with privoxy (local proxy to delete all advertisements) located at port 8118

i make a manual proxy settings

http_proxy: = http://localhost:8118
https_proxy:https://localhost:8118
no_proxy = localhost;127.0.0.1

1. proxy feature works well now

i have no more advertisement

2. i activate "quick switch"
then
by clicling switchy icon
i can't switch from proxy to no proxy thus i stay with proxy activated
and
there is no more contextual menu to select "options" for switchy settings
i must use chrome menu "settings/extension" then select "switchy/options"
to have the ability to set switchy

3 i unactivate "quick switch"
then
with switchy contextual menu
i can't switch from proxy to no proxy thus i stay with proxy activated



Original comment by [email protected] on 18 Dec 2009 at 9:02

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
I'm on openSUSE 64 and i still get the error:

TypeError: Object #<an HTMLEmbedElement> has no method 'setProxy'

Original comment by hugo.m.palma on 18 Dec 2009 at 9:41

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
to complete diagnosis

no more pb reported by log
*****************************************************************************
[10:57:04] [info] - Browser Info: 5.0 (X11; U; Linux i686; en-US) 
AppleWebKit/532.5 
(KHTML, like Gecko) Chrome/4.0.249.30 Safari/532.5
[10:57:04] [success] - Plugin loaded successfully..
[10:57:04] [success] - Plugin working properly..
[10:57:04] [success] - 'localStorage' supported..
[10:57:04] [success] - Wrote to local storage successfully..
*****************************************************************************

Original comment by [email protected] on 18 Dec 2009 at 9:58

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
Running chromium (svn revision 34467) on ArchLinux (i686) and KDE 4.3.4. I 
cannot 
make this to work. Since 1.2.0, the log reports:
[15:00:20] [info] - Browser Info: 5.0 (X11; U; Linux i686; en-US) 
AppleWebKit/532.7 
(KHTML, like Gecko) Chrome/4.0.270.0 Safari/532.7
[15:00:20] [success] - Plugin loaded successfully..
[15:00:20] [success] - Plugin working properly..
[15:00:20] [success] - 'localStorage' supported..
[15:00:20] [success] - Wrote to local storage successfully..
[15:04:44] [info] - Browser Info: 5.0 (X11; U; Linux i686; en-US) 
AppleWebKit/532.7 
(KHTML, like Gecko) Chrome/4.0.270.0 Safari/532.7
[15:04:44] [success] - Plugin loaded successfully..
[15:04:46] [success] - Plugin working properly..
[15:04:46] [success] - 'localStorage' supported..
[15:04:46] [success] - Wrote to local storage successfully..

But the options are all messed up. If I set a profile and select it, overing 
the 
switchy icon tells me I'm using the other profile. And the proxy profile is 
never 
respected: it always uses a direct connection.

Original comment by [email protected] on 19 Dec 2009 at 8:07

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
@nikhail, @hugo actually I haven't try it on 64bit distributions, but will try 
it asap 
and fix the problem.

@episteme, @nbigaouette since the plugin was loaded and had no problem I think 
it's all 
about KDE, I'll test it on KDE and fix this issue.

I need someone to confirm that it works on Gnome distributions (x86) (like 
Ubuntu 9.xx 
x86).

Original comment by [email protected] on 19 Dec 2009 at 10:51

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
I too am having problems on 64bit Ubuntu 9.10. Have uninstalled switchy and 
removed the local storage and 
started fresh. Still doesnt appear to work:

[09:54:27] [info] - Browser Info: 5.0 (X11; U; Linux x86_64; en-US) 
AppleWebKit/532.7 (KHTML, like Gecko) 
Chrome/4.0.274.0 Safari/532.7
[09:54:27] [success] - Plugin loaded successfully..
[09:54:27] [error] - Plugin not working properly!
[09:54:27] [success] - 'localStorage' supported..
[09:54:27] [success] - Wrote to local storage successfully..

Original comment by [email protected] on 20 Dec 2009 at 12:30

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
[20:28:12] [info] - Browser Info: 5.0 (X11; U; Linux x86_64; en-US) 
AppleWebKit/532.8 
(KHTML, like Gecko) Chrome/4.0.276.0 Safari/532.8
[20:28:12] [success] - Plugin loaded successfully..
[20:28:12] [error] - Plugin not working properly!
[20:28:12] [success] - 'localStorage' supported..
[20:28:12] [success] - Wrote to local storage successfully..
[20:28:26] [error] - Plugin Error @ProfileManager.applyProfile(Profile: 
{"name":"ifmo","proxyMode":"auto","proxyHttp":"","useSameProxy":true,"proxyHttps
":"","p
roxyFtp":"","proxySocks":"","proxyExceptions":"<local>","proxyConfigUrl":"http:/
/proxy.
ifmo.ru/proxy.pac","color":"blue","id":"ifmo"}) > TypeError: Object #<an 
HTMLEmbedElement> has no method 'setProxy'

Original comment by [email protected] on 21 Dec 2009 at 5:30

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
OS: Ubantu 9.10 32bit
Browser: (Chromium)4.0.249.30 and (Chrome)4.0.266.0

I use a SSH as SOCKS proxy.But Switchy will set the "HTTP area" a wrong 
value(which is 
("socks=127.0.0.1") in system proxy setting.
So I use privoxy to change it into a HTTP proxy,and it work great.
Anyone with the same problem can try privoxy~~

Original comment by [email protected] on 29 Dec 2009 at 7:46

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
[deleted comment]

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
It's Linux day :)
- Added support for Gnome (64 bit) and KDE (32/64 bit), tested on Ubuntu 
(Gnome) 32/64 
bit and Fedora (KDE) 32 bit.
- Also implemented Switch Rules for Linux (all).
The new version 1.3.5 will be released later today.

Original comment by [email protected] on 31 Dec 2009 at 11:34

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
thanks very much i will test it

happy new year

Original comment by [email protected] on 31 Dec 2009 at 11:55

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
I have tested in on Debian testing 64-bit with KDE.
HTTP proxies and proxy selection works, but if I switch to "Direct Connection" 
and 
refresh, selection goes back to proxy. I solved it by using auto switch mode 
with 
default rule "Direct Connection".
Also, profile with only SOCKS proxy specified and no HTTP proxy doesn't work.

Original comment by [email protected] on 1 Jan 2010 at 1:36

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
[deleted comment]

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
OS: Ubuntu 9.10 32bit
Browser Version:4.0.288.0

When I upgrade Switchy! from 1.3.0 to 1.3.5
HTTP proxy doesn't work any more
It seems like the proxy profile which named <Current Profile>(yes it's default) 
cause the matter
When I click the icon switch a proxy,it doesn't change anything
the icon's color turn gray again,my proxy set goes <Current Profile>

Original comment by [email protected] on 2 Jan 2010 at 11:01

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
Happy new year to you all :)

@reincarnation.zero
1. The first issue is fixed, and the fix will be included in the next release.
2. About the second issue, Chrome apparently doesn't support SOCKS on KDE based 
distributions!
Here is a quote from Chromium source code:
--
"The astute reader may notice that there is no mention of SOCKS
here. That's because KDE handles socks is a strange way, and we
don't support it."
--

Original comment by [email protected] on 2 Jan 2010 at 2:15

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
@samrayone
<Current Profile> is a temp profile appears only if the current Chrome proxy 
configuration didn't match any exist profile (occurs when someone changes the 
proxy 
settings manually, not via Switchy).
So, if you select an exist profile from menu and Switchy applied it 
successfully, then 
the profile '<Current Profile>' should disappear.
Please disable 'Quick Switch' if it's enabled, and try selecting an exist 
profile, tell 
me if Switchy works well then.

Original comment by [email protected] on 2 Jan 2010 at 2:29

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
switchy! 1.3.5.1 has fixed it,thx

Original comment by [email protected] on 3 Jan 2010 at 4:13

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
switchy! 1.3.5.1 works with Chromium(4.0.249.30),but doesn't work with 
Chrome(4.0.266.0) while 1.3.5 works with both.

Here is log:
[20:14:41] [info] - Extension Info: v1.3.5.1
[20:14:41] [info] - Browser Info: 5.0 (X11; U; Linux i686; en-US) 
AppleWebKit/532.6 
(KHTML, like Gecko) Chrome/4.0.266.0 Safari/532.6
[20:14:41] [success] - Plugin loaded successfully..
[20:14:41] [error] - Plugin not working properly!
[20:14:41] [success] - 'localStorage' supported..
[20:14:41] [success] - Wrote to local storage successfully..


Original comment by [email protected] on 3 Jan 2010 at 12:22

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
Linux Mandriva 2008.1 kde 3.5.9
with Privoxy (local proxy to delete all advertisements) located at port 8118
it is a only http and https proxy

Switchy 1.3.5.1
i set manualy proxy settings

http :localhost 8118
https : localhost 8118
no proxy : localhost;127.0.0.1

i needed to delete the google-chrome folder for switchy working well

selecting "direct connection" i have a direct connection
selecting "privoxy" i have a privoxy connection

quick switch works well

a little pb :
when setting a new profile by default the filed "no proxy for" is set with

<local>;localhost;127.0.0.1

what is this "<local>" ?

Original comment by [email protected] on 3 Jan 2010 at 1:12

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
a good thing with linux would be an automatical setting by copying proxy system 
parameters :

http_proxy
https_proxy
no_proxy

this does not depends from gnome or kde or any environment

anyway the main goal is achieved

thanks

Original comment by [email protected] on 3 Jan 2010 at 1:17

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
I still cannot make it work here on ArchLinux (i686) and KDE 4.3.4. Here is the 
log:
[12:25:00] [info] - Extension Info: v1.3.5.1
[12:25:00] [info] - Browser Info: 5.0 (X11; U; Linux i686; en-US) 
AppleWebKit/532.8 
(KHTML, like Gecko) Chrome/4.0.289.0 Safari/532.8
[12:25:00] [success] - Plugin loaded successfully..
[12:25:00] [success] - Plugin working properly..
[12:25:00] [success] - 'localStorage' supported..
[12:25:00] [success] - Wrote to local storage successfully..
The extension nows seems to behave corectly: I can set options, add and delete 
proxy, 
etc. No errors are reported or no strange behaviour.

BUT, if I set the proxy to the ssh tunnel (localhost) the proxy setting is not 
enforced. It does not matter if the ssh tunnel is established or not: looking 
at a 
"what's my ip" website will always report a direct connection. I would expect 
the 
connection to that website to fail if the ssh tunnel is not established.

I was trying to find anything related to proxy in kde's systemsettings, but I 
cannot 
find anything! I also tried to delete the extension's configuration but 
uninstalling 
the extension and installing it back gave me the same config as before. Where 
can I 
delete that information?

Original comment by [email protected] on 3 Jan 2010 at 5:31

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
@mirlww
It should still work on both, try disabling and re-enabling Switchy.

@episteme.promeneur
kinda strange! you shouldn't have to delete google-chrome folder for Switchy to 
work!
about "<local>", it's Windows-specific (means localhost), you can delete it if 
you want.
and about the environment variables, this may work with many applications, but 
not Chrome, since it prioritizes 
Gnome and KDE specific proxy settings over environment variables.

@nbigaouette
if you're using SSH Tunnel + SOCKS proxy it will not work properly on KDE, 
because Chrome doesn't support SOCKS 
on KDE based distributions! (anyone can confirm this?)

Original comment by [email protected] on 4 Jan 2010 at 12:57

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
It's not a SOCKS proxy but an http proxy: the ssh connection tunnels to a squid 
proxy.

Original comment by [email protected] on 4 Jan 2010 at 1:54

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
I'm back again : )
and the problem comes again : (

OS: Ubuntu 9.10 32bit
Browser Version:4.0.289.0
Switchy!:1.3.5.1

When I click the icon switch to my proxy
the icon turns gray and my proxy set goes to <Current Profile>

here is the snap
http://www.flickr.com/photos/samrayone/4244408628/

I've disable 'Quick Switch' already

Original comment by [email protected] on 4 Jan 2010 at 10:42

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
Observing the same issue as @samrayone. Proxy profile is always set to 
"<Current Profile>" and I cannot change it. Here are 
some details:

OS: Debina Lenny i686
Browser: Chrome/4.0.249.43

"Switchy!" logs:
[16:36:34] [info] - Extension Info: v1.3.5.1
[16:36:34] [info] - Browser Info: 5.0 (X11; U; Linux i686; en-US) 
AppleWebKit/532.5 (KHTML, like Gecko) Chrome/4.0.249.43 
Safari/532.5
[16:36:34] [success] - Plugin loaded successfully..
[16:36:34] [error] - Plugin not working properly! Internal error: Can't read 
proxy configuration!
[16:36:34] [success] - 'localStorage' supported..
[16:36:34] [success] - Wrote to local storage successfully..


"chrome://net-internals/proxyservice.config":

Current configuration (chrome://net-internals/proxyservice.config)
Automatic settings:
  Auto-detect: No
  Custom PAC script: [None]
Manual settings:
  Proxy server: [None]
  Bypass list: [None]
  Bypass local names: No

Original comment by [email protected] on 4 Jan 2010 at 2:37

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
@samrayone
@ydidukh

delete the folder 
~/.config/google-chrome/Default/Extensions/caehdcpeofiiigpdhbabniblemipncjj/1.3.
5.1/
then
do again your proxy settings

Original comment by [email protected] on 4 Jan 2010 at 3:33

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
@episteme.promeneur

It didn't help. That step just removes "Switchy!" extension without touching 
it's 
settings. And I have no idea where they are and how to remove them. Thoughts?

Original comment by [email protected] on 4 Jan 2010 at 3:55

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
chrome4 (build:35427)
auto switch mode doesn't work

Original comment by [email protected] on 4 Jan 2010 at 4:37

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
@nbigaouette
please do these two tests and post back the results:
- to get current Chrome active proxy settings open this page (chrome://net-
internals/proxyservice.config), compare the info in this page with the applied 
proxy 
profile, if they match then Switchy works well.
- open terminal, and run this command
> kreadconfig --file kioslaverc --group 'Proxy Settings' --key httpProxy
what's the output?

finally, to reset Switchy settings you can delete Chrome browsing history (I'll 
add a 
button for this later).

@samrayone
really strange, just tested it on the same environment and it works well!
--
OS: Ubuntu 9.10 32bit
Browser Version:4.0.289.0
Switchy!:1.3.5.1
--
did you check the error log? and try disable/enable Switchy.

@ydidukh
seems that the plugin doesn't work properly..
well, may you try this:
- open terminal, and run these commands
> kreadconfig --file kioslaverc --group 'Proxy Settings' --key httpProxy
> gconftool-2 -g /system/http_proxy/host
> echo $DESKTOP_SESSION + $GNOME_DESKTOP_SESSION_ID + $KDE_FULL_SESSION
what's the output?

@HLiangJun
please give me more details about your OS, Chrome, Switchy version and error 
log.

Original comment by [email protected] on 4 Jan 2010 at 6:41

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
Thanx for your help. Here's the wanted output.
The content of chrome://net-internals/proxyservice.config:
Automatic settings:
  Auto-detect: No
  Custom PAC script: [None]
Manual settings:
  Proxy server: [None]
  Bypass list: [None]
  Bypass local names: No
I get this whatever is selected using the switchy! icon.

At first, I had this:
$ kreadconfig --file kioslaverc --group 'Proxy Settings' --key httpProxy
http://127.0.0.1:48628
which is my ssh tunnel. The file ~/.kde4/share/config/kioslaverc contains:
[$Version]
update_info=kioslave.upd:kde2.2/r1,kioslave.upd:kde2.2/r2,kioslave.upd:kde2.2/r3

[Proxy Settings]
NoProxyFor=
Proxy Config Script=
ProxyType=0
ftpProxy=http://127.0.0.1:48628
httpProxy=http://127.0.0.1:48628
httpsProxy=http://127.0.0.1:48628
socksProxy=http://127.0.0.1:48628

After some testing, I realized that switchy! (or something controled by it, 
f.e. 
chromium) overwrite this file. So if I set a foobar as a proxy profile in 
switchy, 
the file ~/.kde4/share/config/kioslaverc will contain it! Whatever I do in 
konqueror 
to change the proxy, it will be overwritten by chromium/switchy... What an odd 
behavior.

Original comment by [email protected] on 4 Jan 2010 at 7:03

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
After more test, I confirm that changing profile in switchy will change KDE's 
proxy 
settings, but chromium does not use that setting.
Can it be possible to have the other way round? :P

Original comment by [email protected] on 4 Jan 2010 at 7:06

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
@nbigaouette
well, run these commands and post back with results
> gconftool-2 -g /system/http_proxy/host
> echo $DESKTOP_SESSION + $GNOME_DESKTOP_SESSION_ID + $KDE_FULL_SESSION

Original comment by [email protected] on 4 Jan 2010 at 7:17

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
Both are empty:
$ gconftool-2 -g /system/http_proxy/host

$ echo $DESKTOP_SESSION + $GNOME_DESKTOP_SESSION_ID + $KDE_FULL_SESSION
+ +
$

Original comment by [email protected] on 4 Jan 2010 at 7:21

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
well, if you change system proxy settings manually does Chrome sees and uses 
the new 
settings?

Original comment by [email protected] on 4 Jan 2010 at 8:15

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
No its ignoring everything...

Original comment by [email protected] on 4 Jan 2010 at 11:05

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
I guess I've found something.

Deleting the config file of Switchy! doesn't help(which is 
~/.config/google-chrome/Default/Local Storage/chrome-
extension_caehdcpeofiiigpdhbabniblemipncjj_0.localstorage). 

I replace the "npSwitchy.so" with the one of Switchy! 1.3.0 (the size of which 
is 
237.7kb),and the "<Current Profile>" problem disappear~ Everything work well 
except 
the "auto switch mode".

Can you send me a copy of the "npSwitchy.so" of the version 1.3.5 ?
Thanks in advance~

Original comment by [email protected] on 4 Jan 2010 at 11:46

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
OS: Ubuntu 9.10 32bit
Browser Version:4.0.289.0
Switchy!:1.3.5.1
---------------------------------------------------
I've deleted the folder ~/.config/chromium/ and reinstalled Chromium & Switchy!
But <Current Profile> still exist
OK,here's my Log

[14:25:05] [info] - Extension Info: v1.3.5.1
[14:25:05] [info] - Browser Info: 5.0 (X11; U; Linux i686; en-US) 
AppleWebKit/532.8 
(KHTML, like Gecko) Chrome/4.0.289.0 Safari/532.8
[14:25:05] [success] - Plugin loaded successfully..
[14:25:05] [error] - Plugin not working properly!
[14:25:05] [success] - 'localStorage' supported..
[14:25:05] [success] - Wrote to local storage successfully..
[14:26:04] [error] - Plugin Error @ProfileManager.applyProfile(Profile: 
{"name":"My 
Proxy","proxyMode":"manual","proxyHttp":"127.0.0.1:8580","useSameProxy":true,"pr
oxyHt
tps":"","proxyFtp":"","proxySocks":"","proxyExceptions":"","proxyConfigUrl":"","
color":"blue
","id":"My Proxy"}) > TypeError: Object #<an HTMLEmbedElement> has no method 
'setProxy'

Original comment by [email protected] on 5 Jan 2010 at 6:42

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
@Mohammadhi

I don't think that these results may help you, but here's the output:
"""
~ > kreadconfig --file kioslaverc --group 'Proxy Settings' --key httpProxy
zsh: command not found: kreadconfig
~ > gconftool-2 -g /system/http_proxy/host
127.0.0.1
~ > echo $DESKTOP_SESSION + $GNOME_DESKTOP_SESSION_ID + $KDE_FULL_SESSION
fluxbox + +
"""

Also, I've tried to delete Switchy's config file as @mirlww suggested, but it 
didn't help. With a blank config I still 
see errors in the log ("Plugin not working properly! Internal error: Can't read 
proxy configuration!").

Is there any other steps that may help you to find out the reason?

Original comment by [email protected] on 5 Jan 2010 at 10:01

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
>> ~ > kreadconfig --file kioslaverc --group 'Proxy Settings' --key httpProxy
>> zsh: command not found: kreadconfig

After installation "kdebase-bin" package the problem with <Current Profile> has 
disappeared. But it 
still doesn't work for me (changing proxy profile doesn't affect chrome's proxy 
settings). Interesting 
fact is that switchy! overwrites kioslaverc file each time I'm changing proxy 
profile:

Profile A:
~ > kreadconfig --file kioslaverc --group 'Proxy Settings' --key httpProxy
http://127.0.0.1:13128
Profile B:
~ > kreadconfig --file kioslaverc --group 'Proxy Settings' --key httpProxy
http://127.0.0.1:3128

Chrome's proxy settings are:
Current configuration (chrome://net-internals/proxyservice.config)
Automatic settings:
  Auto-detect: No
  Custom PAC script: [None]
Manual settings:
  Proxy server: [None]
  Bypass list: [None]
  Bypass local names: No

Original comment by [email protected] on 5 Jan 2010 at 10:37

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
It seems that I've found a workaround. It's just enough to set DESKTOP_SESSION 
env 
variable to kde. That's all. Switchy! works :-)

Hope this will help you.

Original comment by [email protected] on 5 Jan 2010 at 6:03

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
Setting DESKTOP_SESSION=kde does not change anything for me...

Original comment by [email protected] on 5 Jan 2010 at 6:10

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
@nbigaouette, @ydidukh
Thanks for the test, I think I identified the problem and hope the next release 
will 
solve it.

@mirlww, @samrayone
Please run these commands and post back with output:
> kreadconfig --file kioslaverc --group 'Proxy Settings' --key httpProxy
> gconftool-2 -g /system/http_proxy/host
> echo $DESKTOP_SESSION + $GNOME_DESKTOP_SESSION_ID + $KDE_FULL_SESSION

Original comment by [email protected] on 6 Jan 2010 at 1:52

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
@Mohammadhi

1.empty
2.empty
3.gnome + this-is-deprecated +

Original comment by [email protected] on 6 Jan 2010 at 2:31

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
@mirlww This doesn't reveal any problem.
Anyway, open this page (while Switchy is enabled):
"about:plugins"
Do you see a plugin named "Switchy! Chrome Extension 1.5" ?

Original comment by [email protected] on 6 Jan 2010 at 6:49

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
@Mohammadhi
Yes.
Below is the log generated when chrome start.
Before chrome start,the current proxy setting is in "Auto Switch Mode" specific 
by
Switchy! 1.3.5.1 in Chromium.

=============================npSwitchy.so(1.3.5.1)==============================
===
[07:09:58] [error] - Plugin Error @RuleManager.applyRules() > TypeError: Object 
#<an
HTMLEmbedElement> has no method 'writePacFile'
[07:09:58] [error] - Plugin Error @ProfileManager.applyProfile(Profile: 
{"name":"Auto
Swtich
Mode","proxyMode":"auto","proxyHttp":"","useSameProxy":true,"proxyHttps":"","pro
xyFtp":"","proxySocks":"","proxyExceptions":"","proxyConfigUrl":"undefined?12628
19244131","color":"auto","id":"","isAutomaticModeProfile":true})
> TypeError: Object #<an HTMLEmbedElement> has no method 'setProxy'
[07:09:58] [info] - Extension Info: v1.3.5.1
[07:09:58] [info] - Browser Info: 5.0 (X11; U; Linux i686; en-US) 
AppleWebKit/532.6
(KHTML, like Gecko) Chrome/4.0.266.0 Safari/532.6
[07:09:58] [success] - Plugin loaded successfully..
[07:09:58] [error] - Plugin not working properly!
[07:09:58] [success] - 'localStorage' supported..
[07:09:58] [success] - Wrote to local storage successfully..
====================================================================

=============================npSwitchy.so(1.3.0)================================
=====
[07:22:58] [error] - Plugin Error @RuleManager.applyRules() > TypeError: Object 
#<an
HTMLEmbedElement> has no method 'writePacFile'
[07:22:58] [info] - Extension Info: v1.3.5.1
[07:22:58] [info] - Browser Info: 5.0 (X11; U; Linux i686; en-US) 
AppleWebKit/532.6
(KHTML, like Gecko) Chrome/4.0.266.0 Safari/532.6
[07:22:58] [success] - Plugin loaded successfully..
[07:22:58] [success] - Plugin working properly..
[07:22:58] [success] - 'localStorage' supported..
[07:22:58] [success] - Wrote to local storage successfully..
========================================================================

As you can see,different version of npSwitchy.so in the same browser have 
different
behavior.
And the same npSwitchy.so in different version of chrome also have different 
behavior.

Hope this will help you.

Original comment by [email protected] on 6 Jan 2010 at 11:46

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
Switching from direct connection to a socks proxy failed on Linux!
When I switch, Switchy add "socks=IP" to HTTP proxy IP textfield!

I have 1.3.5.1.

Original comment by [email protected] on 7 Jan 2010 at 8:08

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
Would also be very happy about linux support.

Does not (yet) work for me with ubuntu 9.1.


Original comment by [email protected] on 8 Jan 2010 at 8:40

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
I have the same problem as @samrayone. The logs show that there are no method 
named 
'setProxy'.

Running the 3 commands suggested I have:

1- kreadconfig: not found (I run a Debian with gnome)
2- My configured proxy server IP
3- default + Default + (which is gnome)

Original comment by [email protected] on 8 Jan 2010 at 10:34

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
@omidmr Sorry for this bug, it's know and will be fixed in the next release 
(coming 
later today).

@helmut.rathgen I tested it on Ubuntu 9.10, and it works well. try it now!

@rogeriovnunes Please send me the error log, and also do this test:
- Open this page (while Switchy is enabled): "about:plugins"
Do you see a plugin named "Switchy! Chrome Extension 1.5" ?

Original comment by [email protected] on 8 Jan 2010 at 11:43

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
@mirlww
I compiled the plugin again on Ubuntu x86, please test it and tell me if it 
works.

Original comment by [email protected] on 8 Jan 2010 at 1:02

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
Yes, I see a plugin named Switch! Chrome Extension 1.5 activated.

My log output when I click the Switchy icon configured as direct connection 
with 
quick switch is this one:

[14:35:01] [info] - Extension Info: v1.3.5.1
[14:35:01] [info] - Browser Info: 5.0 (X11; U; Linux i686; en-US) 
AppleWebKit/532.5 
(KHTML, like Gecko) Chrome/4.0.249.43 Safari/532.5
[14:35:01] [success] - Plugin loaded successfully..
[14:35:01] [error] - Plugin not working properly!
[14:35:01] [success] - 'localStorage' supported..
[14:35:01] [success] - Wrote to local storage successfully..
[14:35:04] [error] - Plugin Error @ProfileManager.applyProfile(Profile: 
{"id":"direct","name":"[Direct Connection]","proxyMode":"direct"}) > TypeError: 
Object #<an HTMLEmbedElement> has no method 'setDirect'

And if I disable quickswitch and try to explicity choose another profile I 
named 
UFMG:

[14:38:26] [info] - Extension Info: v1.3.5.1
[14:38:26] [info] - Browser Info: 5.0 (X11; U; Linux i686; en-US) 
AppleWebKit/532.5 
(KHTML, like Gecko) Chrome/4.0.249.43 Safari/532.5
[14:38:26] [success] - Plugin loaded successfully..
[14:38:26] [error] - Plugin not working properly!
[14:38:26] [success] - 'localStorage' supported..
[14:38:26] [success] - Wrote to local storage successfully..
[14:38:32] [error] - Plugin Error @ProfileManager.applyProfile(Profile: 
{"name":"UFMG","proxyMode":"manual","proxyHttp":"150.164.255.201:3128","useSameP
roxy"
:true,"proxyHttps":"","proxyFtp":"","proxySocks":"","proxyExceptions":"<local>; 
localhost; 127.0.0.1; 
192.168.0.0/24","proxyConfigUrl":"","color":"green","id":"UFMG"}) > TypeError: 
Object 
#<an HTMLEmbedElement> has no method 'setProxy'

Original comment by [email protected] on 8 Jan 2010 at 4:40

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
Mandriva 2010.0
google-chrome 4.0.249.43

i try to setup switchy but now with kde 4.3.4 instead of kde 3.5.9

i use your last attached or 1.5.1 npSwitchy.so

i add a Privoxy profile
then
i click on "save" button
then
privoxy profile is well recorded
but
an empty <current profile> is added which causes trouble

i can manualy select "direct connection" and "Privoxy" profiles , no pb
but

if i want to use quickswitch with "direct connection" and "privoxy"
then
i activate quickswitch
i choose as first profile "privoxy" and as second profile "direct connection"
then
i click on "save" button
then
by default the <current profile" is selected

i click on switchy icon
then
i switch to "Privoxy" profile
then
i click  on switchy icon
then
i did not switch to "direct connection" nor "current profile"
but i stay with "privoxy" profile

addendum : no pb with Mandriva 2008.1 and kde 3.5.9 !



Original comment by [email protected] on 8 Jan 2010 at 4:59

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
when i try to delete <current profile>
then
switchy says it is deleted
but <current profile> is still there

Original comment by [email protected] on 8 Jan 2010 at 5:08

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
for those who want to initialize switchy settings
you can delete

/home/<user>/.config/google-chrome/Default/Local Storage/chrome-
extension_caehdcpeofiiigpdhbabniblemipncjj_0.localstorage

"caehdcpeofiiigpdhbabniblemipncjj" is the name of the folder of switchy in

/home/<user>/.config/google-chrome/Default/Extensions

Original comment by [email protected] on 8 Jan 2010 at 5:14

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
@Mohammadhi

The situation is almost same.Except that:
Each time after reboot,the Switchy! work at the first time of running Chrome.If 
I restart the browser,it 
will fail again.

I've tested npSwitchy.so(50kb) on both dev(4.0.288.1) and beta(4.0.249.43) 
version of Chrome.
=======================================

Although I see a plugin named "Switchy! Chrome Extension 1.5" in the 
"about:plugins" page,but there is no 
such plugin in the "Task Manager" of Chrome.Maybe this could tell something.
Here is the photo.



Original comment by [email protected] on 9 Jan 2010 at 7:44

Attachments:

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
A new version has been released, please test it and tell me if the problems are 
solved.

@episteme.promeneur, mirlww
Please try the plugin attached and send me the error log it generates.
The output log will be saved in '/var/tmp/switchy.log'.

Original comment by [email protected] on 10 Jan 2010 at 4:39

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024

Original comment by [email protected] on 10 Jan 2010 at 4:41

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
here is switchy.log contents :

NP_GetMIMEDescription()
GetValue( PluginName )
GetValue( PluginDescription )
NP_GetMIMEDescription()
GetValue( PluginName )
GetValue( PluginDescription )
NP_Initialize() ==============================
pluginCreate() ++++++++++++++++++++++++++++++
GetValue( PluginScriptableNPObject )
HasProperty( proxyMode )
GetProperty( proxyMode )

Original comment by [email protected] on 10 Jan 2010 at 5:18

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
error log contents :

[18:15:29] [info] - Extension Info: v1.4.1
[18:15:29] [info] - Browser Info: 5.0 (X11; U; Linux i686; en-US) 
AppleWebKit/532.5 
(KHTML, like Gecko) Chrome/4.0.249.43 Safari/532.5
[18:15:29] [success] - Plugin loaded successfully..
[18:15:29] [error] - Plugin not working properly!
[18:15:29] [success] - 'localStorage' supported..
[18:15:29] [success] - Wrote to local storage successfully..
[18:15:29] [error] - Plugin Error @ProfileManager.getConnections() > TypeError: 
Object #<an HTMLEmbedElement> has no method 'getConnections'
[18:16:15] [error] - Plugin Error @ProfileManager.getConnections() > TypeError: 
Object #<an HTMLEmbedElement> has no method 'getConnections'

Original comment by [email protected] on 10 Jan 2010 at 5:20

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
My bug(!), "socks=IP" problem, fixed :>
Thanks a lot ;)

Original comment by [email protected] on 10 Jan 2010 at 5:35

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
New version works even less here... :S
If I select my proxy, the icon becomes dark blue for ~5 seconds, then goes back 
to 
light gray-blue. Clicking on it shows the screenshot I'm attaching. In all 
cases, the 
proxy is never respected.
I've uninstalled the extension, deleted ~/.config/chromium/Default/Local\ 
Storage/chrome-extension_caehdcpeofiiigpdhbabniblemipncjj_0.localstorage and 
reinstalled.
Using chromium 4.0.289.0 (35439)

Original comment by [email protected] on 10 Jan 2010 at 6:10

Attachments:

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
@Mohammadhi

Some problems found:
1.When trying to swicth to the "Auto Switch Mode",the plugin(npSwitchy.so) will 
set the correct values to the textfield of 
"Autoconfiguration URL" then crash(disappear from the Task Manager of Chrome).
2.Add "New Rule" through the "Swithy! Options" page will make the "Save" and 
"Close" button out of function(no responses 
when pushing "Save" button,and pushing the "Close" won't close the "Swithy! 
Options" page).While it's OK through the popup 
menu(Quick Rule).

Original comment by [email protected] on 11 Jan 2010 at 5:20

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
This is the log file generated when trying to swicth to the "Auto Switch Mode"

Original comment by [email protected] on 11 Jan 2010 at 5:22

Attachments:

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
These are the logs generated when Chrome start with different conditions.

Original comment by [email protected] on 11 Jan 2010 at 5:56

Attachments:

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
Thanks guys for the logs, they help a lot.
But the problem is that I can't reproduce the issue!
I use Ubuntu 9.10 x86 Live CD to test Switchy, and it works just great!
What should I do to reproduce the bug? and anyone else can reproduce it?

Original comment by [email protected] on 12 Jan 2010 at 11:10

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
I'm trying out 1.4.2.1 in openSUSE 11.2 x86_64 and i get no errors in the log 
but
nothing happens.

I change profiles but it's always using a direct connection.

Original comment by hugo.m.palma on 13 Jan 2010 at 10:04

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
[deleted comment]

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
@Mohammadhi

I'm glad that Switchy! 1.4.2.1 works on Chrome(4.0.288.1) again,thanks for your 
hark 
work.


Original comment by [email protected] on 14 Jan 2010 at 5:12

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
Still not working for me. I will do the step-by-step configuration.
1- First I reset options, clear log and clik Diagnose:
Log shows:
[15:25:14] [info] - Extension Info: v1.4.2.1
[15:25:14] [info] - Browser Info: 5.0 (X11; U; Linux i686; en-US) 
AppleWebKit/532.5 
(KHTML, like Gecko) Chrome/4.0.249.43 Safari/532.5
[15:25:14] [success] - Plugin loaded successfully..
[15:25:14] [error] - Plugin not working properly!
[15:25:14] [success] - 'localStorage' supported..
[15:25:14] [error] - Can't write to local storage!

2- Then I go to Profile configuration and change <Default Profile> to a 
custom-made 
one. I save and reload the log.
Log shows:
[15:28:22] [error] - Plugin Error @ProfileManager.getConnections() > TypeError: 
Object #<an HTMLEmbedElement> has no method 'getConnections'

3- I try to change to the recently created profile. The switchy icon briefly 
changes 
its color and then come back to normal.
Log shows:
[15:29:21] [error] - Plugin Error @ProfileManager.applyProfile(Profile: 
{"name":"UFMG","proxyMode":"manual","proxyHttp":"150.164.255.201:3128","useSameP
roxy"
:true,"proxyHttps":"","proxyFtp":"","proxySocks":"","socksVersion":4,"proxyExcep
tions
":"","proxyConfigUrl":"","color":"blue","id":"UFMG"}) > TypeError: Object #<an 
HTMLEmbedElement> has no method 'setProxy'

4- I try to revert to Direct Connection.
Log shows:
[15:31:03] [error] - Plugin Error @ProfileManager.applyProfile(Profile: 
{"id":"direct","name":"[Direct 
Connection]","proxyMode":"direct","color":"inactive"}) 
> TypeError: Object #<an HTMLEmbedElement> has no method 'setDirect'

In other words, nothing that I try to do actually works. As I said before, my 
system 
is a Debian Lenny with gnome as my window manager.

Original comment by [email protected] on 18 Jan 2010 at 5:32

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
Just to add up, if I delete the local storage file, the "Can't write to local 
storage!" error stops happening, but all the others persist.

Original comment by [email protected] on 18 Jan 2010 at 6:19

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
Have you checked if ~/.kde exists? In my computer I had only ~/.kde4 and when I 
made 
a symlink, almost all problems disappeared (Chrome bug 
http://code.google.com/p/chromium/issues/detail?id=29927).

Actaully it seems that only one problem is still here (error log):
[00:23:43] [error] - Plugin Error @RuleManager.saveAutoPacScript() > Error Code 
(Can't open file for writing 
[/home/dragonjake/.config/chromium/Default/Extensions/caehdcpeofiiigpdhbabniblem
ipncj
j/1.4.2.1/plugins/npSwitchy.so --lang=cs --plugin-data-
dir=/home/dragonjake/.config/chromium/Default --
channel=25757.0xad907c10.4977132auto.pac])

I'm trying to use the Auto Switch feature. This error message is ridiculous in 
view 
of proxy config nature.

Original comment by jkrcma on 18 Jan 2010 at 11:30

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
I have same problem for gnome. Auto Switch feature not working.

Error log :

[error] - Plugin Error @RuleManager.saveAutoPacScript() > Error Code (Can't 
open file 
for writing [/home/levent/.config/google-
chrome/Default/Extensions/caehdcpeofiiigpdhbabniblemipncjj/1.4.2.1/plugins/npSwi
tchy.
so --lang=tr --plugin-data-dir=/home/levent/.config/google-chrome/Default --
channel=3189.0xb777cc38.1310983024 --enable-crash-
reporter=3FED7983320351D1C41F74DA29B1384D,Ubuntu 9.auto.pac])

Original comment by [email protected] on 19 Jan 2010 at 12:43

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
Firefox 3.5 follows switchy's proxy settings which is undesirable.  Is this by 
design 
or a bug?

Ubuntu 9.10 x64

Original comment by [email protected] on 22 Jan 2010 at 4:18

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
still not work on linux
the fellowing is the error log, wish it can help

[10:48:49] [info] - Extension Info: v1.5.0.1
[10:48:49] [info] - Browser Info: 5.0 (X11; U; Linux i686; en-US) 
AppleWebKit/532.8 
(KHTML, like Gecko) Chrome/4.0.302.2 Safari/532.8
[10:48:49] [error] - Plugin not loaded!
[10:48:58] [error] - Plugin Error @RuleManager.saveAutoPacScript() > TypeError: 
Object 
#<an HTMLEmbedElement> has no method 'writeAutoPacFile'
[10:48:58] [error] - Plugin Error @ProfileManager.applyProfile(Profile: 
{"name":"Auto 
Swtich 
Mode","proxyMode":"auto","proxyHttp":"","useSameProxy":true,"proxyHttps":"","pro
xyFt
p":"","proxySocks":"","socksVersion":4,"proxyExceptions":"","proxyConfigUrl":"fi
le:///h
ome/sean/.config/google-
chrome/Default/Extensions/caehdcpeofiiigpdhbabniblemipncjj/1.5.0.1/plugins/Switc
hy
Auto.pac?1264387736682","color":"auto-blue","id":"","isAutomaticModeProfile":tru
e}) 
> TypeError: Object #<an HTMLEmbedElement> has no method 'setProxy'
[10:49:06] [error] - Plugin Error @ProfileManager.applyProfile(Profile: 
{"name":"tor","proxyMode":"manual","proxyHttp":"127.0.0.1:8118","useSameProxy":t
r
ue,"proxyHttps":"","proxyFtp":"","proxySocks":"","socksVersion":4,"proxyExceptio
ns":"lo
calhost; 127.0.0.1; 
<local>;10.1.*.*","proxyConfigUrl":"","color":"green","id":"tor"}) > 
TypeError: Object #<an HTMLEmbedElement> has no method 'setProxy'

Original comment by [email protected] on 25 Jan 2010 at 2:52

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
Thank you all for your valuable feedback.
Please refer to this page (http://code.google.com/p/switchy/wiki/LinuxSupport) 
for more info about 
Linux support and how to diagnose and fix problems.

Original comment by [email protected] on 25 Jan 2010 at 2:57

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
Thanx Mohammadhi for your work. I was able to make switchy work here.

It never worked: even if switchy did not reported errors, setting the proxy 
would 
yield nothing. Chromium always used a direct connection.

That was when it worked. Running from command line, I saw twice a double free 
corruption...  I also had a "<Current Profile>" hanging around. I wanted to 
clear 
everything: I uninstalled, removed the file ~/.config/chromium/Default/Local\  
Storage/chrome-extension_caehdcpeofiiigpdhbabniblemipncjj_0.localstorage and 
reinstalled but that did not worked. I tried again, but forgot to uninstall 
first. By 
deleting the config file I got rid of <Current Profile> and all errors in the 
log. 
But the procy would just not be set... 

Then I realized that ArchLinux uses ~/.kde4, not ~/.kde. So I symlinked one to 
the 
other: ln -s ~/.kde4 ~/.kde, restarted chromium and bang, I have switchy 
working!! 
Thanx jkrcma! ;)

Note also that even though I use KDE, the variable KDE_FULL_SESSION was empty. 
I have 
exported the value:
export KDE_FULL_SESSION=true
before launching chromium from the command line and now it works. I did not 
tried wit 
h the "default" empty value. Will report back.

@Mohammadhi: Maybe you can add a note on the wiki about the ~/.kde4 vs ~/.kde?

Original comment by [email protected] on 25 Jan 2010 at 4:07

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
Ok I just checked without KDE_FULL_SESSION and switchy did not liked it.

Here is the log:

[23:10:15] [error] - Invalid rule list url: ()
[23:10:15] [info] - Extension Info: v1.5.0.1
[23:10:15] [info] - Browser Info: 5.0 (X11; U; Linux i686; en-US) 
AppleWebKit/532.9 
(KHTML, like Gecko) Chrome/4.0.304.0 Safari/532.9
[23:10:51] [error] - Plugin Error @ProfileManager.applyProfile(Profile: 
{"name":"OptimusPrime","proxyMode":"manual","proxyHttp":"localhost:48628","useSa
mePro
xy":true,"proxyHttps":"","proxyFtp":"","proxySocks":"","socksVersion":4,"proxyEx
cepti
ons":"localhost; 127.0.0.1; 
<local>","proxyConfigUrl":"","color":"blue","id":"OptimusPrime"}) > TypeError: 
Object 
#<an HTMLEmbedElement> has no method 'setProxy'
[23:11:17] [error] - Plugin Error @ProfileManager.applyProfile(Profile: 
{"name":"OptimusPrime","proxyMode":"manual","proxyHttp":"localhost:48628","useSa
mePro
xy":true,"proxyHttps":"","proxyFtp":"","proxySocks":"","socksVersion":4,"proxyEx
cepti
ons":"localhost; 127.0.0.1; 
<local>","proxyConfigUrl":"","color":"blue","id":"OptimusPrime"}) > TypeError: 
Object 
#<an HTMLEmbedElement> has no method 'setProxy'
[23:11:37] [error] - Plugin Error @ProfileManager.getConnections() > TypeError: 
Object #<an HTMLEmbedElement> has no method 'getConnections'
[23:11:40] [error] - Plugin not loaded!

[23:12:49] [info] - Extension Info: v1.5.0.1
[23:12:49] [info] - Browser Info: 5.0 (X11; U; Linux i686; en-US) 
AppleWebKit/532.9 
(KHTML, like Gecko) Chrome/4.0.304.0 Safari/532.9
[23:12:49] [error] - Plugin not loaded!

Original comment by [email protected] on 25 Jan 2010 at 4:12

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
Having problems loading plugin in Debian. Same problem logs showed before. 
chrome_debug.log now attached.

Original comment by [email protected] on 25 Jan 2010 at 11:01

Attachments:

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
@jkrcma Nice to know that this trick solved the problems! Thank you!
@jkrcma, leventyild: This issue is fixed now, check the new version please.
@zivester Maybe that's because Firefox is configured to use system proxy, 
change its 
proxy configuration to Manual Config or Direct and everything should be OK.

Original comment by [email protected] on 25 Jan 2010 at 10:09

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
Latest version is working correctly under Ubuntu 9.10/32

Original comment by [email protected] on 25 Jan 2010 at 10:50

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
@nbigaouette May you send me the Chrome error log when Switchy plugin isn't 
loaded (the 
last case)?
And about the wiki note, I'll add it now, thank you.

@rogeriovnunes The log doesn't reveal any problem in loading the plugin! I'm 
going to 
install Debian and test it, which version do you use?

Original comment by [email protected] on 25 Jan 2010 at 11:07

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
@sarmacid what version of your chrome?

Original comment by [email protected] on 26 Jan 2010 at 3:37

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
It seems not work in my machine(Ubuntu 9.10/32, Switchy! 1.5.0.3). There are two
types of error logs:

1. The error log when Chrome start:

[17:50:32] [info] - Extension Info: v1.5.0.3
[17:50:32] [info] - Browser Info: 5.0 (X11; U; Linux i686; en-US) 
AppleWebKit/532.8
(KHTML, like Gecko) Chrome/4.0.302.2 Safari/532.8
[17:50:37] [error] - Plugin Error @ProfileManager.getConnections() > TypeError:
Object #<an HTMLEmbedElement> has no method 'getConnections'
[17:50:38] [error] - Plugin not loaded!

2. the error log when clicking "Auto Switch Mode" mene item:

[17:50:59] [error] - Plugin Error @RuleManager.saveAutoPacScript() > TypeError:
Object #<an HTMLEmbedElement> has no method 'writeAutoPacFile'
[17:50:59] [error] - Plugin Error @ProfileManager.applyProfile(Profile: 
{"name":"Auto
Swtich
Mode","proxyMode":"auto","proxyHttp":"","useSameProxy":true,"proxyHttps":"","pro
xyFtp":"","proxySocks":"","socksVersion":4,"proxyExceptions":"","proxyConfigUrl"
:"undefined?1264499457910","color":"auto-blue","id":"","isAutomaticModeProfile":
true})
> TypeError: Object #<an HTMLEmbedElement> has no method 'setProxy'
[17:51:01] [error] - Plugin not loaded!

Original comment by [email protected] on 26 Jan 2010 at 10:09

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
Mandriva 2010.0
kde 4.3.4
chrome 4.0.249.43
switchy 1.5.0.5

in a user text console i type

ln -s ~/.kde4 ~/.kde
KDE_FULL_SESSION=true

then

i restart the pc
then
i add a privoxy profile
then
i can choose between "privoxy" and " direct connexion" and that'all

- i ask to start with the last used profile (privoxy) then chrome start with 
"direct 
connexion" profile
- i ask to start with "privoxy" profile then chrome starts with "direct 
connexion" 
profile
- whne using quickswitch chrome starts with "direct connexion" then i click to 
switch 
to " privoxy" (ok) thne i click to switch to "direct connexion" then i stay 
with 
privoxy" profile

see switchy error log file and chrome log file

Original comment by [email protected] on 26 Jan 2010 at 1:21

Attachments:

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
I'm observing exactly the same issue as @kynix.leo.

Is there a way to downgrade to previous version of Switchy! that works for me 
just 
fine?

Original comment by [email protected] on 26 Jan 2010 at 4:55

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
I'm using Debian Stable version 5.03. I have only installed the first CD (base 
system 
+ gnome desktop).

Original comment by [email protected] on 27 Jan 2010 at 10:12

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
Yeah, Chrome ~/.kde bug is very discreet, glad to help.

I tested the new version. I usually don't shutdown my laptop so Chrome is 
running for 
circa 3 days now. I mentioned the Switchy! had failed (error log similar to 
@kynix.leo) and manually reloaded it. After that it started working for me even 
with 
Auto Switch feature! Thanks Mohammadhi ;)

I personally dislike the need of tab restarting (or pressing F5 many many 
times) 
after the manual proxy change. But it may be something in Chrome.

Original comment by jkrcma on 27 Jan 2010 at 5:32

from switchy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
One more piece of knowledge. I've restarted KDE after upgrade and freshly 
launched 
Chrome. Switchy! was in failed state immediately. I Deactivated, activated, 
nothing 
... and twice again. After three tries it worked. Error log same as @kynix.leo 
again.

Original comment by jkrcma on 27 Jan 2010 at 5:52

from switchy.

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.