
    Vh\
                     v    d dl mZmZmZ eZdZdZdZd dl	m
Z
 d dlmZ  G d de
      Zd	 Zed
k(  r e        yy)    )absolute_importdivisionprint_functionak  
module: gconftool2_info
author:
  - "Alexei Znamensky (@russoz)"
short_description: Retrieve GConf configurations
version_added: 5.1.0
description:
  - This module allows retrieving application preferences from the GConf database, with the help of C(gconftool-2).
extends_documentation_fragment:
  - community.general.attributes
  - community.general.attributes.info_module
options:
  key:
    description:
      - The key name for an element in the GConf database.
    type: str
    required: true
seealso:
  - name: C(gconftool-2) command manual page
    description: Manual page for the command.
    link: https://help.gnome.org/admin//system-admin-guide/2.32/gconf-6.html.en
  - name: gconf repository (archived)
    description: Git repository for the project. It is an archived project, so the repository is read-only.
    link: https://gitlab.gnome.org/Archive/gconf
z
- name: Get value for a certain key in the database.
  community.general.gconftool2_info:
    key: /desktop/gnome/background/picture_filename
  register: result
z
value:
  description:
    - The value of the property.
  returned: success
  type: str
  sample: Monospace 10
version:
  description: Version of gconftool-2.
  type: str
  returned: always
  sample: "3.2.6"
  version_added: 10.0.0
)ModuleHelper)gconftool2_runnerc            	       V    e Zd ZdgZ e e eddd            d      ZdZd Zd	 Zy
)GConftoolInfokeystrTF)typerequiredno_log)r
   )argument_specsupports_check_modec                     t        | j                  d      | _        | j                  d      5 }|j                         \  }}}|j	                         | j
                  _        d d d        y # 1 sw Y   y xY w)NT)check_rcversion)r   modulerunnerrunstripvarsr   selfctxrcouterrs        u/home/dcms/DCMS/lib/python3.12/site-packages/ansible_collections/community/general/plugins/modules/gconftool2_info.py__init_module__zGConftoolInfo.__init_module__H   sZ    'dC[[# 	,s779LBS #		DII	, 	, 	,s   4A++A4c                     | j                   j                  ddg      5 }|j                  d      \  }}}|r|sd n|j                         | j                  _        d d d        y # 1 sw Y   y xY w)Nstater
   )
args_orderget)r"   )r   contextr   rstripr   valuer   s        r   __run__zGConftoolInfo.__run__N   sd    [[  We,< = 	H777/LBS&)#d3::<DIIO	H 	H 	Hs   <A$$A-N)	__name__
__module____qualname__output_paramsdictr   use_old_vardictr    r(        r   r	   r	   >   s>    GM%$u=
 !	F O,Hr0   r	   c                  ,    t         j                          y )N)r	   executer/   r0   r   mainr3   T   s    r0   __main__N)
__future__r   r   r   r   __metaclass__DOCUMENTATIONEXAMPLESRETURNHansible_collections.community.general.plugins.module_utils.module_helperr   Eansible_collections.community.general.plugins.module_utils.gconftool2r   r	   r3   r)   r/   r0   r   <module>r<      sX    A @4
 b cHL H, zF r0   