Page 1 of 4

"Add to backgrounds" popup menu typerule and scrip

Posted: Sun May 06, 2007 2:20 pm
by deBug
Hi all.
I have written a typerule and a script that makes it a bit easier to use images as backgrounds in IRIX.

Once installed you can select one or several images and right clicking it you will get a pop up menu "Add to backgrounds".
After that the image will show up in the backgrounds settings.
This will work for JPG, BMP, SGI, TIF and GIF images.

You can download the stuff here http://zachrisson.net/addtobackgroundsmenu.zip .
After you unzipped the folder you just run the install script, wait a minute or so for the typerules to reconfigure and you will have the menu installed.
The computer needs to be running IRIX 6.5.22.
Let me know if you have any problem that needs fixing.

//deBug

Posted: Sun May 06, 2007 5:15 pm
by nekonoko
Works great! Only issue I can see is that distributing as a *.zip loses the execute bit on 'addtobg' and 'install' (which is why tar files compressed with gzip/bzip are so prevalent ;) ).

Posted: Sun May 06, 2007 5:23 pm
by deBug
nekonoko wrote:Works great! Only issue I can see is that distributing as a *.zip loses the execute bit on 'addtobg' and 'install' (which is why tar files compressed with gzip/bzip are so prevalent ;) ).


OK, sorry for that, no IRIX machine turned on tonight so I was a bit lazy :)
Next release will be tared. I might even tardist it if I get some time to learn how to do that.

Nice to hear that it is working!

new link

Posted: Mon May 07, 2007 1:05 pm
by deBug
OK, I tared it up for you all.
Get it here http://zachrisson.net/addtobg/addtobg-irix6.5.22.tar


Here is some screenshots that explains what it does.

After installation select
either several images by draging:
Image

or select a single image:
Image

right click and use the bottom menu "Add to backgrounds":
Image

The image(s) are now added to your backgrounds settings, just start the background setting dialog:
Image

And there you will find the newly added image. The name of the image is taken from the file name:
Image

Just select it and click "Apply" and you got yourself a new background in a few seconds.
Image


Enjoy!
//deBug

Posted: Mon May 07, 2007 1:20 pm
by nekonoko
Added this to the blog. Thanks!

Posted: Mon May 07, 2007 2:25 pm
by ipaddict
*Very* cool. Thanks!

Posted: Mon May 07, 2007 2:46 pm
by deBug
nekonoko wrote:Added this to the blog. Thanks!


I'm honored.
For an IRIX guy that's like being slashdotted :D

Posted: Mon May 07, 2007 2:48 pm
by foetz
neat thing. thanks!!

Posted: Mon May 07, 2007 4:34 pm
by cybercow
sorry ppl i install this and get the "Add to backgrounds" option on right click, then i choosed one jpg image, when i go to Desktop > Customize > Background - i don`t see it in list... i restarted, i have irix 6.5.22m ? sorry i`m stupid

Posted: Tue May 08, 2007 3:16 am
by SupremeCmdr
Cool script.

This might be a silly question, but do I have to run this as root to get it working? I've just run it as myself and I'm getting loads of permission denied errors and I appear to have lost all my icons. :oops:

EDIT: Logged out and the icons are back. Though I still don't have the cool right click option. Note the image I am trying is a jpeg.

Now off to find some cool stuff to pretty up my O2.

Posted: Tue May 08, 2007 3:51 am
by cybercow
...and I appear to have lost all my icons.


Ya i haved the same situation, when installed i lost all my icons then when restarted the icons are back, i login as root too and this one not works for me :(

Posted: Tue May 08, 2007 3:52 am
by deBug
SupremeCmdr wrote:Cool script.

This might be a silly question, but do I have to run this as root to get it working? I've just run it as myself and I'm getting loads of permission denied errors and I appear to have lost all my icons. :oops:

EDIT: Logged out and the icons are back. Though I still don't have the cool right click option. Note the image I am trying is a jpeg.

Now off to find some cool stuff to pretty up my O2.


Yes, you have to be loged in with system rights as the script puts a file in /usr/sbin and I guess also the rebuild of the typerules can only be done by root or other admin account.
But once you have installed it the menu should be available for all users.

//debug

Posted: Tue May 08, 2007 4:04 am
by deBug
cybercow wrote:
...and I appear to have lost all my icons.


Ya i haved the same situation, when installed i lost all my icons then when restarted the icons are back, i login as root too and this one not works for me :(

The dissapearing icons is due to me restarting the desktop after the typerule is installed. I had the same effect on one of my testcomputers.
It seems that restarting the desktop has this sideeffect some times.
I will do some research to see if this can be avoided.


Regarding your problem, once you have installed it as root, do you get the menu ?

If so try to add an image using the pop up menu and then open the file .backgrounds in in a text editor like jot or nedit.
The .backgrounds file is located in your home folder (if you are loged in as root the file is located in the root)
Then scroll down to the bottom of the .backgrounds file and see if your newly added image file is referenced there (the path to the image file should be found on a couple of lines).

Let me know the result and I'll see if I can nail the problem for you.

//deBug
T

Posted: Tue May 08, 2007 4:22 am
by SupremeCmdr
I've re-run the script as root and it works beautifully.
Tidy work deBug.

Perhaps you could add that extra info to the README file, just so dumb noobs like me know how to get it working. :wink:

I was just being cautious about running stuff as root, not really in the mood for an IRIX reinstall.

Posted: Tue May 08, 2007 5:46 am
by deBug
SupremeCmdr wrote:I've re-run the script as root and it works beautifully.
Tidy work deBug.

Nice :)

Perhaps you could add that extra info to the README file, just so dumb noobs like me know how to get it working. :wink:

I was just being cautious about running stuff as root, not really in the mood for an IRIX reinstall.


Sure thing, I might even do a test in the install script and give a warning if one is not loged in as root to aviod future problems.

//deBug