dont allow starting slideshow or setting wallpaper

This commit is contained in:
Jimmy O'Rourke 2018-07-11 23:55:57 -04:00 committed by Samuel Henrique
parent d3e4d26378
commit 9eaa08b507
2 changed files with 7 additions and 1 deletions

View file

@ -51,7 +51,7 @@ Install Python 3.6 or higher:
Get a compatible terminal emulator:
- [iTerm2](https://iterm2.com/)
- [ConEmu](https://conemu.github.io/) and derivates such as [Cmder](http://cmder.net/)
- [ConEmu](https://conemu.github.io/) and derivatives such as [Cmder](http://cmder.net/)
- [Terminology](https://www.enlightenment.org/about-terminology)
- [Tilix](https://gnunn1.github.io/tilix-web/)

View file

@ -118,6 +118,9 @@ def main(argv=None):
return
if is_slideshow and options.id <= 0 and size > 1:
if os.name == 'nt':
print("Slideshow not supported on Windows yet.")
sys.exit(0)
if PIPE_EXISTS:
print("Slideshow already running in this instance!")
sys.exit(0)
@ -130,6 +133,9 @@ def main(argv=None):
return
if options.wallpaper:
if os.name == 'nt':
print("Setting wallpaper not supported on Windows yet.")
sys.exit(0)
scripter.change_wallpaper(target.get_path())
else:
scripter.change_terminal(target.get_path())