Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
<solved> [OT] Frage zu KDE - sowas wie autostop.sh gesucht
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
Aldo
Guru
Guru


Joined: 15 Jan 2003
Posts: 440
Location: Cologne, Germany

PostPosted: Thu Apr 26, 2007 6:36 pm    Post subject: <solved> [OT] Frage zu KDE - sowas wie autostop.sh ges Reply with quote

Hallo,

meine Frage bezieht sich auf KDE:
Beim anmelden eines Users wird ja ~/.kde/Autostart/autostart.sh ausgeführt.
Gibt es etwas ähnliches auch für das ausloggen?
Also sowas wie autostop.sh oder so...
Konkret geht es mir um folgendes:
Melde ich mich per kdm an wird per autostart.sh geguckt ob ein bestimmter USB-Stick vorhanden ist, von diesem ein EncFS-Keyfile geholt, EncFS gemounted und diverse Links angelegt. (z.B. .ssh nach <verschlüsselt>/.ssh)
Nun möchte ich, daß beim abmelden diese Links wieder enfernt werden und das EncFS ungemounted wird.
Hab das bisher per /etc/init.d/local.stop gemacht, aber ich würde es besser und sinvoller finden wenn es auch bei einem "normalen" Userwechsel ohne reboot oder so funktionieren würde...
Hat jemand eine Ide wie sich das bewerkstelligen läßt?
_________________
Abit A-N78-HD
Phenom 9750
8 GB Ram
Linux 2.6.29-gentoo
FreeBSD 7.2


Last edited by Aldo on Thu Apr 26, 2007 7:13 pm; edited 1 time in total
Back to top
View user's profile Send private message
Finswimmer
Bodhisattva
Bodhisattva


Joined: 02 Sep 2004
Posts: 5467
Location: Langen (Hessen), Germany

PostPosted: Thu Apr 26, 2007 6:59 pm    Post subject: Reply with quote

Unter: Control Center -> Sound & Multimedia -> System Notifications -> KDE is exiting (Advanced) gibt es den Punkt "Programm ausführen"

Tobi
_________________
Bitte auf Rechtschreibung, korrekte Formatierung und Höflichkeit achten!
Danke
Back to top
View user's profile Send private message
Fauli
l33t
l33t


Joined: 24 Apr 2004
Posts: 760
Location: Moers, Germany

PostPosted: Thu Apr 26, 2007 7:08 pm    Post subject: Reply with quote

Oder ein Skript in das Verzeichnis "~/.kde/shutdown" legen (chmod +x nicht vergessen).
_________________
Do your part to beautify the web! Turn off link underlining!
Back to top
View user's profile Send private message
Aldo
Guru
Guru


Joined: 15 Jan 2003
Posts: 440
Location: Cologne, Germany

PostPosted: Thu Apr 26, 2007 7:12 pm    Post subject: Reply with quote

Danke!
Daß es so einfach ist hätte ich nicht gedacht.
Manchmal sieht man echt den Wald vor lauter Bäumen nicht... :oops:
_________________
Abit A-N78-HD
Phenom 9750
8 GB Ram
Linux 2.6.29-gentoo
FreeBSD 7.2
Back to top
View user's profile Send private message
ok
Guru
Guru


Joined: 11 Jul 2006
Posts: 390
Location: germany

PostPosted: Fri Apr 27, 2007 7:30 pm    Post subject: Reply with quote

Fauli wrote:
Oder ein Skript in das Verzeichnis "~/.kde/shutdown" legen (chmod +x nicht vergessen).

Bei mir ist kein shutdown - Verzeichnis im angegebenen Pfad vorhanden?!
Code:
oliver@genlap2 ~ $ ls -a ~/.kde/
.  ..  Autostart  cache-genlap2  share  socket-genlap2  tmp-genlap2
Back to top
View user's profile Send private message
Aldo
Guru
Guru


Joined: 15 Jan 2003
Posts: 440
Location: Cologne, Germany

PostPosted: Fri Apr 27, 2007 7:47 pm    Post subject: Reply with quote

Quote:
Bei mir ist kein shutdown - Verzeichnis im angegebenen Pfad vorhanden?!

Einfach anlegen.
_________________
Abit A-N78-HD
Phenom 9750
8 GB Ram
Linux 2.6.29-gentoo
FreeBSD 7.2
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum