sciancio / connectionmanager2

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

Crashes on Ubuntu 13.10 with gnome shell 3.8.4 #41

Closed ghost closed 9 years ago

ghost commented 10 years ago

Python crashes when adding host or folder

My environment:

Ubuntu 13.10 saucy GNOME Shell 3.8.4 Python 2.7.5+

/var/log/syslog : LPersa kernel: [ 3967.061547] traps: python2[5365] trap int3 ip:7fe86c58c3d9 sp:7ffff58a1390 error:0

Adrian30 commented 10 years ago

I have same problem. This is the output when I try to add App or SubMenu using command line:

~/.local/share/gnome-shell/extensions/connectionmanager2@ciancio.net$ python2 connmgr.py

(Connection Manager:7181): GLib-GIO-ERROR **: Settings schema 'org.gnome.Terminal.ProfilesList' is not installed.

I have clean installation of Ubuntu 13.10 64 bits with gnome shel 3.8.4.

Please Help us, I used a lot this great extension.

gerdriesselmann commented 10 years ago

Count me in, same here.

oertels commented 10 years ago

+1

boekkooi commented 10 years ago

+1

luluprat commented 10 years ago

same in ubuntu 14.04 64 bits :-(

ghost commented 10 years ago

+1. Using Ubuntu 14.04 with Gnome 3.10. Installed Connection Manager. And 'Add Host' failed with this: ~/.local/share/gnome-shell/extensions/connectionmanager2@ciancio.net$ python2 connmgr.py Configuration file not exists (Connection Manager:3975): GLib-GIO-ERROR **: Settings schema 'org.gnome.Terminal.ProfilesList' is not installed Trace/breakpoint trap (core dumped)

Adrian30 commented 10 years ago

New Ubuntu 14.04 Gnome-Shell 13.10 solves problem,

Remember modify your shell-version in metadata.json file located in ~/.local/share/gnome shell/extensions/connectionmanager2@ciancio.net$

{ "shell-version": ["3.10"], "version": "0.8.2", "uuid": "connectionmanager2@ciancio.net", "name": "Connection Manager", "description": "Simple GUI app for Gnome 3 that provides a menu for initiating SSH/Telnet/Custom Apps connections.", "url": "https://github.com/sciancio/connectionmanager2", "original-authors": "Stefano Ciancio", "sw_bin": "connmgr.py", "sw_config": ".connmgr" }

Works for me! however I prefer the old version of gnome-shell

luluprat commented 10 years ago

i make the change in metadata.json but it still crash ...

2014-04-25 17:45 GMT+02:00 Adrian30 notifications@github.com:

New Ubuntu 14.04 Gnome-Shell 13.10 solves problem,

Remember modify your shell-version in metadata.json file located in ~/.local/share/gnome shell/extensions/connectionmanager2@ciancio.net$

{ "shell-version": ["3.10"], "version": "0.8.2", "uuid": "connectionmanager2@ciancio.net", "name": "Connection Manager", "description": "Simple GUI app for Gnome 3 that provides a menu for initiating SSH/Telnet/Custom Apps connections.", "url": "https://github.com/sciancio/connectionmanager2", "original-authors": "Stefano Ciancio", "sw_bin": "connmgr.py", "sw_config": ".connmgr" }

Works for me! however I prefer the old version of gnome-shell

— Reply to this email directly or view it on GitHubhttps://github.com/sciancio/connectionmanager2/issues/41#issuecomment-41407442 .

lgallard commented 10 years ago

Same behavior here, after changing "shell-version": ["3.10"] to "shell-version": ["3.10","3.10.4"] in metadata.json and rebooting, it loaded ConnectionManager extension, but trying to add or edit any host it crashes with error:

(Connection Manager:2669): GLib-GIO-ERROR **: Settings schema 'org.gnome.Terminal.ProfilesList' is not installed

I have Ubuntu 14-04 LTS, and Gnome 3.10.4.

pengYou commented 9 years ago

In Ubuntu 14.04 when adding or editing a host entry from the Connection Manager Settings the Connection Manager GUI crashes.

This seems to be due to a missing schema for key org.gnome.Terminal.ProfilesList in combination with the following code fragment in connectionmanager2@ciancio.net/connmgr.py (version 0.8.2):

701         profilesList = Gio.Settings.new("org.gnome.Terminal.ProfilesList").get_value("list")
702
703         Gio.Settings.new("org.gnome.Terminal.ProfilesList").get_value("list")
704
705         entry3 = Gtk.ComboBoxText()
706         for index, item in enumerate(profilesList):
707             profile = Gio.Settings.new_with_path("org.gnome.Terminal.Legacy.Profile",
708                "/org/gnome/terminal/legacy/profiles:/:"+item+"/")
709             profileName = profile.get_string("visible-name")

An intermediary yet ugly work-around that did it for me is the following:

  1. Download the gschema XML file for gnome-terminal and save it under /usr/share/glib-2.0/schemas/
$ cd /usr/share/glib-2.0/schemas/ && sudo wget https://raw.githubusercontent.com/GNOME/gnome-terminal/master/src/org.gnome.Terminal.gschema.xml
  1. In the XML file you downloaded find the commented child "profiles" for schema org.gnome.Terminal.ProfilesList and uncomment it, so it looks like this:
<child name="profiles" schema="org.gnome.Terminal.ProfilesList" />
  1. Compile the gschema files
$ sudo glib-compile-schemas /usr/share/glib-2.0/schemas/

Hope that helps pY

Adrian30 commented 9 years ago

Awesome, after trying so many times to solve this problem, Pengyou finally makes available the solution.

Works for me, thank you very much.

ghost commented 9 years ago

Works for me too. It's been quite some time that this was bugging me. Thank you pengYou !

sciancio commented 9 years ago

Hi all, I think the problem is in the gnome-terminal version installed from Ubuntu. I have installed a fresh Gnome Ubuntu 14.04 with gnome 3.10 and I have found 3.6.2 version of gnome-terminal! This version doesn't support dconf (supported from 3.8). So, you can apply the patch proposed by pengYou (without profiles list features) or, better, upgrade gnome-terminal to correct version.

However I'll add the patch proposed by boekkool to check and avoid crash on Ubuntu with a mix of version packages.