From 91e32f73db31101131c2ef8d1bf80701a01fbb8b Mon Sep 17 00:00:00 2001 From: Sylvain Pineau Date: Wed, 2 May 2018 10:30:24 +0200 Subject: pm_test: Run repawn command using raw string literal --- bin/pm_test | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/pm_test b/bin/pm_test index c555ab5..d1bd3b1 100755 --- a/bin/pm_test +++ b/bin/pm_test @@ -206,8 +206,8 @@ class PowerManagementOperation(): MessageDialog(title, message).run() if self.args.checkbox_respawn_cmd: subprocess.run( - 'DISPLAY=:0 x-terminal-emulator -e "sudo -u ' - '{} bash -c \"source {}; exec bash\""'.format( + r'DISPLAY=:0 x-terminal-emulator -e "sudo -u ' + r'{} bash -c \"source {}; exec bash\""'.format( self.user, self.args.checkbox_respawn_cmd), shell=True) def teardown(self): -- cgit v1.2.3