Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions MANIFEST.in

This file was deleted.

38 changes: 9 additions & 29 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,47 +52,27 @@ $ pip3 install psutil // if you're not planning to use it with root acc
$ sudo pip3 install -U psutil // needed to run sysmontask with root access, hence recommended
....
```
---

### Arch based destros:
```
$ git clone https://aur.archlinux.org/sysmontask.git
....
$ cd sysmontask
$ makepkg -si
....
$ sysmontask
....
```
OR

Install using pamac(gui for software add/remove), first enable the AUR(arch user repository) in preferences, then search sysmontask, install and enjoy.

---

### Installing from source(for other destros whose package is yet to be made)
### Installing from source
Install the dependencies required, mentioned in the [requirments.md](https://github.com/KrispyCamel4u/SysMonTask/blob/master/requirements.md). In case of issue related to PyGoject or pycairo OR to get the command for the specific package manager, follow the link given in requirements.md .

While installing from source, pip automatically installs some of the packages(which can be installed using pip) required others need to be installed using package manager.

After installing dependencies:
```
$ git clone https://github.com/KrispyCamel4u/SysMonTask.git
....
$ cd SysMonTask
$ sudo python3 setup.py install
....
$ sysmontask
....
$ meson _build --prefix=$PREFIX_DIR
$ ninja -C _build
```
It will install it in "/usr/local/lib/python<version>/dist-packages/".
To uninstall it run the uninstall.sh script in the SysMonTask cloned directory, with:
Installation
```
$ ./uninstall.sh
Done
# Can be changed with the environment variable $DEST_DIR; defaults to prefix
$ ninja -C _build install
```

---
....
$ sysmontask
....

**Note: For Nvidia GPUs, nvidia-smi needs to be installed. Check if nvidia-smi is installed by running:**
```
Expand Down
21 changes: 21 additions & 0 deletions build-aux/meson/postinstall.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/usr/bin/env python3

from os import environ, path
from subprocess import call

prefix = environ.get('MESON_INSTALL_PREFIX', '/usr')
datadir = path.join(prefix, 'share')
destdir = environ.get('DESTDIR', '')

# Package managers set this so we don't need to run
if not destdir:
print('Updating icon cache...')
call(['gtk-update-icon-cache', '-qtf', path.join(datadir, 'icons', 'hicolor')])

print('Updating desktop database...')
call(['update-desktop-database', '-q', path.join(datadir, 'applications')])

print('Compiling GSettings schemas...')
call(['glib-compile-schemas', path.join(datadir, 'glib-2.0', 'schemas')])


8 changes: 8 additions & 0 deletions data/com.github.KrispyCamel4u.sysmontask.appdata.xml.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop">
<id>com.github.KrispyCamel4u.sysmontask.desktop</id>
<metadata_license>BSD-3-Clause</metadata_license>
<project_license>LicenseRef-proprietary</project_license>
<description>
</description>
</component>
4 changes: 2 additions & 2 deletions SysMonTask.desktop → ...ithub.KrispyCamel4u.sysmontask.desktop.in
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ TryExec=sysmontask
Exec=sysmontask

# change here for icon location
Icon=/usr/share/sysmontask/icons/SysMonTask.png
Icon=SysMonTask
Terminal=false
Type=Application
StartupNotify=true
Categories=GNOME;GTK;System;Monitor;
Keywords=Monitor;System;CPU;Memory;Network;History;Usage;Performance;Task;Manager;Activity;
Keywords=Monitor;System;CPU;Memory;Network;History;Usage;Performance;Task;Manager;Activity;
5 changes: 5 additions & 0 deletions data/com.github.KrispyCamel4u.sysmontask.gschema.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<schemalist gettext-domain="sysmontask">
<schema id="com.github.KrispyCamel4u.sysmontask" path="/com/github/KrispyCamel4u/sysmontask/">
</schema>
</schemalist>
File renamed without changes
45 changes: 45 additions & 0 deletions data/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
desktop_file = i18n.merge_file(
input: 'com.github.KrispyCamel4u.sysmontask.desktop.in',
output: 'com.github.KrispyCamel4u.sysmontask.desktop',
type: 'desktop',
po_dir: '../po',
install: true,
install_dir: join_paths(get_option('datadir'), 'applications')
)

desktop_utils = find_program('desktop-file-validate', required: false)
if desktop_utils.found()
test('Validate desktop file', desktop_utils,
args: [desktop_file]
)
endif

appstream_file = i18n.merge_file(
input: 'com.github.KrispyCamel4u.sysmontask.appdata.xml.in',
output: 'com.github.KrispyCamel4u.sysmontask.appdata.xml',
po_dir: '../po',
install: true,
install_dir: join_paths(get_option('datadir'), 'appdata')
)

appstream_util = find_program('appstream-util', required: false)
if appstream_util.found()
test('Validate appstream file', appstream_util,
args: ['validate', appstream_file]
)
endif

install_data('icons/SysMonTask.png',
install_dir: join_paths(get_option('datadir'), 'sysmontask/icons')
)

install_data('com.github.KrispyCamel4u.sysmontask.gschema.xml',
install_dir: join_paths(get_option('datadir'), 'glib-2.0/schemas')
)

compile_schemas = find_program('glib-compile-schemas', required: false)
if compile_schemas.found()
test('Validate schema file', compile_schemas,
args: ['--strict', '--dry-run', meson.current_source_dir()]
)
endif
4 changes: 4 additions & 0 deletions glade_files/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
install_subdir(
'../glade_files',
install_dir: join_paths(get_option('datadir'), 'sysmontask')
)
16 changes: 16 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
project('sysmontask',
version: '1.1.1',
meson_version: '>= 0.50.0',
default_options: [ 'warning_level=2',
],
)

i18n = import('i18n')


subdir('data')
subdir('sysmontask')
subdir('glade_files')
subdir('po')

meson.add_install_script('build-aux/meson/postinstall.py')
Empty file added po/LINGUAS
Empty file.
7 changes: 7 additions & 0 deletions po/POTFILES
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
data/com.github.KrispyCamel4u.sysmontask.desktop.in
data/com.github.KrispyCamel4u.sysmontask.appdata.xml.in
data/com.github.KrispyCamel4u.sysmontask.gschema.xml
src/window.ui
src/main.py
src/window.py

1 change: 1 addition & 0 deletions po/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
i18n.gettext('sysmontask', preset: 'glib')
Loading