Skip to content

cgarvey/stickynotes2indicatorstickynotes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

A script to convert the older Sticky Notes Gnome app format to the newer Indicator Sticky Notes format.

INFO

When I upgraded from Ubuntu 10.04 to 12.04, I found there was no easy way to keep my old "Post-it™" sticky notes.

When Ubuntu introduced Unity in version 11.04, Gnome applets were no longer available (without some effort). With the change went StickyNotes which I had used a lot.

Indicator StickyNotes came to the rescue (similar functionality and a clickable icon in the "indicator" area to show/hide the notes). However, there is no easy way to import the notes from the old StickyNotes app (a completely different app).

This script will read the configuration file of the older app (an XML format) and output to a file suitable for use in the newer app (a JSON format). It assumes you still have access to a copy of your old StickyNotes configuration file (default location was ~/.gnome2/stickynotes_applet).

It outputs to the specified destination which can be the default location of the Indicator StickyNotes configuration file (by default in ~/.config/indicator-stickynotes), or to any other destination for testing.

In this project's early state, I recommend you backup both app's configuration files before using this script.

USAGE

convert_stickynotes.pl <stickynotes_file> <indicator_stickynotes_file>

<stickynotes_file> The path to the old StickyNotes applet config file. This is required, and must be readable. This script does not alter the file. E.g. ~/.gnome2/stickynotes_applet

<indicator_stickynotes_file> The path to the new Indicator StickyNotes config file. This script will add notes to this file, so you should BACKUP beforehand. E.g. ~/.config/indicator-stickynotes

Prerequisites

This PERL script requires PERL be installed, obviously, and for the modules XML::Simple & JSON to be available.

Sample Use

  • Assuming the two configuration files are in their default location (which is probably not the case, unless you've upgrade Ubuntu)

  • Download the convert_stickynotes.pl script

  • Quit Indicator StickyNotes if it is already running

  • Make a backup of your original StickyNotes config file, and your current Indicator StickyNotes config files.

    cp ~/.gnome2/stickynotes_applet ~/my-oldstickynotes

    cp ~/.config/indicator-stickynotes ~/my-newindicatorstickynotes

  • Run the script (don't overwrite your backups from the previous step!)

    ./convert_stickynotes.pl ~/.gnome2/stickynotes_applet ~/.config/indicator-stickynotes

  • Launch Indicator StickyNotes again.

SUPPORT

Support is not provided with this script. However, if you open an issue, I'll endeavour to help you out if I can.

LICENCE

Copyright 2012 Cathal Garvey. http://cgarvey.ie/

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

(Free) commercial licensing available on request.

About

Convert Ubuntu 10.x StickyNotes to Indicator StickyNotes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages