disable fx prior to first 4.6 startups

Stephen Dowdy sdowdy at ucar.edu
Thu Jul 7 22:53:05 BST 2011

Felix Miata wrote, On 07/07/2011 03:29 PM:
> On 2011/07/07 22:54 (GMT+0200) Alex Schuster composed:
> > schrieb Felix Miata:
>> I'm not sure if I understand this right... so the active desktop effects
>> mess up everything, and it is even hard to start systemsettings and turn
>> them off?
> Exactly. I can rarely remember the run command hotkey. If I did, I'd open 
> Konsole and try doing things from that, or run command.
>> Try Alt+Shift+F12, this toggles the desktop effects. I use it on a PC (not

alternatively, programmatically:

kwin_compositing_active=$(qdbus org.kde.kwin /KWin org.kde.KWin.compositingActive)
[ "${kwin_compositing_active}" = "true" ] && qdbus org.kde.kwin org.kde.KWin.toggleCompositing

>> You can also edit ~/.kde/share/config/kwinrc, and set Enabled=false in the
>> [Compositing] section.


I prefer to state modifications to config files in terms of k{read,write}config
statements, as these should work regardless of the distro (i think).  This
should make it easier for end-users to get the desired effect w/o having to
hunt around or try to figure out why a section/key/file don't exist.
Just Cut/Paste and voila' (crossing fingers...)

see below...

> That would not be a global fix. That file doesn't even exist on a new install 
> until after KDE gets started, and then only for each individual's first login.
> On Natty, I looked and found only one kwinrc, hiding in a directory called 
> /usr/share/kubuntu-netbook-default-settings/share/config, which makes no 
> sense to me, since this is a desktop install, not a netbook. Looking on the 
> mirrors in pool/main/k/ I see a kubuntu-netbook-default-settings/, but 
> nothing that looks appropriate for a desktop installation.
> On 11.4, I couldn't find a kwinrc in any of /etc, /opt, /var or /usr.
> Anyway, would the kwinrc file in Natty's /usr rats nest be appropriate for 
> global changes? It has no [Compositing] section.


This will work to disable compositing for the user that runs it (after logout
and log-back-in, or if they've never logged in yet:

kwriteconfig --file kwinrc --group Compositing --key Enabled false

This should work to create a SITE-specific (or machine specific)
Override (that should not be touched by system updates).  This will/should
create files, group sections, and keys as appropriate
if they don't already exist.

kde_etc_config=$(kde4-config --path config | cut -f2 -d:)
kwriteconfig --file ${kde_etc_config}/kwinrc --group Compositing --key Enabled false

At least this all "Works for Me(tm)" ;)

Stephen Dowdy  -  Systems Administrator  -  NCAR/RAL
303.497.2869   -  sdowdy at ucar.edu        -  http://www.ral.ucar.edu/~sdowdy/

This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.

More information about the kde mailing list