LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-05-2010, 11:19 AM   #1
sanjayagayan
Member
 
Registered: Feb 2010
Location: Sri Lanka
Posts: 59

Rep: Reputation: 15
How to save settings in Ubuntu 10.04


I am using ubuntu 10.04.I have installed animated desktop using xwinwrap..Each time loging my animated desktop not available and have to setup again.Sky doom picture setup by ccsm also not available and have to setup.Every time i loging to my gnome desktop i have to configure them.Is there any way to save this settings before logout.
 
Old 08-06-2010, 09:36 PM   #2
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,186

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
From what I could see, xwinwrap is a command line tool with no configuration file.

You could write a script to execute your xwinwrap command(s), save it, create a .desktop file to execute it when your window session starts.

On my laptop, I have a lot of books (as HTML files) stored in a compressed directory that I want to be able to access from my desktop, so I need to run fusecompress every time I start my GUI. Here's how I did that, which I'm showing you so you can see how it's done.

First, create the script that does what you want:
Code:
$ cat Uncompress_Books
#!/bin/bash
#
# Mount a compressed file system
#
compressed="/home/Peter/Compressed Books"
uncompressed="/home/Peter/Books"
args="allow_root"
# Are we using the same directory for compressed and uncompressed data?
[ "$compressed" = "$uncompressed" ] && args="$args",nonempty
# Skip the mount part if the target is already mounted
mounted=$(mount | grep "$uncompressed")
if [ -z "$mounted" ]
then
  fusecompress -o "$args" \""$compressed"\" \""$uncompressed"\"
fi
Note that the srcipt should be executable: chmod +x Uncompress_Books

Next, create the .desktop file:
Code:
$ cat ~/.config/autostart/Uncompress\ Books.desktop 
[Desktop Entry]
Comment[en_US]=
Comment=
Exec=/home/Peter/Scripts/bash/Uncompress_Books
GenericName[en_US]=
GenericName=
Icon=archive-extract
MimeType=
Name[en_US]=Uncompress Books
Name=Uncompress Books
NoDisplay=false
Path=
StartupNotify=false
Terminal=false
TerminalOptions=
Type=Application
X-DBUS-ServiceName=
X-DBUS-StartupType=
X-KDE-SubstituteUID=false
X-KDE-Username=
And move the file into the .config/autostart directory in your home directory. (I think that both GNOME and KDE use that directory for things to be run when either GI starts.)

Logout and back in to confirm that it works as you expect, and you're done. (Note that I suggest a logout, not a reboot.)

(Oh, for new Linux users who may read this, the first line of those two file listings - the parts in bold - are the command used to display the files contents, and not part of the file itself.)
 
  


Reply


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
iptables-save can't save settings Actionscript3 Linux - Software 4 01-29-2009 10:26 AM
Cant save my the screen resolution settings on ubuntu 8.10 wanas Linux - Hardware 1 11-12-2008 05:00 PM
How Can I Save Settings When I Uninstall Ubuntu? davidx Linux - Software 1 11-04-2008 10:30 AM
settings won't save miner49er Debian 1 04-01-2006 12:27 PM
How do I save my settings? laverscheval DamnSmallLinux 2 10-08-2004 08:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:42 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration