#NEWLINE# @ classmethod #NEWLINE# def get_linux_file_explorer( cls ) : #NEWLINE# #INDENT# if ( cls . _explorer is None ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# output = subprocess . check_output ( [ 'xdg-mime' , 'query' , 'default' , 'inode/directory' ] ) . decode ( ) #NEWLINE# #UNINDENT# except subprocess . CalledProcessError : #NEWLINE# #INDENT# output = '' #NEWLINE# #UNINDENT# if output : #NEWLINE# #INDENT# explorer = output . splitlines ( ) [ 0 ] . replace ( '.desktop' , '' ) . replace ( '-folder-handler' , '' ) . split ( '.' ) [ ( - 1 ) ] . lower ( ) #NEWLINE# FileSystemContextMenu . _explorer = explorer #NEWLINE# return explorer #NEWLINE# #UNINDENT# return '' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return cls . _explorer