Skip to content

Commit

Permalink
fix: add dependencies and enable services
Browse files Browse the repository at this point in the history
Change-Id: I6ce32d5dc1ac05663cd7ba2dda25bdf6f3413267
  • Loading branch information
justforlxz authored and deepin-gerrit committed Oct 25, 2017
1 parent 91ca443 commit 70aad40
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/display/displayworker.cpp
Expand Up @@ -341,6 +341,9 @@ void DisplayWorker::setNightMode(const bool nightmode)
else
cmd = "stop";

process.execute("systemctl", QStringList() << "--user" << "enable" << "redshift.service");
process.close();

process.execute("systemctl", QStringList() << "--user" << cmd << "redshift.service");
process.close();

Expand Down

0 comments on commit 70aad40

Please sign in to comment.