пятница, 29 марта 2013 г.

Enable synergyc start with xdm on openSUSE 12.3

Finnaly found time to make synergyc start with xdm, so now i dont need to attach keyboard/mouse to login after restart. This excellent site saved time of figuring how to do that right https://sites.google.com/site/isuraeru/synergyopensuse
Here is patch of changes

diff -Naur a/etc/X11/xdm/Xsession b/etc/X11/xdm/Xsession
--- a/etc/X11/xdm/Xsession 2013-03-29 15:29:32.392299895 +0400
+++ b/etc/X11/xdm/Xsession 2013-03-29 15:15:32.000000000 +0400
@@ -249,6 +249,11 @@
      command="$WINDOWMANAGER"
 fi
 
+# Synergy
+/usr/bin/killall synergyc
+sleep 1
+/usr/bin/synergyc --name struchok 172.16.7.213
+
 #
 # Now execute the final command line
 #
diff -Naur a/etc/X11/xdm/Xsetup b/etc/X11/xdm/Xsetup
--- a/etc/X11/xdm/Xsetup 2013-03-29 15:29:10.403389845 +0400
+++ b/etc/X11/xdm/Xsetup 2013-03-29 15:12:07.000000000 +0400
@@ -189,6 +189,11 @@
     test "$USEDPMS" = "yes" && $xset +dpms
 fi
 
+# Synergy
+/usr/bin/killall synergyc
+sleep 1
+/usr/bin/synergyc --name struchok 172.16.7.213
+
 #
 # Set keymap for various displays
 #
diff -Naur a/etc/X11/xdm/Xstartup b/etc/X11/xdm/Xstartup
--- a/etc/X11/xdm/Xstartup 2013-03-29 15:29:47.756239843 +0400
+++ b/etc/X11/xdm/Xstartup 2013-03-29 15:14:08.000000000 +0400
@@ -23,6 +23,10 @@
 type shopt &> /dev/null && shopt -s execfail
 set +e     &> /dev/null
 
+/usr/bin/killall synergyc
+sleep 1
+
+#
 # Check if the machine is a TabletPC and kill xvkbd
 # to avoid multiple start on user desktop
 #

Постоянные читатели