[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 ~]
我如何在这里创建新条目?:
例如,我们可以添加:不仅仅是新的“空文件” - 而是“新的 openoffice odt”或 GIMP 图像等。
答案1
我已经使用 nautilus 脚本完成了此操作:
#!/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;
因此脚本将从 TEMPLATES 复制一个模板文件