old_contents: from gi.repository import Gtk
  import tempfile
  import os.path
  
  version = "0.2.2"
  
  # Define default port numbers
  default_socks_port = 19050
  default_control_port = 19051
  
  # Tor process descriptor placeholder
  tor_process = None
  
  # Tor logfile location placeholder
  tor_logfile_dir = tempfile.mkdtemp()
  tor_logfile_location = os.path.join(tor_logfile_dir, "tor_log")
  
  # User preferences location placeholder
  home_dir = os.path.expanduser("~")
  prefs_dir = os.path.join(home_dir, ".local", "share", "torgtk")
  prefs_file = os.path.join(prefs_dir, "config")
  
  # Define object dictionary
  objs = { }
  objs["menuMain"] = Gtk.Menu()
  
  # Define error message types
  InfoBox = Gtk.MessageType.INFO
  ErrorBox = Gtk.MessageType.ERROR
  
new_contents: from gi.repository import Gtk
  import tempfile
  import os.path
  import platform
  
  version = "0.2.2"
  
  # Define default port numbers
  default_socks_port = 19050
  default_control_port = 19051
  
  # Tor process descriptor placeholder
  tor_process = None
  
  # Tor logfile location placeholder
  tor_logfile_dir = tempfile.mkdtemp()
  tor_logfile_location = os.path.join(tor_logfile_dir, "tor_log")
  
  # User preferences location placeholder
  if platform.system() == "Windows":
  	prefs_dir = os.path.join(os.getenv("APPDATA"), "torgtk")
  	prefs_file = os.path.join(prefs_dir, "config")
  else:
  	home_dir = os.path.expanduser("~")
  	prefs_dir = os.path.join(home_dir, ".local", "share", "torgtk")
  	prefs_file = os.path.join(prefs_dir, "config")
  
  # Define object dictionary
  objs = { }
  objs["menuMain"] = Gtk.Menu()
  
  # Define error message types
  InfoBox = Gtk.MessageType.INFO
  ErrorBox = Gtk.MessageType.ERROR
  
subject: Add OS detection (mainly Windows vs Unix) to preferences directory selection