Changeset 817 for kde/kreadconfig/kread-desktopfile.py
- Timestamp:
- Feb 1, 2010, 4:20:49 PM (15 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
kde/kreadconfig/kread-desktopfile.py
r816 r817 19 19 20 20 import sys 21 from PyKDE4.kdecore import ki18n, KAboutData, KCmdLineArgs, KCmdLineOptions, KConfig 21 from PyKDE4.kdecore import ki18n, KAboutData, KCmdLineArgs, KCmdLineOptions, KConfig, KDesktopFile 22 22 from PyKDE4.kdeui import KApplication 23 23 … … 49 49 print getFullName( config ) 50 50 #print dir(config) 51 for i in config.entryMap(): 51 #for i in config.entryMap(): 52 for i in config.keyList(): 52 53 immutaleString = '' 53 54 if config.isEntryImmutable( i ): … … 109 110 #print configfilename 110 111 111 config = KConfig(configfilename, KConfig.NoGlobals) 112 if not KDesktopFile.isDesktopFile(configfilename): 113 print "failed: no desktop file '", configfilename, "' found" 114 exit(1) 112 115 116 #config = KConfig(configfilename, KConfig.NoGlobals) 117 config = KDesktopFile(configfilename) 118 119 120 print "filename: ", config.fileName() 121 print "name: ", config.readName() 122 print "icon: ", config.readIcon() 123 print "nodisplay: ", config.noDisplay() 124 125 print 126 print "dump:" 113 127 114 128 # only show the sub-groups.
Note:
See TracChangeset
for help on using the changeset viewer.