From 478194e9c96e81e27ef48e2c5ea3332aad7c8ca8 Mon Sep 17 00:00:00 2001 From: Huupoke Date: Sat, 15 Jun 2019 22:19:01 +0700 Subject: [PATCH 1/7] Fix csgo rule and link --- ananicy.d/00-default/_steam.rules | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ananicy.d/00-default/_steam.rules b/ananicy.d/00-default/_steam.rules index ce67a70a..631e5f11 100644 --- a/ananicy.d/00-default/_steam.rules +++ b/ananicy.d/00-default/_steam.rules @@ -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 From 82ab0bccdab87e52c19ccc2c87cc9d70f3c40397 Mon Sep 17 00:00:00 2001 From: Karl Grasegger Date: Tue, 18 Jun 2019 09:17:14 +0200 Subject: [PATCH 2/7] Added rules for vscodium (binary releases of VS Code without MS branding/telemetry/licensing) --- ananicy.d/00-default/vscodium.rules | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 ananicy.d/00-default/vscodium.rules diff --git a/ananicy.d/00-default/vscodium.rules b/ananicy.d/00-default/vscodium.rules new file mode 100644 index 00000000..4d6ba78a --- /dev/null +++ b/ananicy.d/00-default/vscodium.rules @@ -0,0 +1,2 @@ +# https://github.com/VSCodium/vscodium +{ "name": "codium", "type": "Doc-View" } From a74d0ff0b569875d69cbf567fdac071d55bb8df9 Mon Sep 17 00:00:00 2001 From: liberodark Date: Mon, 3 Jun 2019 16:38:49 +0200 Subject: [PATCH 3/7] Update package.sh --- package.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/package.sh b/package.sh index 5f0d8727..29171c3d 100755 --- a/package.sh +++ b/package.sh @@ -6,13 +6,13 @@ WARN(){ echo "WARN: $*";} ERRO(){ echo "ERRO: $*"; exit 1;} debian_package(){ - cd "$(dirname $0)" + cd "$(dirname "$0")" VERSION=$(git tag --sort version:refname | tail -n 1) [ -z "$VERSION" ] && ERRO "Can't get git tag, VERSION are empty!" DEB_NAME=ananicy-${VERSION}_any - mkdir -p $DEB_NAME - make install PREFIX=$DEB_NAME/ - mkdir -p $DEB_NAME/DEBIAN/ + mkdir -p "$DEB_NAME" + make install PREFIX="$DEB_NAME"/ + mkdir -p "$DEB_NAME"/DEBIAN/ { echo "Package: ananicy" echo "Version: $VERSION" @@ -24,8 +24,8 @@ debian_package(){ echo "Installed-Size: 16" echo "Maintainer: nefelim4ag@gmail.com" echo "Description: Ananicy (ANother Auto NICe daemon) — is a shell daemon created to manage processes' IO and CPU priorities, with community-driven set of rules for popular applications (anyone may add his own rule via github's pull request mechanism)." - } > $DEB_NAME/DEBIAN/control - dpkg-deb --build $DEB_NAME + } > "$DEB_NAME"/DEBIAN/control + dpkg-deb --build "$DEB_NAME" } archlinux_package(){ From f3838da41c6a3d66fa4bee62aba39b22ddbed8e8 Mon Sep 17 00:00:00 2001 From: Timofey Titovets Date: Sat, 29 Jun 2019 13:53:37 +0300 Subject: [PATCH 4/7] Try fix issue: #157 Signed-off-by: Timofey Titovets --- ananicy.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ananicy.py b/ananicy.py index 0aea4925..af846e96 100755 --- a/ananicy.py +++ b/ananicy.py @@ -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): From 2286ad063d9f795917417f82f8cf6596a01a4895 Mon Sep 17 00:00:00 2001 From: Cole Thompson Date: Fri, 28 Jun 2019 16:14:30 -0500 Subject: [PATCH 5/7] fix Discord rule to use correct case in name --- ananicy.d/00-default/discord.rules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ananicy.d/00-default/discord.rules b/ananicy.d/00-default/discord.rules index 9afc6827..e2ce08f6 100644 --- a/ananicy.d/00-default/discord.rules +++ b/ananicy.d/00-default/discord.rules @@ -1,2 +1,2 @@ # Discord: https://discordapp.com/ -{ "name": "discord", "type": "LowLatency_RT" } +{ "name": "Discord", "type": "LowLatency_RT" } From 0670f25460ef6c71dd999094e6acc039f58925ef Mon Sep 17 00:00:00 2001 From: Timofey Titovets Date: Sat, 29 Jun 2019 14:12:25 +0300 Subject: [PATCH 6/7] Catch ProcessLookupError Signed-off-by: Timofey Titovets --- ananicy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ananicy.py b/ananicy.py index af846e96..1a80e644 100755 --- a/ananicy.py +++ b/ananicy.py @@ -503,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 From f88c4c64f45a2b92667c5efe9d92076ca7f98737 Mon Sep 17 00:00:00 2001 From: "Peter J. Mello" Date: Sat, 29 Jun 2019 05:03:44 -0700 Subject: [PATCH 7/7] Create pull.yml --- .github/pull.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/pull.yml diff --git a/.github/pull.yml b/.github/pull.yml new file mode 100644 index 00000000..5be96ff4 --- /dev/null +++ b/.github/pull.yml @@ -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" +...