Re: [kde] Global change to kontact shortcut.

2012-04-05 Thread John McMonagle

On Thursday 05 April 2012 01:59:15 pm Kevin Krammer wrote:
> On Thursday, 2012-04-05, John McMonagle wrote:
> > On Thursday 05 April 2012 12:09:00 pm Kevin Krammer wrote:
> > > On Thursday, 2012-04-05, John McMonagle wrote:
> > > > I just edited the  .kde/share/apps/kontact/local-kmail.rc and the
> > > > changes seem to work.
> > > >
> > > > Can put this in a local-kmail.rc file in  profiles?
> > > > ...
> > > > 
> > > > 
> > > >
> > > > 
> > > >
> > > >  
> > > >
> > > >   
> > > >
> > > >  
> > > >
> > > > 
> > > > .
> > > > Or do I need everthing?
> > >
> > > I am not sure.
> > > For normal INI based KDE config files the single entry in its correct
> > > section would be enough.
> > > But I have no idea whether this applies here, so I am afraid you'll
> > > have to test.
> > >
> > > Cheers,
> > > Kevin
> >
> > Kevin
> >
> > Not working :(
> > $ kde4-config --path data
> > /home/johnm/.kde/share/apps/:/etc/kde-profile/Power-User/share/apps/:/usr
> >/s hare/kde4/apps/
> >
> > I'm assuming data is the section.
> > Put it here:
> > /etc/kde-profile/Power-User/share/apps/local-kmail.rc
> >
> > Tried content above and the full file created by kontact.
>
> So it likely only uses the one in profiles if it does not exist in the
> user's directory :(
>
> Cheers,
> Kevin
I removed the user local-kmail.rc. before stating kontact.

John

___
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.


Re: [kde] Global change to kontact shortcut.

2012-04-05 Thread Kevin Krammer
On Thursday, 2012-04-05, John McMonagle wrote:
> On Thursday 05 April 2012 12:09:00 pm Kevin Krammer wrote:
> > On Thursday, 2012-04-05, John McMonagle wrote:
> > > I just edited the  .kde/share/apps/kontact/local-kmail.rc and the
> > > changes seem to work.
> > > 
> > > Can put this in a local-kmail.rc file in  profiles?
> > > ...
> > > 
> > > 
> > > 
> > > 
> > > 
> > >  
> > >  
> > >   
> > >  
> > >  
> > > 
> > > 
> > > .
> > > Or do I need everthing?
> > 
> > I am not sure.
> > For normal INI based KDE config files the single entry in its correct
> > section would be enough.
> > But I have no idea whether this applies here, so I am afraid you'll have
> > to test.
> > 
> > Cheers,
> > Kevin
> 
> Kevin
> 
> Not working :(
> $ kde4-config --path data
> /home/johnm/.kde/share/apps/:/etc/kde-profile/Power-User/share/apps/:/usr/s
> hare/kde4/apps/
> 
> I'm assuming data is the section.
> Put it here:
> /etc/kde-profile/Power-User/share/apps/local-kmail.rc
> 
> Tried content above and the full file created by kontact.

So it likely only uses the one in profiles if it does not exist in the user's 
directory :(

Cheers,
Kevin

-- 
Kevin Krammer, KDE developer, xdg-utils developer
KDE user support, developer mentoring


signature.asc
Description: This is a digitally signed message 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.

Re: [kde] Global change to kontact shortcut.

2012-04-05 Thread John McMonagle
On Thursday 05 April 2012 12:09:00 pm Kevin Krammer wrote:
> On Thursday, 2012-04-05, John McMonagle wrote:
> > I just edited the  .kde/share/apps/kontact/local-kmail.rc and the changes
> > seem to work.
> >
> > Can put this in a local-kmail.rc file in  profiles?
> > ...
> > 
> > 
> > 
> >  
> >   
> >  
> > 
> > .
> > Or do I need everthing?
>
> I am not sure.
> For normal INI based KDE config files the single entry in its correct
> section would be enough.
> But I have no idea whether this applies here, so I am afraid you'll have to
> test.
>
> Cheers,
> Kevin
Kevin

Not working :(
$ kde4-config --path data
/home/johnm/.kde/share/apps/:/etc/kde-profile/Power-User/share/apps/:/usr/share/kde4/apps/

I'm assuming data is the section.
Put it here:
/etc/kde-profile/Power-User/share/apps/local-kmail.rc

Tried content above and the full file created by kontact.

John



___
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.


Re: [kde] Global change to kontact shortcut.

2012-04-05 Thread Kevin Krammer
On Thursday, 2012-04-05, John McMonagle wrote:

> I just edited the  .kde/share/apps/kontact/local-kmail.rc and the changes
> seem to work.
> 
> Can put this in a local-kmail.rc file in  profiles?
> ...
> 
> 
> 
>  
>   
>  
> 
> .
> Or do I need everthing?

I am not sure.
For normal INI based KDE config files the single entry in its correct section 
would be enough.
But I have no idea whether this applies here, so I am afraid you'll have to 
test.

Cheers,
Kevin
-- 
Kevin Krammer, KDE developer, xdg-utils developer
KDE user support, developer mentoring


signature.asc
Description: This is a digitally signed message 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.

Re: [kde] Global change to kontact shortcut.

2012-04-05 Thread John McMonagle
On Monday 02 April 2012 01:06:28 pm Kevin Krammer wrote:
> On Monday, 2012-04-02, Kevin Krammer wrote:
> > On Monday, 2012-04-02, John McMonagle wrote:
> > > The top prospect is .kde/share/apps/kontact/local-kmail.rc
> > > Looks like config for menus.
> > >
> > > I think this is it after removing shourtcut:
> > >
> > >
> > >
> > >
> > > 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.
>
> Of course, the moment I sent this I discovered that you instinct was right
> :)
>
> I changed my shortcut for that action to CTRL+SHIFT+F5 and this is what the
> entry now looks like
> 
>
> Cheers,
> Kevin

I just edited the  .kde/share/apps/kontact/local-kmail.rc and the changes seem 
to work.

Can put this in a local-kmail.rc file in  profiles?
...



 
  
 

.
Or do I need everthing?

As a wild guess setting to refresh which is defined to be f5.
Seems to work.

John

___
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.


Re: [kde] Global change to kontact shortcut.

2012-04-02 Thread Kevin Krammer
On Monday, 2012-04-02, Kevin Krammer wrote:
> On Monday, 2012-04-02, John McMonagle wrote:

> > The top prospect is .kde/share/apps/kontact/local-kmail.rc
> > Looks like config for menus.
> > 
> > I think this is it after removing shourtcut:
> >
> >
> >
> > 
> > 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.

Of course, the moment I sent this I discovered that you instinct was right :)

I changed my shortcut for that action to CTRL+SHIFT+F5 and this is what the 
entry now looks like


Cheers,
Kevin

-- 
Kevin Krammer, KDE developer, xdg-utils developer
KDE user support, developer mentoring


signature.asc
Description: This is a digitally signed message 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.

Re: [kde] Global change to kontact shortcut.

2012-04-02 Thread Kevin Krammer
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:
>
>
>
> 
> 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


signature.asc
Description: This is a digitally signed message 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.

Re: [kde] Global change to kontact shortcut.

2012-04-02 Thread John McMonagle
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.

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:
   
   
   

Anyone know if that it it?

If so as it's not in config will need to be more creative.

John


___
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.


Re: [kde] Global change to kontact shortcut.

2012-03-28 Thread Kevin Krammer
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

-- 
Kevin Krammer, KDE developer, xdg-utils developer
KDE user support, developer mentoring


signature.asc
Description: This is a digitally signed message 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.

Re: [kde] Global change to kontact shortcut.

2012-03-27 Thread Duncan
John McMonagle posted on Tue, 27 Mar 2012 14:28:45 -0500 as excerpted:

> 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, just in case you didn't already know this...

kdepim 4.4 (kdepim includes kmail and kontact) was the last pre-
akonadified kmail version.  The akonadi change was a big one that a lot 
of folks left kmail over, tho if you're using the full kontact, it might 
be more worth it as eventually, all of kdepim/kontact is set to be 
akonadified, which will save memory, etc, as everything will be using the 
same akonadi backend.  But from reports (I dumped all of kdepim in 
4.7.0/4.7.1 era) only with 4.8 is the akonadified kmail getting semi-
smooth, and parts of it are apparently still bugged.

So while the problems will hopefully be worked out and it'll be smooth 
sailing when you finally upgrade from kdepim 4.4.x, do plan for some 
extra time and testing for that upgrade, as you may need it.  
Alternatively, if you're considering switching to something else, now 
would be the time, since the next upgrade will essentially be a switch in 
any case, even if the new version has the same name as the last one.

But you probably already know that, as it has been making news in kde 
circles every since 4.6, so for a year now...


To the issue at hand...

One nice thing about kde is that for most settings including hotkeys, the 
user and system config locations mirror each other, path and file-wise, 
altho the system location generally has less files and less detail in the 
files than a well customized user config.

Distros differ a bit in their default dirs, but they can be overridden by 
environmental vars in any case.  Here's the official kde sysadmin guide:

http://techbase.kde.org/KDE_System_Administration

In particular, you'll want to pay attention to the file system, kde and 
xdg hierarchy,, and desktop sessions, env vars sections.

In short, you'll find that the KDEHOME (defaulting to ~/.kde if unset as 
shipped, but some distros change that to ~/.kde4) and KDEDIRS (AFAIK 
defaulting to /opt if unset as shipped, but many distros change that to /
usr, /usr/kde(4), /usr/local, or...) vars and the locations they point to 
of primary interest.

Here on gentoo, the default unset KDEDIRS is /usr, and IDR what the 
default user location is, one of ~/.kde(4) , as I've long had it set to ~/
kde (dotless/unhidden) here.


As I said, those locations, whatever they are, mirror each other.  Thus, 
if your user hotkey config for kontact is in ~/.kde/share/config/kontactrc 
(I'm saying if... when I had it installed I used kmail, never kontact, so 
don't know for sure where it is), and the system KDEDIRS location is 
/usr, then the parallel system config   (kaddress book was already 
akonadified with 4.4, there wasn't a kdepim 4.5 release, 4.6 came out 
with akonadified kmail... I dumped it by 4.7.1 so don't know what 
happened after that, but akregator, knotes, k.)file would be
/usr/share/config/kontactrc.

If the system file doesn't exist, you can simply create it, with settings 
taken from a sample user file as desired.  It will read the system config, 
then override it with the user config, if different.

It's worth noting that the KDEDIRS var is plural.  That allows you to 
stick both the distro's config dir, a site level config dir, and if 
necessary, an individual machine config dir, all system level configs, in 
the variable (colon-separated), so all three locations will be read.  
That way you don't have to touch the distro locations, and thus don't 
have to worry about updates undoing your config.  The first directory 
listed takes precedence if settings conflict.


Also, note that for kde4, while /most/ kde settings can still be found 
under the KDE* variable locations (and the defaults as shipped by the 
distro if those vars aren't set), a few have migrated to the standard 
freedesktop.org XDG_* locations.  With the coming kde5 aka kde 
frameworks, it's likely more settings will use the XDG_* locations.  So 
if you don't find what you're looking for under the KDE* locations, check 
the XDG_* locations too.  You can read more about that in the sysadmin 
guide linked above, or for that matter, on freedesktop.org and otherwise 
around the community.


OK, but how do you find out the user location?  You can either simply 
browse around in share/config/* and share/apps/* (the two subdirs that kde 
normally stores config in), or you can use strace or the like to capture 
the file activity of a config change run.  In a konsole window or the 
like (change the grepped path as necessary):

strace -feopen systemsettings 

[kde] Global change to kontact shortcut.

2012-03-27 Thread John McMonagle
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?

Thanks.

John
___
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.