old_contents: # -*- coding: utf-8 -*-
  
  ## \package globals.cmds
  #  
  #  Retrieves & defines paths to commands that this app uses
  
  # MIT licensing
  # See: LICENSE.txt
  
  
  import os
  from subprocess     import PIPE
  from subprocess     import Popen
  from subprocess     import STDOUT
  
  from globals.debug  import pDebug
  from globals.system import PY_VER_MAJ
  
  
  def GetCMD(cmdname):
      output, returncode = Popen((u'which', cmdname,), stdout=PIPE, stderr=STDOUT).communicate()
      
      # NOTE: Not sure why '\n' is appended from Popen command
      output = output.strip(u'\n')
      
      if PY_VER_MAJ < 3:
          output = unicode(output)
      
      if not returncode and os.access(output, os.X_OK):
          return output
      
      pDebug(u'Failed to find command: {}'.format(cmdname))
  
new_contents: # -*- coding: utf-8 -*-
  
  ## \package globals.cmds
  #  
  #  Retrieves & defines paths to commands that this app uses
  
  # MIT licensing
  # See: LICENSE.txt
  
  
  import os
  from subprocess     import PIPE
  from subprocess     import Popen
  from subprocess     import STDOUT
  
  from globals.debug  import pDebug
  from globals.system import PY_VER_MAJ
  
  
  def GetCMD(cmdname):
      output, returncode = Popen((u'which', cmdname,), stdout=PIPE, stderr=STDOUT).communicate()
      
      # NOTE: Not sure why '\n' is appended from Popen command
      output = output.strip(u'\n')
      
      if PY_VER_MAJ < 3:
          output = unicode(output)
      
      if not returncode and os.access(output, os.X_OK):
          return output
      
      pDebug(u'Failed to find command: {}'.format(cmdname))
  
  
  CMD_xrandr = GetCMD(u'xrandr')
  
subject: Add CMD_xrandr