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

Notices


Reply
  Search this Thread
Old 11-18-2012, 02:55 PM   #1
rpetrov
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>
+ <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
 
Old 12-03-2012, 02:16 AM   #2
lazardo
Member
 
Registered: Feb 2010
Location: SD Bay Area
Posts: 274

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

Xfce is getting to think it has become Magister Ludi.

Cheers,
 
  


Reply



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 9 06-03-2019 10:06 AM
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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation

All times are GMT -5. The time now is 01:27 AM.

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