Menghapus Sesi Tersimpan di Desktop XFCE

Saya menggunakan Ubuntu Studio 14.04, begini supaya sesi yang tersimpan dihapus secara otomatis ketika komputer dinyalakan. Sunting berkas /etc/rc.local, dan berikut isi berkas tersebut di laptop saya :

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
 
/usr/local/sbin/sshd -f /usr/local/etc/sshd_config
 
# service wifi_access_point stop
 
# hapus sesi agar tidak dijalankan ulang ketika login
rm -rf /home/samsul/.cache/sessions/*
 
# Yah, meskipun baru dinyalakan, network-manager akan selalu direstart
sleep 30
service network-manager restart
 
exit 0

Demikian.

  • linux/Menghapus.Sesi.Tersimpan.di.Desktop.XFCE
  • Terakhir diubah: 11 bulan yang lalu
  • (Perubahan eksternal)