用于显示具有装入操作的块设备的通知的脚本
notification-mount的Python项目详细描述
通知装入
======
![GPLv3.0](https://img.shields.io/github/license/patrick96/notification mount.svg)
这是一个脚本,它显示一个驱动器的通知,并带有一个按钮来挂载它。
内容
==
=
=
*[通知挂载](\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
*[德夫蒙脚本(devmon script)
*[systemd unit(systemd unit)(systemd unit)
>安装
===
==
=
*linux
*python3
*[python3
*[python3
*[python gobject](https://wiwiki.gnome.org/projects/pygobject)
*[python-notify2](https://pypi.pypi.python.org/pypi/pypi/notify2)http://br/>*[ude-udep2]
*[ude-ude vil][udevil]
不使用**拱门**,然后,您需要将“notification mount”文件复制或符号链接到“PATH”中的某个位置(请参阅下面的systemd示例中有关wĥ的更多信息,在将其放置在“PATH”中时需要注意)。
有关如何安装和启动系统服务的信息,请参阅下面的[示例](“systemd单元”。
linux
如果您使用的是**arch linux**,请从aur安装[notification mount][notification mount]或[notification mount git][notification mount git]。启动通知装载。服务
```
此服务与下面示例中的服务相同
示例
==
devmon脚本
当你的系统启动时,你可以在你的.xItRIc或任何其他脚本上运行。
BR/>你可能需要改变脚本的路径,这取决于你从何处运行这段代码。[udevil][udevil]:
``ini
通知装入。service
----------
[Unit]
Description=notification when new block device is detected with button to mount
[service]
Type=simple
ExecStart=/usr/bin/devmon--no mount--no unmount--exec on drive“通知装入-d%%f“
[安装]
wantedby=default.target
```
要完成此操作,您需要将“通知装入”放在“path”的一部分文件夹中
**注意:**这应该是默认的“path”。或者,您可以在systemd环境中设置修改后的“path”,如[此处](https://wiki.archlinux.org/index.php/systemd/user path)所述。
之后,只需启用并启动服务:
``bash
systemctl--用户启用通知装载。service
systemctl--用户启动通知装载。service
````
[udevil]:https://ignorantguru.github.io/udevil/
[通知装载]:https://aur.archlinux.org/packages/notification mount
[通知装载git]:https://aur.archlinux.org/packages/notification mount git
======
![GPLv3.0](https://img.shields.io/github/license/patrick96/notification mount.svg)
这是一个脚本,它显示一个驱动器的通知,并带有一个按钮来挂载它。
内容
==
=
=
*[通知挂载](\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
*[德夫蒙脚本(devmon script)
*[systemd unit(systemd unit)(systemd unit)
>安装
===
==
=
*linux
*python3
*[python3
*[python3
*[python gobject](https://wiwiki.gnome.org/projects/pygobject)
*[python-notify2](https://pypi.pypi.python.org/pypi/pypi/notify2)http://br/>*[ude-udep2]
*[ude-ude vil][udevil]
不使用**拱门**,然后,您需要将“notification mount”文件复制或符号链接到“PATH”中的某个位置(请参阅下面的systemd示例中有关wĥ的更多信息,在将其放置在“PATH”中时需要注意)。
有关如何安装和启动系统服务的信息,请参阅下面的[示例](“systemd单元”。
linux
如果您使用的是**arch linux**,请从aur安装[notification mount][notification mount]或[notification mount git][notification mount git]。启动通知装载。服务
```
此服务与下面示例中的服务相同
示例
==
devmon脚本
当你的系统启动时,你可以在你的.xItRIc或任何其他脚本上运行。
BR/>你可能需要改变脚本的路径,这取决于你从何处运行这段代码。[udevil][udevil]:
``ini
通知装入。service
----------
[Unit]
Description=notification when new block device is detected with button to mount
[service]
Type=simple
ExecStart=/usr/bin/devmon--no mount--no unmount--exec on drive“通知装入-d%%f“
[安装]
wantedby=default.target
```
要完成此操作,您需要将“通知装入”放在“path”的一部分文件夹中
**注意:**这应该是默认的“path”。或者,您可以在systemd环境中设置修改后的“path”,如[此处](https://wiki.archlinux.org/index.php/systemd/user path)所述。
之后,只需启用并启动服务:
``bash
systemctl--用户启用通知装载。service
systemctl--用户启动通知装载。service
````
[udevil]:https://ignorantguru.github.io/udevil/
[通知装载]:https://aur.archlinux.org/packages/notification mount
[通知装载git]:https://aur.archlinux.org/packages/notification mount git