Skip to content

Commit

Permalink
Merge pull request #5 from RogueScholar/master
Browse files Browse the repository at this point in the history
[pull] debian from master
  • Loading branch information
pull[bot] authored Jun 29, 2019
2 parents 7b13afa + d052d64 commit e0885ce
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 6 deletions.
19 changes: 19 additions & 0 deletions .github/pull.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
version: "1"
rules:
- base: master
upstream: Nefelim4ag:Ananicy
mergeMethod: rebase
assignees:
- RogueScholar
reviewers:
- RogueScholar
- base: debian
upstream: master
mergeMethod: rebase
assignees:
- RogueScholar
reviewers:
- RogueScholar
label: ":arrow_heading_down: pull"
...
4 changes: 2 additions & 2 deletions ananicy.d/00-default/_steam.rules
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
# Steam integrated web browser
{ "name": "steamwebhelper", "type": "BG_CPUIO" }

# http://store.steampowered.com/app/413850
{ "name": "csgo_linux", "type": "Game"}
# https://store.steampowered.com/app/730
{ "name": "csgo_linux64", "type": "Game"}
# http://store.steampowered.com/app/355180
{ "name": "cure_linux", "type": "Game"}
# http://store.steampowered.com/app/570
Expand Down
2 changes: 1 addition & 1 deletion ananicy.d/00-default/discord.rules
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Discord: https://discordapp.com/
{ "name": "discord", "type": "LowLatency_RT" }
{ "name": "Discord", "type": "LowLatency_RT" }
2 changes: 2 additions & 0 deletions ananicy.d/00-default/vscodium.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# https://github.com/VSCodium/vscodium
{ "name": "codium", "type": "Doc-View" }
8 changes: 6 additions & 2 deletions ananicy.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,11 @@ def stat(self):
@property
def stat_name(self):
with open(self.prefix + "/status") as _status_file:
return _status_file.readline().split()[1]
name_line = _status_file.readline()
line_list = name_line.split()
if line_list:
return line_list[1]
return ""

@property
def nice(self):
Expand Down Expand Up @@ -499,7 +503,7 @@ def proc_get_pids(self):
"/proc/{}".format(pid)) + self.check_freq
if mtime > time.time():
continue
except FileNotFoundError:
except (FileNotFoundError, ProcessLookupError):
continue
pids.append(pid)
return pids
Expand Down
2 changes: 1 addition & 1 deletion package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ typeset -r SCRIPT_DIR=$(dirname "$(realpath -q "${BASH_SOURCE[0]}")")

# Information about the git repository and build directory saved to variables
typeset -r PACKAGE_DIR=${SCRIPT_DIR}/tmp
PACKAGE_NAME=Ananicy
PACKAGE_NAME=ananicy
PACKAGE_ARCH=all
DEBIAN_VER="$(grep -P -m 1 -o '\d*\.\d*\.\d*-\d*' debian/changelog)~local1"

Expand Down

0 comments on commit e0885ce

Please sign in to comment.