Commit c12befa1 authored by Nate Graham's avatar Nate Graham 💤
Browse files

Add `sudo` to the lines in that need it so you don't need...

Add `sudo` to the lines in that need it so you don't need to sudo the whole thing

Because this script copies things to /, it needs to be run with `sudo`. But two of the
copy operations also copy things to your home directory, and if you `sudo` the whole
script, this results in those files being copied with root ownership, which can cause
problems later.

This patch prepends `sudo` to just the copy operations that need it so that the ones
that don't aren't run with inappropriately elevated permissions.

Test Plan:
- Run `~/kde/build/plasma-workspace/login-sessions/`
- Get prompted for the root password
- Enter it
- See that `` and `` in `~/kde/usr/lib64/libexec/` have user ownership, not root ownership

Reviewers: apol, #plasma

Reviewed By: apol

Subscribers: plasma-devel

Tags: #plasma

Differential Revision:
parent 7f0ce07b
set -e
install @CMAKE_CURRENT_BINARY_DIR@/plasmax11-dev.desktop /usr/share/xsessions/
install @CMAKE_CURRENT_BINARY_DIR@/plasmawayland-dev.desktop /usr/share/wayland-sessions/
sudo install @CMAKE_CURRENT_BINARY_DIR@/plasmax11-dev.desktop /usr/share/xsessions/
sudo install @CMAKE_CURRENT_BINARY_DIR@/plasmawayland-dev.desktop /usr/share/wayland-sessions/
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment