I decided to stick my lessons learned from last night into a single file. It's probably simpler than I make it out to be, I just don't understand enough programming to know which steps can be winnowed out without breaking things.
Tags:

From: [identity profile] foomf.livejournal.com


Depends on which shell you're using.

If you really want to use the same wallpaper for all of your tabs, instead of a different, themely one per tab, the following can make it simpler:

replace
sudo cp NAME.jpg accessibility_NAME_wallpaper.jpg
sudo cp NAME.jpg business_NAME_wallpaper.jpg
sudo cp NAME.jpg home_NAME_wallpaper.jpg
sudo cp NAME.jpg student_NAME_wallpaper.jpg
sudo cp NAME.jpg NAME_wallpaper.jpg
with
sudo cp NAME.jpg NAME_wallpaper.jpg
for x in accessibility business home student
do
sudo ln NAME_wallpaper.jpg ${x}_NAME_wallpaper.jpg
done

This will make a single file that shows up everywhere. If you change the contents of the file with GIMP or write over it, all the files will change.

Otherwise, that's pretty much what you'll have to do. I don't know the kwrite editor so I can't tell you how to globally search and replace identical strings to get the new ones with that editor, but it's probably simple.

From: [identity profile] jarodrussell.livejournal.com


simpleui.rc seems to be an XML file, so it should actually be pretty easy to play with.

From: [identity profile] dvandom.livejournal.com


Well, there's only five places where you can replace the wallpaper filename in simpleui.rc, so no big deal there.

Is that ln bit an alias definition or something?

From: [identity profile] foomf.livejournal.com


ln is unix-ese for 'link' ...

Files are, essentially, sequences of blocks on a storage medium linked together by pointers. The directory is a file which contains pointers to the things inside it. In Unix-style file systems, there is a table containing initial pointers called inodes, and every file actually has an inode associated with it, and an inode contains (among other things) a use-count. When an inode has a use-count of 0 it means it can be garbage collected. When you create a file, you allocate an inode, set the use count to 1, create an entry in a directory with the inode number, and start attaching blocks of storage to it.
When you link to a file, you create an entry in a directory and copy the inode number into the entry, and increment the inode's use-count.

So, that's not quite an alias - each of those links is a legitimate reference to exactly the same data object.
.

Profile

dvandom: (Default)
dvandom

Most Popular Tags

Powered by Dreamwidth Studios

Style Credit

Expand Cut Tags

No cut tags