Debian的“启动应用程序”对应的配置文件在哪里?

9 views
Skip to first unread message

wei will

unread,
Dec 9, 2010, 10:42:35 AM12/9/10
to hz...@googlegroups.com
RT。。图片在附件里面。。
我也找了好久,就是没有找到。。
所以过来求助了。。
~目录下没有xsession……
知道的告诉我下好了。。多谢各位。
Menu_001.png

Tualatrix Chou

unread,
Dec 9, 2010, 10:50:25 AM12/9/10
to hz...@googlegroups.com
~/.config/autostart
/etc/xdg/autostart
如果我没记错的话

发自我的 iPhone

在 2010-12-9,23:42,wei will <will...@gmail.com> 写到:

--
欢迎来到杭州Linux用户组邮件列表
要在列表里发起一个帖子(专业术语叫线索,thread) 发送邮件到 hz...@googlegroups.com
如要退订: 请发送空邮件至 hzlug+un...@googlegroups.com
详情请看: http://groups.google.com/group/hzlug?hl=zh-CN
<Menu_001.png>

wei will

unread,
Dec 9, 2010, 10:49:41 AM12/9/10
to hz...@googlegroups.com
多谢。。我想知道,遇到这个问题,大家是怎么知道的?呵呵,就是怎么知道在~/.config/autostart下面的。。除了google以外。。“自助式”解决,怎么想法去找解决的源头呢?

Tualatrix Chou

unread,
Dec 9, 2010, 10:57:32 AM12/9/10
to hz...@googlegroups.com
我记得当时我是通过阅读源代码知道的,因为当时要在Ubuntu Tweak里实现类似的东西。

发自我的 iPhone

在 2010-12-9,23:49,wei will <will...@gmail.com> 写到:

yegle

unread,
Dec 9, 2010, 10:56:28 AM12/9/10
to hz...@googlegroups.com
哇靠…你这会吓到别人的…

我一般是在~下grep字符串

2010/12/9 Tualatrix Chou <tual...@gmail.com>

Tualatrix Chou

unread,
Dec 9, 2010, 11:06:08 AM12/9/10
to hz...@googlegroups.com
哈哈!那你记得还得在etc下也grep一次。因为xdg autostart的机制是,除非HOME有覆盖etc的设置(比如设置成不启动),那么会将etc下的启动项都载入。

好像Linux下的配置文件的机制都是类似的。

发自我的 iPhone

在 2010-12-9,23:56,yegle <cny...@gmail.com> 写到:

walkerxk

unread,
Dec 9, 2010, 3:46:21 PM12/9/10
to Hangzhou (杭州) Linux User Group
On 12月10日, 上午12时06分, Tualatrix Chou <tualat...@gmail.com> wrote:
> 哈哈!那你记得还得在etc下也grep一次。因为xdg
> autostart的机制是,除非HOME有覆盖etc的设置(比如设置成不启动),那么会将etc下的启动项都载入。
>
> 好像Linux下的配置文件的机制都是类似的。
修改保存,然后find下最近修改过的文件,锁定常见的目录就行了,最怕遇到二进制的文件,改都没法改,读都没法读,或者是看不懂的格式。

iCyOMiK

unread,
Dec 9, 2010, 10:21:26 PM12/9/10
to Hangzhou (杭州) Linux User Group
自己写了一个脚本,用于检测某个目录下面小于32M的文件的md5sum,然后修改,再检测多一次,对比两者不同的md5sum即可,脚本如下:

#!/bin/bash
#project gmeld.sh by icyomik
#depends: meld or diff, cksum or md5sum and so on, zenity

#sumalg:"cksum" "md5sum" "sha1sum" "sha224sum" "sha256sum" "sha384sum"
"sha512sum"
sumalg=md5sum
#compare:"diff" "meld"
compare=meld

dirselect=`zenity --file-selection --directory --title="Choose a DIR
to sum (Gmeld)"`
sumtmp1=`mktemp`
sumtmp2=`mktemp`

if [ -n "$dirselect" ];then
cd $dirselect
echo -e "\n\t$dirselect\n" >$sumtmp1
find . -not -type d -size -32M -exec $sumalg {} \; |awk '{print $2" --
- "$1}' |sort >>$sumtmp1
echo "tmp file $sumtmp1 is ok."

zenity --question --text="Do you want to use previous dir to compare ?
\n( Choose \"yes\" or \"no\" when you finished jobs ! )"
[ $? -eq "1" ] && dirselect=`zenity --file-selection --directory --
title="Choose a DIR to sum (Gmeld)"`

cd $dirselect
echo -e "\n\t$dirselect\n" >$sumtmp2
find . -not -type d -size -32M -exec $sumalg {} \; |awk '{print $2" --
- "$1}' |sort >>$sumtmp2
echo "tmp file $sumtmp2 is ok, too !"

echo "using \"$compare\" program to compare..."
$compare $sumtmp1 $sumtmp2
else
echo "you haven't chosen the path to snap !"
fi

echo "removing $sumtmp1 and $sumtmp2"
rm -f $sumtmp1 $sumtmp2


On Dec 9, 11:49 pm, wei will <willw...@gmail.com> wrote:
> 多谢。。我想知道,遇到这个问题,大家是怎么知道的?呵呵,就是怎么知道在~/.config/autostart下面的。。除了google以外。。"自助式"解决,怎么想法去找解决的源头呢?
>

> 在 2010年12月9日 下午11:50,Tualatrix Chou <tualat...@gmail.com>写道:
>
> > ~/.config/autostart
> > /etc/xdg/autostart
> > 如果我没记错的话
>
> > 发自我的 iPhone
>

> > 在 2010-12-9,23:42,wei will <willw...@gmail.com> 写到:


>
> > RT。。图片在附件里面。。
> > 我也找了好久,就是没有找到。。
> > 所以过来求助了。。

> > ~目录下没有xsession......


> > 知道的告诉我下好了。。多谢各位。
>
> > --
> > 欢迎来到杭州Linux用户组邮件列表
> > 要在列表里发起一个帖子(专业术语叫线索,thread) 发送邮件到 <hz...@googlegroups.com>

> > hz...@googlegroups.com
> > 如要退订: 请发送空邮件至 <hzlug+un...@googlegroups.com>
> > hzlug+un...@googlegroups.com
> > 详情请看: <http://groups.google.com/group/hzlug?hl=zh-CN>


> >http://groups.google.com/group/hzlug?hl=zh-CN
>
> > <Menu_001.png>
>
> > --
> > 欢迎来到杭州Linux用户组邮件列表
> > 要在列表里发起一个帖子(专业术语叫线索,thread) 发送邮件到 hz...@googlegroups.com

> > 如要退订: 请发送空邮件至 hzlug+un...@googlegroups.com<hzlug%2Bunsu...@googlegroups.com>
> > 详情请看:http://groups.google.com/group/hzlug?hl=zh-CN
>
>

wei will

unread,
Dec 9, 2010, 10:24:43 PM12/9/10
to hz...@googlegroups.com
呵呵,多谢几位提供的方法,集思广益咯。。

??

unread,
Dec 10, 2010, 8:27:49 PM12/10/10
to hz...@googlegroups.com
其实MD5没多大意思,io大,而且没有记录差别,像rsync那样记录大小和修改时间就好了,没事不会去touch修改文件mtime吧,其实大小也没必要,或者直接弄cvs之类的,前后的区别都出来了。
Reply all
Reply to author
Forward
0 new messages