LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware - Installation (https://www.linuxquestions.org/questions/slackware-installation-40/)
-   -   more xfce 4.10 startup/shutdown scripts or run properly {gpg|ssh}-agent (https://www.linuxquestions.org/questions/slackware-installation-40/more-xfce-4-10-startup-shutdown-scripts-or-run-properly-%7Bgpg%7Cssh%7D-agent-4175437707/)

rpetrov 11-18-2012 02:55 PM

more xfce 4.10 startup/shutdown scripts or run properly {gpg|ssh}-agent
 
xfce4-session 4.10 in Slackware 14.0 hard code into program code how to run {gpg|ssh}-agent. Unfortunately gpg-agent can not be used as ssh-agent replacement. Also program code does not allow both agents to be run.


a) First step is to prevent globally xfce session to run agents with patch
=====
$ diff -u xfce4-session.xml-SLACK xfce4-session.xml
--- xfce4-session.xml-SLACK 2012-07-20 04:01:05.000000000 +0300
+++ xfce4-session.xml 2012-11-18 16:35:07.867617226 +0200
@@ -34,4 +34,9 @@
<property name="splash" type="empty">
<property name="Engine" type="string" value=""/>
</property>
+ <property name="startup" type="empty">
+ <property name="ssh-agent" type="empty">
+ <property name="enabled" type="bool" value="false"/>
+ </property>
+ </property>
</channel>
=====
File is located /etc/xdg/xfce4/xfconf/xfce-perchannel-xml/

b) Next is to use startup/shutdown scripts shared with kde
=====
$ diff -u xinitrc-SLACK xinitrc
--- xinitrc-SLACK 2012-07-20 04:01:05.000000000 +0300
+++ xinitrc 2012-11-18 22:08:03.775146086 +0200
@@ -99,8 +99,20 @@
exit 1
fi
else
+ # ensure KDE startup compatibility
+ for F in /usr/env/*; do
+ test -f $F || continue
+ . $F
+ done
+
# start xfce4-session normally
xfce4-session
+
+ # ensure KDE shutdown compatibility
+ for F in /usr/shutdown/*; do
+ test -f $F || continue
+ . $F
+ done
fi

exit 0
=====
File is located in /etc/xdg/xfce4

After this just create scripts to run you favourite agents and more ..
$ cat /usr/env/00-ssh-agent.sh
#! /bin/sh

eval `ssh-agent`
$ cat /usr/shutdown/99-ssh-agent.sh
#! /bin/sh

ssh-agent -k

lazardo 12-03-2012 02:16 AM

I was wondering why gpg-agent and scdaemon were running

Xfce is getting to think it has become Magister Ludi.

Cheers,


All times are GMT -5. The time now is 12:14 AM.