Chinaunix首页 | 论坛 | 博客
  • 博客访问: 127227
  • 博文数量: 28
  • 博客积分: 2431
  • 博客等级: 大尉
  • 技术积分: 321
  • 用 户 组: 普通用户
  • 注册时间: 2008-05-29 18:40
文章分类

全部博文(28)

文章存档

2011年(3)

2010年(6)

2009年(7)

2008年(12)

分类:

2008-09-22 20:51:51

设置为桌面的脚本
#!/bin/bash
##Written by Akshay Srinivasan. You're welcome to modify this script. This script requires Zenity to work as intended.
FILE=`echo -n $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS`
if [ -n `file "$FILE" | grep image` ]
then
 zenity --notification --text="$FILE is not an image."
else
 gconftool-2 -t string -s /desktop/gnome/background/picture_filename "$FILE"
fi
exit
 
阅读(807) | 评论(0) | 转发(0) |
0

上一篇:Linux的8个经典技巧

下一篇:java实验

给主人留下些什么吧!~~