Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove unused gnome session code #172

Merged
merged 1 commit into from
Jul 23, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 0 additions & 27 deletions terminatorlib/terminator.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ class Terminator(Borg):
origcwd = None
dbus_path = None
dbus_name = None
gnome_client = None
debug_address = None
ibus_running = None

Expand Down Expand Up @@ -96,8 +95,6 @@ def prepare_attributes(self):
self.style_providers = []
if not self.doing_layout:
self.doing_layout = False
if self.gnome_client is None:
self.attempt_gnome_client()
self.connect_signals()

def connect_signals(self):
Expand All @@ -119,30 +116,6 @@ def set_dbus_data(self, dbus_service):
self.dbus_name = dbus_service.bus_name.get_name()
self.dbus_path = dbus_service.bus_path

def attempt_gnome_client(self):
"""Attempt to find a GNOME Session to register with"""
try:
from gi.repository import Gnome
self.gnome_program = Gnome.init(APP_NAME, APP_VERSION) # VERIFY FOR GTK3
self.gnome_client = Gnome.Ui.master_client() # VERIFY FOR GTK3
self.gnome_client.connect_to_session_manager()
self.gnome_client.connect('save-yourself', self.save_yourself)
self.gnome_client.connect('die', self.die)
dbg('GNOME session support enabled and registered')
except (ImportError, AttributeError):
self.gnome_client = False
dbg('GNOME session support not available')

def save_yourself(self, *args):
"""Save as much state as possible for the session manager"""
dbg('preparing session manager state')
# FIXME: Implement this

def die(self, *args):
"""Die at the hands of the session manager"""
dbg('session manager asked us to die')
# FIXME: Implement this

def get_windows(self):
"""Return a list of windows"""
return self.windows
Expand Down