Skip to content

Commit

Permalink
Merge pull request #35 from Prayag2/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
Prayag2 authored Apr 11, 2021
2 parents 1edc5a3 + 1bcf816 commit 45ba48c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [2.0.1] - 2021-04-11
### Removed
- KDE Plasma won't be restarted after applying a new configuration now. You'll have to restart it yourself. This was done because using Konsave on other DEs would give an error.

## [2.0.0] - 2021-04-11
### Added
- Possibility to define multiple backup targets via the configuration file.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Install from PyPI
You may need to log out and log in to see all the changes.
### Export a profile as a ".knsv" file to share it with your friends!
`konsave -e <profile id>` or `konsave --export-profile <profile id>`
### Import a ".knsv file
### Import a ".knsv" file
`konsave -i <path to the file>` or `konsave --import-profile <path to the file>`
### Show current version
`konsave -v` or `konsave --version`
Expand Down
7 changes: 0 additions & 7 deletions konsave/funcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,6 @@ def log(msg, *args, **kwargs):
print(f"Konsave: {msg.capitalize()}", *args, **kwargs)


def restart_kde():
"""Replaces plasmashell."""
log("restarting kde...")
os.system("plasmashell --replace > /dev/null 2>&1 & disown")


@exception_handler
def copy(source, dest):
"""
Expand Down Expand Up @@ -222,7 +216,6 @@ def apply_profile(profile_id, profile_list, profile_count):
location = os.path.join(profile_dir, name)
copy(location, profile_config[name]["location"])

restart_kde()

log(
"Profile applied successfully! Please log-out and log-in to see the changes completely!"
Expand Down

0 comments on commit 45ba48c

Please sign in to comment.