Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.
[USER@LAPTOP ~] dpkg -l | grep -i gnome-desktop
ii  gnome-desktop-data                                          1:2.30.2-0ubuntu1                               Common files for GNOME desktop apps
ii  libgnome-desktop-2-17                                       1:2.30.2-0ubuntu1                               Utility library for loading .desktop files - r
[USER@LAPTOP ~] lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 10.04.4 LTS
Release:    10.04
Codename:   lucid
[USER@LAPTOP ~] 

How can I create new entries here?:

enter image description here

So that we can add for example: not just new "empty file" - rather "new openoffice odt", or GIMP image, etc..

share|improve this question

1 Answer 1

up vote 0 down vote accepted

I've done it with a nautilus script:

#!/bin/bash

SABLONFILE="/home/USER/TEMPLATES/PNG.png"
UJFILENAME="./newPNG.png"

which zenity > /dev/null 2>&1; if [[ $? -ne 0 ]]; then exit 1; fi
if [ -s "$UJFILENAME" ]; then zenity --error --text="FILENAME ALREADY EXISTS"; exit 1; fi;
cp "$SABLONFILE" "$UJFILENAME"
if ! [ -s "$UJFILENAME" ]; then zenity --error --text="$UJFILENAME wasn't created? wtf?"; exit 1; fi;

so the script will copy a template file from TEMPLATES

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.