mirror of
https://github.com/LazoCoder/Pokemon-Terminal
synced 2024-11-23 12:23:04 +00:00
dont allow starting slideshow or setting wallpaper
This commit is contained in:
parent
d3e4d26378
commit
9eaa08b507
2 changed files with 7 additions and 1 deletions
|
@ -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/)
|
||||
|
||||
|
|
|
@ -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())
|
||||
|
|
Loading…
Reference in a new issue