Skip to content

Commit

Permalink
feat: make script installation directory global
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikhail Zolotukhin committed Nov 9, 2021
1 parent 3110c69 commit b82e0b2
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/kwinscript/kconf_update/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# SPDX-FileCopyrightText: 2021 Mikhail Zolotukhin <mail@genda.life>
# SPDX-License-Identifier: MIT

install(
FILES local_install_to_global.upd
DESTINATION ${KDE_INSTALL_KCONFUPDATEDIR}
)
install(
PROGRAMS local_install_to_global.sh
DESTINATION ${KDE_INSTALL_KCONFUPDATEDIR}
)
8 changes: 8 additions & 0 deletions src/kwinscript/kconf_update/local_install_to_global.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env sh

# SPDX-FileCopyrightText: 2021 Mikhail Zolotukhin <mail@genda.life>
# SPDX-License-Identifier: MIT

# Remove local installation of the script.
# It will be substituted with the global installation.
rm -r ~/.local/share/kwin/scripts/bismuth
7 changes: 7 additions & 0 deletions src/kwinscript/kconf_update/local_install_to_global.upd
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# SPDX-FileCopyrightText: 2021 Mikhail Zolotukhin <mail@genda.life>
# SPDX-License-Identifier: MIT

Version=5

Id=bismuth-local-install-to-global
Script=local_install_to_global.sh,bash

0 comments on commit b82e0b2

Please sign in to comment.