Changeset 818 for kde


Ignore:
Timestamp:
Feb 2, 2010, 11:53:23 AM (15 years ago)
Author:
joergs
Message:

specific test for NoDisplay

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kde/kreadconfig/kread-desktopfile.py

    r817 r818  
    33
    44"""
    5 kreadconfig.py dumps KDE configuration files.
     5kread-desktopfile.py dumps KDE desktop files.
    66It is usefull for debugging KDE Kiosks settings,
    77where multiple config files are merged into the final configuration. 
    88
    9 The directory hierarchie for config files
     9The directory hierarchie for resource files
    1010is based on the KDEDIRS environment variable
    1111and can be made visible by  the command
    1212kde4-config --path config
    13 
    14 kreadconfig has a similiar purpose,
    15 but is limited to a single value
    1613"""
    1714
     
    5552        immutaleString = "[$i]"
    5653      try:
    57         print i + immutaleString, "=", config.readEntry( i ).toUtf8()
     54        #print i + immutaleString, "=", config.readEntry( i ).toUtf8()
     55        print i + immutaleString, "=", config.readEntry( i )
    5856      except AttributeError:
    5957      # ignore when readEntry does not exist
     
    118116
    119117
    120 print "filename:  ", config.fileName()
    121 print "name:      ", config.readName()
    122 print "icon:      ", config.readIcon()
    123 print "nodisplay: ", config.noDisplay()
     118print "filename:                        ", config.fileName()
     119print "readName():                      ", config.readName()
     120print 'readEntry( "Name" ):             ', config.group("Desktop Entry").readEntry( "Name" )
     121print "icon:                            ", config.readIcon()
     122print "noDisplay():                     ", config.noDisplay()
     123print 'readEntry( "NoDisplay" ):        ', config.group("Desktop Entry").readEntry( "NoDisplay" )
     124print 'readEntry( "NoDisplay", True ):  ', config.group("Desktop Entry").readEntry( "NoDisplay", True ).toString()
     125print 'readEntry( "NoDisplay", False ): ', config.group("Desktop Entry").readEntry( "NoDisplay", False ).toString()
    124126
    125127print
Note: See TracChangeset for help on using the changeset viewer.