From 38cfae0b4e30fdc19612f5873aec09ea69e74486 Mon Sep 17 00:00:00 2001 From: Martin Kaistra Date: Thu, 5 Mar 2015 15:58:45 +0100 Subject: add setup.py, automatic discovery for avconv/ffmpeg, add installation help to readme --- core.py | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'core.py') diff --git a/core.py b/core.py index ac957e7..996bd52 100644 --- a/core.py +++ b/core.py @@ -1,4 +1,4 @@ -import sys, io +import sys, io, os from PyQt4 import QtCore, QtGui, uic from PyQt4.QtGui import QPainter, QColor from os.path import expanduser @@ -13,10 +13,18 @@ class Core(): self.lastBackgroundImage = "" self._image = None + self.FFMPEG_BIN = self.findFfmpeg() + + def findFfmpeg(self): if sys.platform == "win32": - self.FFMPEG_BIN = "ffmpeg.exe" + return "ffmpeg.exe" else: - self.FFMPEG_BIN = "ffmpeg" # on Linux and Mac OS + try: + with open(os.devnull, "w") as f: + sp.check_call(['ffmpeg', '-version'], stdout=f, stderr=f) + return "ffmpeg" + except: + return "avconv" def drawBaseImage(self, backgroundImage, titleText, titleFont): -- cgit v1.2.3 o'/> index : dotfiles
🚨 these dotfiles are HEAVILY tailored for my needs and setup. Feel free to explore and find ideas, but use at your own risk.
aboutsummaryrefslogtreecommitdiffstats
path: root/.config/nvim/colors/tender.vim (unfollow)
Commit message (Expand)AuthorFilesLines
2023-08-03refactor: `grep` aliasesBlista Kanjo1-0/+3
2023-08-03refactor: `HISTFILE` variable for `bash`Blista Kanjo1-0/+2
2023-08-03refactor: added simple `.bashrc`Blista Kanjo2-0/+671
2023-08-02refactor: aligned with `kj-sh604/laptop-dotfiles`Blista Kanjo3-3/+2
2023-08-02refactor: update 🍚 scrotBlista Kanjo1-1/+1
2023-08-02feat: `zsh` fast-syntax-highlighting pluginBlista Kanjo64-1/+9371
2023-08-02refactor: remove duplicate folderBlista Kanjo9-391/+0
2023-08-02refactor: clean `kj_sh604.zsh`Blista Kanjo1-49/+0
2023-08-02refactor: updated colors (fix bad contrast `red`)Blista Kanjo1-1/+1
2023-08-02refactor: update READMEBlista Kanjo1-1/+1
2023-08-02refactor: source all `zsh` plugins from `$HOME`Blista Kanjo23-6/+3547
2023-08-02refactor: some color changes for `zsh` git promptBlista Kanjo1-2/+2
2023-08-02refactor: update READMEBlista Kanjo1-2/+2
2023-08-02feat: migrated `fish` config to `zsh` (may be buggy)Blista Kanjo11-0/+913
2023-07-30feat: added `soft-reboot` (systemd v254 addition)Blista Kanjo1-1/+2
2023-07-29refactor: remove right shift rebindBlista Kanjo1-2/+0
2023-07-29feat & refactor: shell history and config locationsBlista Kanjo1-1/+2
2023-07-28feat: bind right shift as Esc keyBlista Kanjo1-0/+2
2023-07-27refactor: `group = "awesome"` for `toggle wibar` bindBlista Kanjo1-1/+1
2023-07-27refactor: update script name referencesBlista Kanjo1-4/+4
2023-07-27refactor: `invalid option` instead of `invalid choice`Blista Kanjo1-2/+2
2023-07-27feat: case for empty selection in `choose-xrandr-gui`Blista Kanjo1-0/+3
2023-07-27feat: `toggle-dunst-notifications` & `toggle wibar`Blista Kanjo2-6/+25