Ubuntu18 下开启开机音乐与关机音乐

作者: 锦岳 | 来源:发表于2019-06-27 10:14 被阅读0次

ubuntu18 默认是没有开启开机音乐、关机音乐的,我们可以自己设置这项功能,下面是具体操作
音乐存放路径:/usr/share/sounds/ubuntu/stereo

一、开机音乐

  1. 获取开机音乐的存储路径与名称
  • 路径:/usr/share/sounds/ubuntu/stereo
  • 名称:desktop-login.ogg
  1. 打开 Ubuntu 系统应用 Startup Application
  • 点击 “Add”
  • 在弹出框中依次填入如下内容:

    Name: Gnome Login Sound
    Command: paplay /usr/share/sounds/ubuntu/stereo/desktop-login.ogg
    Comments: This is a programme to enable startup sound

二、关机音乐

  1. 获取关机音乐的存储路径与名称
  • 路径:/usr/share/sounds/ubuntu/stereo
  • 名称:desktop-logout.ogg
  1. 打开 Ubuntu 系统应用 Startup Application
  • 点击 “Add”
  • 在弹出框中依次填入如下内容:
    • Name: Gnome Logout Sound
    • Command: paplay /usr/share/sounds/ubuntu/stereo/desktop-logout.ogg
    • Comments: This is a programme to enable shutdown sound

三、安装并打开 Tweaks

在 Tweaks 的 Startup Applications 选项中点击添加按钮,找到并添加上Startup Application

相关文章

网友评论

    本文标题:Ubuntu18 下开启开机音乐与关机音乐

    本文链接:https://www.haomeiwen.com/subject/dmklcctx.html