Archive

Posts Tagged ‘skype’

Relative path to absolute path in a bash shell.

January 13th, 2012 No comments

There are many ways to convert a relative path to an absolute path which can be accessed regardless of the current working directory, particularly useful for scripting. Later, I may make a post to demonstrate the various ways, but the easiest way to do this is to use the readlink utility which comes bundled with just about every Linux distribution with the exception of Debian based systems which use realpath instead.

$ pwd
/media/usbdisk/bin

$ readlink -f ./../mnt/.Skype
/media/usbdisk/mnt/.Skype

When you use readlink in a script and assign a resulting path to a variable, you should add the n flag (-fn) to suppress the trailing newline.

As you might have noticed, I needed to use this in a script to launch Skype but specify that I want to use the data files on my usb key as opposed to the default ~/.Skype location. This however was not working with relative paths and Skype would crash with something like:

$ FatalAssert(*out_ptr != ‘.’ && !strstr(out_ptr, “../”) && !strstr(out_ptr, “..\\”))
FatalAssert(*out_ptr != ‘.’ && !strstr(out_ptr, “../”) && !strstr(out_ptr, “..\\”))

The moment I pass a real path to Skype’s –dbpath parameter, everything works as expected.

How to install KDE on Fedora Core 13 and onwards.

November 18th, 2011 9 comments

I haven’t used KDE for a very long time, obviously since before Fedora Core 13. Back then, the yum group for KDE was named kde-desktop, so a simple sudo yum groupinstall kde-dekstop would set you on your way.

Since FC13, the group name has changed to the not-so-obvious KDE Software Compilation.

sudo yum groupinstall “KDE Software Compilation” (with the quotes) and you’re off!

I’m installing KDE in a fresh install of FC16 as I’m writing this, because like Leonid, one of the things which annoy me about GNOME 3 is the inability to see a Skype icon with notifications of incoming chats without having to move your mouse to bottom right corner all the time. We are using Skype as an example here, there are of course other icons which one might miss, such as the Dropbox icon for example to know if any synchronisation is in progress.