Add setHistoryEnvironmentIdentifier instead of relying on KActivities
This is better to be passed in on the outside, because it might not be limited to activities
This is better to be passed in on the outside, because it might not be limited to activities