Skip to content

Commit

Permalink
nemo-emblems: replace os.system with subprocess.call
Browse files Browse the repository at this point in the history
  • Loading branch information
mtwebster committed Sep 20, 2015
1 parent 3415aad commit 109401c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion nemo-emblems/nemo-extension/nemo-emblems.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import urllib
import locale, gettext, os
import subprocess

from gi.repository import GObject
from gi.repository import Gio
Expand Down Expand Up @@ -129,4 +130,8 @@ def on_button_toggled(self, button, emblem_name):

self.file_info.set_attribute_stringv(METADATA_EMBLEMS, emblems)
self.gio_file.set_attributes_from_info(self.file_info, 0, None)
os.system("touch \"%s\"" % self.filename) # touch the file (to force Nemo to re-render its icon)

# touch the file (to force Nemo to re-render its icon)
subprocess.call(["touch", self.filename])


0 comments on commit 109401c

Please sign in to comment.