a*******e 发帖数: 3021 | 1 有没有啥软件能做u盘的自动sync?
就是说,每次接上u盘,系统就自动吧u盘的内容跟系统的某个目录sync? | a*******e 发帖数: 3021 | 2 I think I figured it out.
In short: place .autorun, autorun, or autorun.sh on root dir of usb drive,
it will be autostarted after mount in GNOME.
The first line in autorun.sh has to be #!/bin/bash to avoid "EXEC format
error".
any sync scripts can be included in the autorun.
====================================================
Autostart Of Applications After Mount
When a desktop environment mounts a new medium, the medium may contain an
Autostart file that can suggest to start an application or an Autoopen file
that can suggest to open a specific file located on the medium.
Autostart Files
When a new medium is mounted the root directory of the medium should be
checked for the following Autostart files in order of precendence: .autorun,
autorun, autorun.sh Only the first file that is present should be considered.
The desktop environment MAY ignore Autostart files altogether based on
policy
set by the user, system administrator or vendor.
The desktop environment MUST prompt the user for confirmation before
automatically starting an application.
When an Autostart file has been detected and the user has confirmed its
execution the autostart file MUST be executed with the current working
directory (CWD) set to the root directory of the medium.
【在 a*******e 的大作中提到】 : 有没有啥软件能做u盘的自动sync? : 就是说,每次接上u盘,系统就自动吧u盘的内容跟系统的某个目录sync?
|
|