Skip to content

Commit 2b2dc29

Browse files
committed
Fix pid file
1 parent f6abea6 commit 2b2dc29

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

CHANGELOG

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
v0.6.1
2+
Fixes:
3+
- Fix pid file
4+
15
v0.6.0
26
- Switch to Python3
37

DEBIAN/control

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ Architecture: all
66
Description: Imgur applet indicator
77
Depends: gnome-icon-theme, libgtk-3-bin, python-gconf, python3-cairo, libappindicator3-dev, python3-gi, python3-gi-cairo, python3-requests, gir1.2-notify-0.7
88
Homepage: http://aikikode.github.com/fileshare/
9-
Version: 0.6.0
9+
Version: 0.6.1

indicator-fileshare

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ DEFAULT_SERVICE_NAME = Imgur.__name__
3434

3535
GObject.threads_init()
3636

37-
VERSION = '0.6.0'
37+
VERSION = '0.6.1'
3838

3939
CONFIG_DIR = os.path.join(os.path.expanduser('~'), '.fileshare')
4040
CONFIG_FILE = os.path.join(CONFIG_DIR, 'settings.cfg')
@@ -71,13 +71,13 @@ class SingleInstance:
7171
# Create a temp file, copy it to pid_path and remove temporary file
7272
(fp, temp_path) = tempfile.mkstemp()
7373
try:
74-
os.fdopen(fp, 'w+b').write(str(os.getpid()))
74+
os.fdopen(fp, 'w+').write(str(os.getpid()))
7575
shutil.copy(temp_path, pid_path)
7676
os.unlink(temp_path)
77-
except Exception as e:
77+
except Exception as ex:
7878
log.error(
7979
"SingleInstance: exception while renaming '{}' to '{}':\n"
80-
" {}".format(temp_path, pid_path, str(e))
80+
" {}".format(temp_path, pid_path, str(ex))
8181
)
8282

8383
def is_already_running(self):

0 commit comments

Comments
 (0)