Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Slackware - Installation This forum is for the discussion of installation issues with Slackware.


  Search this Thread
Old 11-18-2012, 02:55 PM   #1
LQ Newbie
Registered: Nov 2012
Posts: 6

Rep: Reputation: Disabled
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 name="startup" type="empty">
+ <property name="ssh-agent" type="empty">
+ <property name="enabled" type="bool" value="false"/>
+ </property>
+ </property>
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
+ # ensure KDE startup compatibility
+ for F in /usr/env/*; do
+ test -f $F || continue
+ . $F
+ done
# start xfce4-session normally
+ # ensure KDE shutdown compatibility
+ for F in /usr/shutdown/*; do
+ test -f $F || continue
+ . $F
+ done

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

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

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

ssh-agent -k
Old 12-03-2012, 02:16 AM   #2
Registered: Feb 2010
Location: SF Bay Area
Posts: 183

Rep: Reputation: Disabled
I was wondering why gpg-agent and scdaemon were running

Xfce is getting to think it has become Magister Ludi.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
gpg / gpg-agent -- Can't connect to /root/.gnupg/S.gpg-agent jrtayloriv Linux - Security 7 10-20-2015 03:27 PM
How to run fsck during a shutdown sequence, or how to run one-time init scripts? bgoodr Debian 5 11-28-2010 03:08 PM
Modify Startup and Shutdown Scripts explosive_tom Debian 3 12-02-2008 12:09 AM
SSH-agent at startup CoffeeKing!!! Linux - Security 3 09-23-2008 10:54 AM
ssh-agent not working properly... assasukasse Linux - Software 1 10-09-2007 12:18 PM

All times are GMT -5. The time now is 09:16 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration