Quote
AOwL
I have K-M to open the last browsing session.
I have now unchecked "use DDE".
Now when I have K-M closed and click on a link in Thunderbird, I can see the webpage a short moment when K-M starts, but then it goes away. K-M always focus on the first tab (layer) when you start it, so I found out that hitting the back button, on the first layer, takes you to the link you clicked in the mail...
It seems that K-M "overwrites" the link with the previous used layer(s).
K-M should add a layer to the last used state when you click a link when it's closed, like it does when it's open.
I hope you understand what I mean.
I do. It's a bug in the groups macro. Open Edit > Configuration > Macros and open groups.kmm with a text editor. Use the editors search function (Ctrl+F) to search for
_Groups_OpenGroup{ and
_Groups_OpenGroup_LayersAdd{. You should find the following:
_Groups_OpenGroup{
$kLayers==true?(((pluginmsgex(layers,NumberOfLayersInWindow,"",INT)==1)*(($URL=="about:blank")+($URL=="")))==1?&_Groups_OpenGroup_LayersReplace:&_Groups_OpenGroup_LayersAdd): ($URL=="about:blank"?&_Groups_OpenGroup_WindowsReplace:&_Groups_OpenGroup_WindowsAdd);
$_Groups_OpenGroup_data=$kLayers==true?"":$_data;
$_Groups_OpenGroup_init=true;
$kLayers==true?pluginmsg(layers,$_Groups_OpenCmd,$_data):&_Groups_OpenGroup_Windows;
}
and
_Groups_OpenGroup_LayersAdd{
$_Groups_OpenCmd==""?&_Groups_OpenGroup_LayersReplace:$_Groups_OpenCmd="AddLayersToWindow";
setpref(STRING,$_Groups_OpenHow,"layers(".$_Groups_OpenCmd.")");
}
Replace this by:
_Groups_OpenGroup{
$kLayers==true?(((pluginmsgex(layers,NumberOfLayersInWindow,"",INT)==1)*(($URL=="about:blank")+($URL=="")))==1?&_Groups_OpenGroup_LayersReplace:&_Groups_OpenGroup_LayersAdd): ($URL=="about:blank"?&_Groups_OpenGroup_WindowsReplace:&_Groups_OpenGroup_WindowsAdd);
$_Groups_OpenGroup_data=$kLayers==true?"":$_data;
$_Groups_OpenGroup_init=true;
$kLayers==true?($_data==""?0: pluginmsg(layers,$_Groups_OpenCmd,$_data)):&_Groups_OpenGroup_Windows;
}
and
_Groups_OpenGroup_LayersAdd{
$_Groups_OpenCmd==""?$_data="":0;
$_Groups_OpenCmd="AddLayersToWindow";
setpref(STRING,$_Groups_OpenHow,"layers(".$_Groups_OpenCmd.")");
}
Save your changes and restart km. This should fix the problem. Note that the last session won't be opened when you open a file or URL directly.