use su-to-root instead of upstream gsmartcontrol-root script
--- a/data/Makefile.in
+++ b/data/Makefile.in
@@ -36,7 +36,7 @@ host_triplet = @host@
 target_triplet = @target@
 subdir = data
 DIST_COMMON = $(dist_man_MANS) $(srcdir)/Makefile.am \
-	$(srcdir)/Makefile.in $(srcdir)/gsmartcontrol-root.in \
+	$(srcdir)/Makefile.in \
 	$(srcdir)/gsmartcontrol.desktop.in
 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
 am__aclocal_m4_deps = $(top_srcdir)/autoconf.m4/ac_cxx_exceptions.m4 \
@@ -58,7 +58,7 @@ am__configure_deps = $(am__aclocal_m4_de
 	$(ACLOCAL_M4)
 mkinstalldirs = $(install_sh) -d
 CONFIG_HEADER = $(top_builddir)/config.h
-CONFIG_CLEAN_FILES = gsmartcontrol.desktop gsmartcontrol-root
+CONFIG_CLEAN_FILES = gsmartcontrol.desktop
 am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)" \
 	"$(DESTDIR)$(appdatadir)" "$(DESTDIR)$(desktopdir)" \
 	"$(DESTDIR)$(pixmapsdir)"
@@ -237,7 +237,6 @@ pixmaps_DATA = 48/gsmartcontrol.png gsma
 
 # Put everything inside the distribution
 EXTRA_DIST = $(appdata_DATA) gsmartcontrol.ico gsmartcontrol.xpm
-bin_SCRIPTS = gsmartcontrol-root
 CLEANFILES = $(bin_SCRIPTS)
 all: all-recursive
 
@@ -273,8 +272,6 @@ $(ACLOCAL_M4):  $(am__aclocal_m4_deps)
 	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
 gsmartcontrol.desktop: $(top_builddir)/config.status $(srcdir)/gsmartcontrol.desktop.in
 	cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
-gsmartcontrol-root: $(top_builddir)/config.status $(srcdir)/gsmartcontrol-root.in
-	cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
 install-binSCRIPTS: $(bin_SCRIPTS)
 	@$(NORMAL_INSTALL)
 	test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -52,6 +52,5 @@ pixmaps_DATA = 48/gsmartcontrol.png gsma
 EXTRA_DIST = $(appdata_DATA) gsmartcontrol.ico gsmartcontrol.xpm
 
 
-bin_SCRIPTS = gsmartcontrol-root
 CLEANFILES = $(bin_SCRIPTS)
 
--- a/data/gsmartcontrol.desktop.in
+++ b/data/gsmartcontrol.desktop.in
@@ -23,7 +23,7 @@ Icon=gsmartcontrol
 #X-KDE-RootOnly=true
 
 # Run with root permissions.
-Exec="@prefix@/bin/gsmartcontrol-root"
+Exec=su-to-root -X -c gsmartcontrol
 
 # Build service rpmlint gives errors without this
 X-SuSE-translate=false
