Changeset 818 for kde/kreadconfig/kread-desktopfile.py
- Timestamp:
- Feb 2, 2010, 11:53:23 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kde/kreadconfig/kread-desktopfile.py
r817 r818 3 3 4 4 """ 5 kread config.py dumps KDE configurationfiles.5 kread-desktopfile.py dumps KDE desktop files. 6 6 It is usefull for debugging KDE Kiosks settings, 7 7 where multiple config files are merged into the final configuration. 8 8 9 The directory hierarchie for configfiles9 The directory hierarchie for resource files 10 10 is based on the KDEDIRS environment variable 11 11 and can be made visible by the command 12 12 kde4-config --path config 13 14 kreadconfig has a similiar purpose,15 but is limited to a single value16 13 """ 17 14 … … 55 52 immutaleString = "[$i]" 56 53 try: 57 print i + immutaleString, "=", config.readEntry( i ).toUtf8() 54 #print i + immutaleString, "=", config.readEntry( i ).toUtf8() 55 print i + immutaleString, "=", config.readEntry( i ) 58 56 except AttributeError: 59 57 # ignore when readEntry does not exist … … 118 116 119 117 120 print "filename: ", config.fileName() 121 print "name: ", config.readName() 122 print "icon: ", config.readIcon() 123 print "nodisplay: ", config.noDisplay() 118 print "filename: ", config.fileName() 119 print "readName(): ", config.readName() 120 print 'readEntry( "Name" ): ', config.group("Desktop Entry").readEntry( "Name" ) 121 print "icon: ", config.readIcon() 122 print "noDisplay(): ", config.noDisplay() 123 print 'readEntry( "NoDisplay" ): ', config.group("Desktop Entry").readEntry( "NoDisplay" ) 124 print 'readEntry( "NoDisplay", True ): ', config.group("Desktop Entry").readEntry( "NoDisplay", True ).toString() 125 print 'readEntry( "NoDisplay", False ): ', config.group("Desktop Entry").readEntry( "NoDisplay", False ).toString() 124 126 125 127 print
Note:
See TracChangeset
for help on using the changeset viewer.