I’ve been using rainlendar for quite a while now. I really love it, I can easily manage all my schedule and remember staff that I would forget..
There is just a little problem in using Rainlendar with Ubuntu. Probably you would like your Rainlendar calender to start at the startup. In order to do this you probably did the following:
System->Options->Sessions->Add (Name: rainlendar, Command:rainlendar2, Comment: whatever you want)
this action is supposed to make Rainlendar start at the startup. It’s actually the right way, and it actually starts in the majority of cases. But in a non-trascurable number of cases, it doesn’t start properly. This mean that Rainlendar could not start at all or that it maybe starts but it’s interface is splitted over the whole desktop (there is typically a small number in the upper left corner of your Desktop).
This happens if Rainlendar starts before some important elements of the GNOME toolbar has been initialized.
An easy and powerful way to resolv this issue is quite obvious: delay the startup of Rainlendar.
Creating the script
As you maybe already know the Terminal is really, really powerful. For an advanced user it’s basilar to have a terminal to use, because it gives you the full (well, almost :D) control on your machine. As this tool is really useful, it also provides a nice function which can be used in our case: sleep. As the name states, this function make the script sleep (wait) for X seconds before going on executing the script content). So these are the steps to take:
- Open a terminal
- Move to the directory where you want to create the script (maybe you home directory it you just want to modify the behavior for your user, otherwise you can put it in /home). To move between your directories, the command to use is cd. For example: cd ~/Desktop will lead you to your user’s desktop as the tilde (~) stays for home directory;
- If you are in your home directory you don’t need any particular permission to move. If you on the other hand are in the /home directory you need to get the rights of administrator. In order to do this you can try sudo su. After this command you will be asked for your password. If you are among the sudoers (administrators) you should immediatly gain the administrator rights. If you are not among them, well… you can only act in your home directory;
- Create the script. Now type nano startRainlendar.sh. Nano is a small but very powerful command-line writing tool. This command will open the newly created startRainlendar.sh file;
- Now fill in this file! As we discovered before we need to use the sleep command. So these are the rows you have to insert:#!/bin/sh
- Now save the file. To do this type CTRL+O and then ENTER;
- We now have the file we need. Making this file start at the startup should solve our problem. But there is just another issue: we must make our file executable! To do this the command to use is chmod. I’ll probably tell you what I know about this command in another post some day. So far you just need to execute this command chmod 700
- The last thing to do is to make this script start at the startup. You should already have a rainlender2 entry in your startup list. To modify this (or to add a new one) go on System->Preferences->Session. Find the rainlendar2 entry and change the “Command” to /home/startRainlendar.sh or /home/USER/YOURDIR/startRainlendar.sh depending on where you decided to create your startup script. If you don’t have a rainlendar2 entry, click on the “Add” button and simply create a new entry (the important field is “Command”, the other two fields are just your your usage.
This should solve the issue. Hope this helps.
Now let’s go on with studies.