Thursday, June 10, 2010

Adding a screensaver to Ubuntu 10.04

I wanted to add a simple screensaver that had a floating SVG of the Condor project's logo. You can download the SVG file here.

  1. sudo cp condor_logo.svg /usr/share/pixmaps
  2. cd  /usr/share/applications/screensavers
  3. sudo cp footlogo-floaters.desktop condor-floaters.desktop

  4. sudo vim condor-floaters.desktop
    [Desktop Entry]
    Name=Floating Condor Logos
    Comment=Bubbles the Condor logo around the screen
    Exec=/usr/lib/gnome-screensaver/gnome-screensaver/floaters /usr/share/pixmaps/condor_logo.svg
    TryExec=/usr/lib/gnome-screensaver/gnome-screensaver/floaters
    StartupNotify=false
    Terminal=false
    Type=Application
    Categories=GNOME;Screensaver;
    OnlyShowIn=GNOME;
    
    
  5. sudo /usr/share/gnome-menus/update-gnome-menus-cache /usr/share/applications > /tmp/desktop.en_US.utf8.cache
  6. diff /usr/share/applications/desktop.en_US.utf8.cache /tmp/desktop.en_US.utf8.cache
  7. Make sure the diff looks like what you expect
  8. sudo cp /tmp/desktop.en_US.utf8.cache /usr/share/applications/desktop.en_US.utf8.cache

2 comments:

  1. what's the magic sauce in step #4 ?

    ReplyDelete