-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6eea032
commit e516ab7
Showing
24 changed files
with
37 additions
and
26 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#!/bin/bash | ||
version=v3.6.5 | ||
version=v3.6.6 | ||
if [[ $EUID -ne 0 ]]; then | ||
case $1 in | ||
-u|--update) | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
Author : Bilal Elmoussaoui ([email protected]) | ||
Contributors : Andreas Angerer, Joshua Fogg | ||
Version : 3.6.5 | ||
Version : 3.6.6 | ||
Website : https://github.com/bil-elmoussaoui/Hardcode-Tray | ||
Licence : The script is released under GPL, uses a modified script | ||
form Chromium project released under BSD license | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
Author : Bilal Elmoussaoui ([email protected]) | ||
Contributors : Andreas Angerer, Joshua Fogg | ||
Version : 3.6.5 | ||
Version : 3.6.6 | ||
Website : https://github.com/bil-elmoussaoui/Hardcode-Tray | ||
Licence : The script is released under GPL, uses a modified script | ||
form Chromium project released under BSD license | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
Author : Bilal Elmoussaoui ([email protected]) | ||
Contributors : Andreas Angerer, Joshua Fogg | ||
Version : 3.6.5 | ||
Version : 3.6.6 | ||
Website : https://github.com/bil-elmoussaoui/Hardcode-Tray | ||
Licence : The script is released under GPL, uses a modified script | ||
form Chromium project released under BSD license | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
Author : Bilal Elmoussaoui ([email protected]) | ||
Contributors : Andreas Angerer, Joshua Fogg | ||
Version : 3.6.5 | ||
Version : 3.6.6 | ||
Website : https://github.com/bil-elmoussaoui/Hardcode-Tray | ||
Licence : The script is released under GPL, uses a modified script | ||
form Chromium project released under BSD license | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
Author : Bilal Elmoussaoui ([email protected]) | ||
Contributors : Andreas Angerer, Joshua Fogg | ||
Version : 3.6.5 | ||
Version : 3.6.6 | ||
Website : https://github.com/bil-elmoussaoui/Hardcode-Tray | ||
Licence : The script is released under GPL, uses a modified script | ||
form Chromium project released under BSD license | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
Author : Bilal Elmoussaoui ([email protected]) | ||
Contributors : Andreas Angerer, Joshua Fogg | ||
Version : 3.6.5 | ||
Version : 3.6.6 | ||
Website : https://github.com/bil-elmoussaoui/Hardcode-Tray | ||
Licence : The script is released under GPL, uses a modified script | ||
form Chromium project released under BSD license | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
Author : Bilal Elmoussaoui ([email protected]) | ||
Contributors : Andreas Angerer, Joshua Fogg | ||
Version : 3.6.5 | ||
Version : 3.6.6 | ||
Website : https://github.com/bil-elmoussaoui/Hardcode-Tray | ||
Licence : The script is released under GPL, uses a modified script | ||
form Chromium project released under BSD license | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
Author : Bilal Elmoussaoui ([email protected]) | ||
Contributors : Andreas Angerer, Joshua Fogg | ||
Version : 3.6.5 | ||
Version : 3.6.6 | ||
Website : https://github.com/bil-elmoussaoui/Hardcode-Tray | ||
Licence : The script is released under GPL, uses a modified script | ||
form Chromium project released under BSD license | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
Author : Bilal Elmoussaoui ([email protected]) | ||
Contributors : Andreas Angerer, Joshua Fogg | ||
Version : 3.6.5 | ||
Version : 3.6.6 | ||
Website : https://github.com/bil-elmoussaoui/Hardcode-Tray | ||
Licence : The script is released under GPL, uses a modified script | ||
form Chromium project released under BSD license | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
Author : Bilal Elmoussaoui ([email protected]) | ||
Contributors : Andreas Angerer, Joshua Fogg | ||
Version : 3.6.5 | ||
Version : 3.6.6 | ||
Website : https://github.com/bil-elmoussaoui/Hardcode-Tray | ||
Licence : The script is released under GPL, uses a modified script | ||
form Chromium project released under BSD license | ||
|
@@ -192,12 +192,14 @@ def replace_vars_path(self, _path): | |
|
||
|
||
class ArgsParser: | ||
"""CLI arguments parser.""" | ||
|
||
def __init__(self, args): | ||
self._args = args | ||
self.parse() | ||
self._parse() | ||
|
||
def parse(self): | ||
def _parse(self): | ||
"""Parse arguments in seperate functions.""" | ||
self._parse_theme() | ||
self._parse_colors() | ||
self._parse_conversion_tool() | ||
|
@@ -209,6 +211,7 @@ def parse(self): | |
|
||
@property | ||
def args(self): | ||
"""Property : args.""" | ||
return self._args | ||
|
||
def _parse_theme(self): | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
Author : Bilal Elmoussaoui ([email protected]) | ||
Contributors : Andreas Angerer, Joshua Fogg | ||
Version : 3.6.5 | ||
Version : 3.6.6 | ||
Website : https://github.com/bil-elmoussaoui/Hardcode-Tray | ||
Licence : The script is released under GPL, uses a modified script | ||
form Chromium project released under BSD license | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
Author : Bilal Elmoussaoui ([email protected]) | ||
Contributors : Andreas Angerer, Joshua Fogg | ||
Version : 3.6.5 | ||
Version : 3.6.6 | ||
Website : https://github.com/bil-elmoussaoui/Hardcode-Tray | ||
Licence : The script is released under GPL, uses a modified script | ||
form Chromium project released under BSD license | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
Author : Bilal Elmoussaoui ([email protected]) | ||
Contributors : Andreas Angerer, Joshua Fogg | ||
Version : 3.6.5 | ||
Version : 3.6.6 | ||
Website : https://github.com/bil-elmoussaoui/Hardcode-Tray | ||
Licence : The script is released under GPL, uses a modified script | ||
form Chromium project released under BSD license | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
Author : Bilal Elmoussaoui ([email protected]) | ||
Contributors : Andreas Angerer, Joshua Fogg | ||
Version : 3.6.5 | ||
Version : 3.6.6 | ||
Website : https://github.com/bil-elmoussaoui/Hardcode-Tray | ||
Licence : The script is released under GPL, uses a modified script | ||
form Chromium project released under BSD license | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
Author : Bilal Elmoussaoui ([email protected]) | ||
Contributors : Andreas Angerer, Joshua Fogg | ||
Version : 3.6.5 | ||
Version : 3.6.6 | ||
Website : https://github.com/bil-elmoussaoui/Hardcode-Tray | ||
Licence : The script is released under GPL, uses a modified script | ||
form Chromium project released under BSD license | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
Author : Bilal Elmoussaoui ([email protected]) | ||
Contributors : Andreas Angerer, Joshua Fogg | ||
Version : 3.6.5 | ||
Version : 3.6.6 | ||
Website : https://github.com/bil-elmoussaoui/Hardcode-Tray | ||
Licence : The script is released under GPL, uses a modified script | ||
form Chromium project released under BSD license | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
Author : Bilal Elmoussaoui ([email protected]) | ||
Contributors : Andreas Angerer, Joshua Fogg | ||
Version : 3.6.5 | ||
Version : 3.6.6 | ||
Website : https://github.com/bil-elmoussaoui/Hardcode-Tray | ||
Licence : The script is released under GPL, uses a modified script | ||
form Chromium project released under BSD license | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
Author : Bilal Elmoussaoui ([email protected]) | ||
Contributors : Andreas Angerer, Joshua Fogg | ||
Version : 3.6.5 | ||
Version : 3.6.6 | ||
Website : https://github.com/bil-elmoussaoui/Hardcode-Tray | ||
Licence : The script is released under GPL, uses a modified script | ||
form Chromium project released under BSD license | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
Author : Bilal Elmoussaoui ([email protected]) | ||
Contributors : Andreas Angerer, Joshua Fogg | ||
Version : 3.6.5 | ||
Version : 3.6.6 | ||
Website : https://github.com/bil-elmoussaoui/Hardcode-Tray | ||
Licence : The script is released under GPL, uses a modified script | ||
form Chromium project released under BSD license | ||
|
@@ -35,6 +35,7 @@ def __init__(self, theme_name): | |
|
||
@property | ||
def name(self): | ||
"""Property: name.""" | ||
return self._name | ||
|
||
def __getattr__(self, item): | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
Author : Bilal Elmoussaoui ([email protected]) | ||
Contributors : Andreas Angerer, Joshua Fogg | ||
Version : 3.6.5 | ||
Version : 3.6.6 | ||
Website : https://github.com/bil-elmoussaoui/Hardcode-Tray | ||
Licence : The script is released under GPL, uses a modified script | ||
form Chromium project released under BSD license | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
Author : Bilal Elmoussaoui ([email protected]) | ||
Contributors : Andreas Angerer, Joshua Fogg | ||
Version : 3.6.5 | ||
Version : 3.6.6 | ||
Website : https://github.com/bil-elmoussaoui/Hardcode-Tray | ||
Licence : The script is released under GPL, uses a modified script | ||
form Chromium project released under BSD license | ||
|
@@ -35,6 +35,7 @@ | |
|
||
|
||
def setup_logging(): | ||
"""Setup logging handlern write to a file under /tmp.""" | ||
logger = logging.getLogger('hardcode-tray') | ||
tmp_file = '/tmp/Hardcode-Tray/-{0}.log'.format(strftime(LOG_FILE_FORMAT)) | ||
if not path.exists(path.dirname(tmp_file)): | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
Author : Bilal Elmoussaoui ([email protected]) | ||
Contributors : Andreas Angerer, Joshua Fogg | ||
Version : 3.6.5 | ||
Version : 3.6.6 | ||
Website : https://github.com/bil-elmoussaoui/Hardcode-Tray | ||
Licence : The script is released under GPL, uses a modified script | ||
form Chromium project released under BSD license | ||
|
@@ -104,6 +104,12 @@ def get_supported_apps(fix_only, custom_path=""): | |
|
||
|
||
def apply(is_install): | ||
"""Fix Hardcoded Tray icons. | ||
Args: | ||
is_install(bool): | ||
True: To apply the modifications | ||
False: To revert it. | ||
""" | ||
apps = get_supported_apps(args.only, args.path) | ||
done = [] | ||
if len(apps) != 0: | ||
|