Changing the defaults: How to set Dolphin's default mode when you open a directory first time.
The Dolphin has setting: Remember view properties for each folder / Use common view properties for all folders.
Settings are saved to the hidden .directory files:
If the "Use common view properties for all folders" is set on then the Dolphin is writing/reading the settings to/from ~/.kde/share/apps/dolphin/view_properties/global/.directory.
If the "Remember view properties for each folder" is set on then the Dolphin will write/read the settings to/from the local .directory file. If the Dolphin can't write the local .directory file then the local .directory file is saved to the ~/.kde/share/apps/dolphin/view_properties/local/... Dolphin can't write the (.directory) setting file if it doesn't have write permission (root owned directories etc) or the saving is not physically possible (cd/dvd rom).
With the KDE 4.2/4.3 Dolphin default directory opening mode is fixed at the build moment. The KDE is using .kcfg files > Using KConfig XT:
The Dolphins dolphin_directoryviewpropertysettings.kcfg has lines like:
You need to change false to true or value to the 0/1/2 and rebuild the Dolphin if want to change Dolphins default behaviour.
Links:
> FAQ: Installing from source
> KDE/kdebase/apps/dolphin/src/README
The Dolphin has setting: Remember view properties for each folder / Use common view properties for all folders.
Settings are saved to the hidden .directory files:
[Dolphin]
ShowPreview=true
Timestamp=2009,7,24,12,30,48
[Settings]
ShowDotFiles=true
ShowPreview=true
Timestamp=2009,7,24,12,30,48
[Settings]
ShowDotFiles=true
If the "Use common view properties for all folders" is set on then the Dolphin is writing/reading the settings to/from ~/.kde/share/apps/dolphin/view_properties/global/.directory.
If the "Remember view properties for each folder" is set on then the Dolphin will write/read the settings to/from the local .directory file. If the Dolphin can't write the local .directory file then the local .directory file is saved to the ~/.kde/share/apps/dolphin/view_properties/local/... Dolphin can't write the (.directory) setting file if it doesn't have write permission (root owned directories etc) or the saving is not physically possible (cd/dvd rom).
With the KDE 4.2/4.3 Dolphin default directory opening mode is fixed at the build moment. The KDE is using .kcfg files > Using KConfig XT:
The main idea behind KConfig XT is to make the life of application developers easier while making the administration of large KDE installations more manageable.
...
kconfig_compiler - which generates C++ source code from .kcfg and .kcfgs files. The generated class is based on KConfigSkeleton and provides an API for the application to access its configuration data.
...
kconfig_compiler - which generates C++ source code from .kcfg and .kcfgs files. The generated class is based on KConfigSkeleton and provides an API for the application to access its configuration data.
The Dolphins dolphin_directoryviewpropertysettings.kcfg has lines like:
<group name="Dolphin">
<entry name="ViewMode" type="Int" >
<label context="@label">View Mode</label>
<whatsthis context="@info:whatsthis">This option controls the style of the view. Currently supported values include icons (0), details (1) and column (2) views.</whatsthis>
<default>DolphinView:etailsView</default>
<min>1</min>
<max code="true">DolphinView::MaxModeEnum</max>
</entry>
<entry name="ShowPreview" type="Bool" >
<label context="@label">Show preview</label>
<whatsthis context="@info:whatsthis">When this option is enabled, a preview of the file content is shown as an icon.</whatsthis>
<default>false</default>
</entry>
<entry name="ViewMode" type="Int" >
<label context="@label">View Mode</label>
<whatsthis context="@info:whatsthis">This option controls the style of the view. Currently supported values include icons (0), details (1) and column (2) views.</whatsthis>
<default>DolphinView:etailsView</default>
<min>1</min>
<max code="true">DolphinView::MaxModeEnum</max>
</entry>
<entry name="ShowPreview" type="Bool" >
<label context="@label">Show preview</label>
<whatsthis context="@info:whatsthis">When this option is enabled, a preview of the file content is shown as an icon.</whatsthis>
<default>false</default>
</entry>
Links:
> FAQ: Installing from source
> KDE/kdebase/apps/dolphin/src/README
Comment