Merge ~sylvain-pineau/checkbox-ng:fix-1870556 into checkbox-ng:master

Proposed by Sylvain Pineau
Status: Merged
Approved by: Sylvain Pineau
Approved revision: a88b6ac8c9c9927a9485d88fa8a31662982c33e3
Merged at revision: 0734280058069d91d3be592b3b58d59daee9be5d
Proposed branch: ~sylvain-pineau/checkbox-ng:fix-1870556
Merge into: checkbox-ng:master
Diff against target: 13 lines (+1/-1)
1 file modified
plainbox/impl/session/restart.py (+1/-1)
Reviewer Review Type Date Requested Status
Sylvain Pineau (community) Approve
Review via email: mp+381696@code.launchpad.net

Description of the change

Fixes linked bug

To post a comment you must log in.
Revision history for this message
Sylvain Pineau (sylvain-pineau) wrote :

self-approved

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/plainbox/impl/session/restart.py b/plainbox/impl/session/restart.py
2index 053f040..8dc93e8 100644
3--- a/plainbox/impl/session/restart.py
4+++ b/plainbox/impl/session/restart.py
5@@ -244,7 +244,7 @@ class RemoteDebRestartStrategy(RemoteSnappyRestartStrategy):
6 def get_session_resume_filename(self) -> str:
7 if self.debug:
8 return '/tmp/session_resume'
9- cache_dir = os.getenv('XDG_CACHE_HOME')
10+ cache_dir = os.getenv('XDG_CACHE_HOME', '/var/cache')
11 return os.path.join(cache_dir, 'session_resume')
12
13 def prime_application_restart(self, app_id: str,

Subscribers

People subscribed via source and target branches