Global change to kontact shortcut.

Kevin Krammer krammer at kde.org
Mon Apr 2 19:02:30 BST 2012


On Monday, 2012-04-02, John McMonagle wrote:
> On Wednesday 28 March 2012 03:58:53 am Kevin Krammer wrote:
> > On Tuesday, 2012-03-27, John McMonagle wrote:
> > > Running kde  4.4 debian squeeze.
> > > 
> > > Setting up for use with ltsp.
> > > In the mail part of kontact if you press f5 to check for mail  in a
> > > folder it reports that f5 is ambiguous.
> > > This can be fixed by Settings -> Configure Shortcuts
> > > Removing the F5 Shortcut under "Check Mail in this Folder".
> > > 
> > > I can't seem to figure out what what changed so I can put it in our
> > > profiles. What do I need to change  so it affects all users?
> > 
> > First you need to find out which file this was saved to, my guess would
> > be either kmailrc or kontactrc
> > 
> > Look for a section labelled [Shortcuts]
> > 
> > Then you can create such a section in a more global version of the same
> > file if you already have existing accounts or into /etc/skel if you
> > haven't.
> > 
> > More global meaning inside a directory after the user's home directory in
> > the output of
> > 
> > kde4-config --path config
> > 
> > You can add paths to this list by setting the KDEDIRS environment
> > variable (ensure that it is set before the user's session runs
> > startkde).
> > 
> > Cheers,
> > Kevin
> 
> Thanks Kevin and Duncan.
> Finally back to it.
> When I change the shortcut there is no change to kmailrc or kontactrc when
> changing the shortcut.

Have you tried stopping the application or maybe even logging out (just in 
case the new setting is only cached in memory and saved on exit).

> I did a search for changed file starting at ~ and did not seen any file
> with a [Shortcut] section changed.
> 
> The top prospect is .kde/share/apps/kontact/local-kmail.rc
> Looks like config for menus.
> I think this is it after removing shourtcut:
>    <Separator/>
>    <Action name="refresh_folder"/>
>    <Separator/>
> 
> Anyone know if that it it?

I don't think so. These kind of rc files control how UI elements are merged 
when components are embedded into host applications, in this case KMail 
component into Kontact host.

Basically the component offers menu entries and the host decides where it wants 
them to go.

However, I think the action name should be the same when used for shortcuts, 
so if stopping the application after changing the shortcut does not change any 
config, you could try adding something like

refresh_folder=

To the [Shortcuts] section in kontactrc

Cheers,
Kevin
-- 
Kevin Krammer, KDE developer, xdg-utils developer
KDE user support, developer mentoring
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde/attachments/20120402/7cafb004/attachment.sig>
-------------- next part --------------
___________________________________________________
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