This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [Desktop Entry] | |
| Comment[es_ES]= | |
| Comment= | |
| Exec=( /opt/google/chrome/google-chrome --profile-directory=Default --app-id=mnlencgjbmdnecjlniianjkpemfocoke && xdotool search --sync --classname crx_mnlencgjbmdnecjlniianjkpemfocoke set_window --class crx_mnlencgjbmdnecjlniianjkpemfocoke ) & | |
| GenericName[es_ES]= | |
| GenericName= | |
| Icon=~/.local/share/icons/hicolor/256x256/apps/chrome-mnlencgjbmdnecjlniianjkpemfocoke-Default.png | |
| MimeType= | |
| Name[es_ES]=Amazon Prime Music | |
| Name=Amazon Prime Music |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| case "$(pgrep -f "python tts.py" | wc -w)" in | |
| 0) echo "Restarting tts.py by cron : $(date)" >> log/restarts.txt | |
| python tts.py & | |
| ;; | |
| 1) # all ok | |
| ;; | |
| *) echo "Removing double instances : $(date)" >> log/restarts.txt | |
| sudo pkill -f "python tts.py" | |
| python tts.py & | |
| ;; |