summaryrefslogtreecommitdiffstats
path: root/mga-bg-res/mga-bg-res.service
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2015-05-02 09:53:00 +0200
committerRémi Verschelde <rverschelde@gmail.com>2015-05-02 09:53:00 +0200
commit5682ab44e3ecca0a18404885bcfbf97b8762a89b (patch)
tree10ca46f93134fb36640b49353e9c578ef24ba8a5 /mga-bg-res/mga-bg-res.service
parent3e6f62173f00b6f60050c07485948bfbbb4b59ba (diff)
downloadtheme-5682ab44e3ecca0a18404885bcfbf97b8762a89b.tar
theme-5682ab44e3ecca0a18404885bcfbf97b8762a89b.tar.gz
theme-5682ab44e3ecca0a18404885bcfbf97b8762a89b.tar.bz2
theme-5682ab44e3ecca0a18404885bcfbf97b8762a89b.tar.xz
theme-5682ab44e3ecca0a18404885bcfbf97b8762a89b.zip
Make mga-bg-res a systemd service that uses monitor-probe
Now runs as a systemd service with root privileges, therefore the mga-bg-res C binary is no longer needed. Uses monitor-probe to find the optimal resolution when X is not yet started, and handles cases where monitor-probe fails by defaulting to 4:3 aspect ratio.
Diffstat (limited to 'mga-bg-res/mga-bg-res.service')
-rw-r--r--mga-bg-res/mga-bg-res.service9
1 files changed, 9 insertions, 0 deletions
diff --git a/mga-bg-res/mga-bg-res.service b/mga-bg-res/mga-bg-res.service
new file mode 100644
index 0000000..821fb9f
--- /dev/null
+++ b/mga-bg-res/mga-bg-res.service
@@ -0,0 +1,9 @@
+[Unit]
+Description=Adapt Mageia theme to the monitor resolution
+
+[Service]
+Type=oneshot
+ExecStart=/usr/libexec/mga-bg-res
+
+[Install]
+WantedBy=multi-user.target