sciancio / connectionmanager2

Simple GUI app for Gnome 3 that provides a menu for initiating SSH/Telnet connections
60 stars 45 forks source link

Connection Manager Settings window doesn't show up #5

Closed luizsoares closed 12 years ago

luizsoares commented 12 years ago

Title pretty much says it all... how do I collect information to help you debug this?

luizsoares commented 12 years ago

I checked 1st virtual console where I started X and there I see a syntax error at line 134:

def read(self):
    configuration = ""
    if (os.path.exists(self.configuration_file) and 
        os.path.isfile(self.configuration_file)):

        in_file = open(self.configuration_file,"r")
        configuration = self.custom_decode(json.load(in_file))
        in_file.close()

    else:

134: print "Configuration file not exists" configuration = self.custom_decode(json.loads('{"Root": []}'))

    return configuration
sciancio commented 12 years ago

Hi, probably you have python linked to python3 executable. Can you launch, from shell, the following command?

python2 /home//.local/share/gnome-shell/extensions/connectionmanager@ciancio.net/connmgr.py

with = user on your linux box.

If it's work correctly, then the problem is version python (it is required version 2). You can fix this bug substituting in extension.js file, only line 89 like shown:

originale line 89: Util.spawnCommandLine('python ' + this._prefFile);

new line 89: Util.spawnCommandLine('python2 ' + this._prefFile);

and reload extension.

I think to fix this bug in the next release.

luizsoares commented 12 years ago

Probably I'm missing some package here...

luizsoares commented 12 years ago

ok arch users need python2-gconf. Now I can run your command no problems, however the instance started by gnome-shell seems to ignore my alteration in the shebang line to /usr/bin/env python2, is it cached somewhere?

sciancio commented 12 years ago

You can reload extension. You can try these ways:

On 12/07/2011 07:05 PM, luizsoares wrote:

ok arch users need python2-gconf. Now I can run your command no problems, however the instance started by gnome-shell seems to ignore my alteration in the shebang line to /usr/bin/env python2, is it cached somewhere?


Reply to this email directly or view it on GitHub: https://github.com/sciancio/connectionmanager/issues/5#issuecomment-3050873

luizsoares commented 12 years ago

Ah I understand it now. The CM icon on the panel is controlled by extension.js and not your python script. I changed the invocation on line 89 to python2, problem solved. Thanks!

ALSai commented 12 years ago

Hi,

On archlinux, this still doesn't work.

I have to change line 114 of extension.js file to replace python by python2. Obviously, calling python .... does'nt work but don't catch any Exception.

Can't you do the reverse order? (Try python2 and if it fails, catch the exception to launch python?)

masteinhauser commented 11 years ago

I'm on Arch Linux and was hitting the same issue that @ALSai was hitting. I made the change to try python2 first and then fall back to python which fixed my problem. Just a thought, but it seems like that should be fine to do.

sciancio commented 11 years ago

Hi masteinhauser, have you tried code on github or you have installed it from extensions.gnome.org site? The code on github is newer and it would be works correctly. On e.g.o. site are pending review.

masteinhauser commented 11 years ago

Ah, okay. I installed it from extensions.gnome.org which would explain it. Thanks for commenting back!

arfett commented 11 years ago

I have the current version of Connection Manager from the gnome extensions website and the Settings menu will not open for me. Running Arch Linux x64 with gnome 3.6. It wasn't working initially after installing and I installed the python2-gconf package which made it work and then for no apparent reason (was just web browsing) it stopped opening again. How can I troubleshoot why it won't open?