X-Git-Url: https://vcs.fsf.org/?p=rainbowstream.git;a=blobdiff_plain;f=rainbowstream%2Frainbow.py;h=765ce389d6eb03ff7841ffa5e0436d8e4551e32e;hp=49e3308f7fe70654b3a8c33ee4a1cd8b70f49280;hb=eb9b6273dc3f382b20ee055dc7ed4d3116532874;hpb=3b1912ee9c8127a1f3458d3272d9e3b134bda46e diff --git a/rainbowstream/rainbow.py b/rainbowstream/rainbow.py index 49e3308..765ce38 100644 --- a/rainbowstream/rainbow.py +++ b/rainbowstream/rainbow.py @@ -496,8 +496,12 @@ def share(): tweet = t.statuses.show(id=tid) url = 'https://twitter.com/' + \ tweet['user']['screen_name'] + '/status/' + str(tid) - os.system("echo '%s' | pbcopy" % url) - printNicely(green('Copied tweet\'s url to clipboard.')) + import platform + if platform.system().lower() == 'darwin': + os.system("echo '%s' | pbcopy" % url) + printNicely(green('Copied tweet\'s url to clipboard.')) + else: + printNicely('Direct link: ' + yellow(url)) def delete():