]> git.pld-linux.org Git - packages/nvidia-settings.git/commitdiff
load nvidia-settings on startup
authorElan Ruusamäe <glen@delfi.ee>
Sun, 17 Feb 2013 13:24:04 +0000 (15:24 +0200)
committerElan Ruusamäe <glen@delfi.ee>
Sun, 17 Feb 2013 13:24:04 +0000 (15:24 +0200)
nvidia-settings-autostart.desktop [new file with mode: 0644]
nvidia-settings.spec

diff --git a/nvidia-settings-autostart.desktop b/nvidia-settings-autostart.desktop
new file mode 100644 (file)
index 0000000..a9c6d1e
--- /dev/null
@@ -0,0 +1,5 @@
+[Desktop Entry]
+Type=Application
+Exec=nvidia-settings -l
+Name=nVidia startup settings
+Comment=load nVidia preferences
index 4a1c9ff1cad790fc58457e88d31ae75c81e27957..c75f0a1b3412fd062da8123dbc5dd2133f7e594f 100644 (file)
@@ -16,6 +16,7 @@ Source0:      ftp://download.nvidia.com/XFree86/nvidia-settings/%{name}-%{version}.ta
 # Source0-md5: bcd79ca8d4f806616e206f54a6cc3ab3
 Source1:       %{name}.desktop
 Source2:       %{name}.png
+Source3:       %{name}-autostart.desktop
 URL:           ftp://download.nvidia.com/XFree86/nvidia-settings/
 BuildRequires: OpenGL-devel
 BuildRequires: xorg-lib-libX11-devel
@@ -110,13 +111,14 @@ sterowników NVIDIA.
 %install
 rm -rf $RPM_BUILD_ROOT
 %if %{with nvidia_settings}
-install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_desktopdir},%{_pixmapsdir}}
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_desktopdir},%{_pixmapsdir},/etc/xdg/autostart}
 %{__make} install \
        INSTALL="install -p" \
        PREFIX=%{_prefix} \
        DESTDIR=$RPM_BUILD_ROOT
 cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
 cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
+cp -p %{SOURCE3} $RPM_BUILD_ROOT/etc/xdg/autostart/%{name}.desktop
 %endif
 
 %if %{with libXNVCtrl}
@@ -166,6 +168,7 @@ rm -rf $RPM_BUILD_ROOT
 %{_mandir}/man1/nvidia-settings.1*
 %{_desktopdir}/nvidia-settings.desktop
 %{_pixmapsdir}/nvidia-settings.png
+/etc/xdg/autostart/%{name}.desktop
 %endif
 
 %if %{with utils}
This page took 0.264972 seconds and 4 git commands to generate.