Rainlendar on Ubuntu: everything fine except…

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:

  1. Open a terminal
  2. 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;
  3. 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;
  4. 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;
  5. 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
    sleep 10
  6. Now save the file. To do this type CTRL+O and then ENTER;
  7. 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
  8. 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.

Rainlendar on Ubuntu: everything fine except…

4 thoughts on “Rainlendar on Ubuntu: everything fine except…

  1. Sorry Man, I do not have any other advise for this kind of problem. I hoped this would solve all the situations, but I assume that this is not true. What I can suggest you to do is to write on a big forum (maybe ubuntuforums.org or even someone just about Rainlendar), describing your situation and letting them know that you already tried the kind of solution described in the blog.

    Good luck!

  2. Michael says:

    Can you specify what you mean by “chmod 700”? Should I type that in a new terminal or exit the Nano window then type it in?

    I got this on my end:
    michael@ubuntu:~$ cd ~/Desktop
    michael@ubuntu:~/Desktop$ nano startRainlendar.sh
    michael@ubuntu:~/Desktop$ chmod 700
    chmod: missing operand after `700′
    Try `chmod –help’ for more information.

  3. miciah says:

    Dear Michael,
    try this:

    michael@ubuntu:~$ chmod 700 startRainlendar.sh

    …hope it help 🙂

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s