小编why*_*yer的帖子

如何在 Ubuntu 19.04 中修复绑定安装上的无效垃圾?(并将它们隐藏在 Nautilus 中)

我有两台运行相同 Ubuntu 18.10 的机器。在它们两个上我都有几个绑定安装,/etc/fstab如下所示:

# file system      mount point      type  options           dump  pass
  /mnt/hdd/folder  /home/user/data  none  bind,x-gvfs-hide  0     0
Run Code Online (Sandbox Code Playgroud)

将其中一台机器升级到 19.04 后,出现以下两个错误:

  1. 我无法将文件从绑定安装移动到垃圾箱(既不能使用 Nautilus GUI,也不能通过gio trash):

    $ gio trash file.txt
    gio: file:///home/user/data/file.txt: 
    Trashing on system internal mounts is not supported
    
    Run Code Online (Sandbox Code Playgroud)
  2. 在 Nautilus 中,最后一个项目fstab没有隐藏并显示为一个已安装的分区

我该如何解决?或者我在哪里提交错误报告?或者有解决方法吗?(毕竟自 19.04 发布以来已经过去了几个月。)尤其是非工作垃圾很烦人。

nautilus fstab mount trash 19.04

5
推荐指数
1
解决办法
888
查看次数

如何在屏幕锁定时自动将键盘布局切换为英文?

我希望我的 Ubuntu 在每次锁定屏幕时自动将键盘布局切换为英语,这样我就不必每次都手动输入密码。我怎么做?

另外,我希望每次解锁屏幕后我的键盘布局也都是英文。是否可以?

gnome keyboard-layout lock-screen login

5
推荐指数
2
解决办法
731
查看次数

如何在某些应用程序中禁用字体抗锯齿功能?(例如 VLC、Telegram、Viber)

我已经尝试过的方法:

gnome 调整工具

字体 -> 抗锯齿 -> 无

〜/.fonts.conf

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
    <match target="font">
        <edit name="antialias" mode="assign">
            <bool>false</bool>
        </edit>
        <edit name="rgba" mode="assign">
            <const>none</const>
        </edit>
        <edit name="autohint" mode="assign">
            <bool>false</bool>
        </edit>
        <edit name="hinting" mode="assign">
            <bool>true</bool>
        </edit>
        <edit name="hintstyle" mode="assign">
            <const>hintslight</const>
        </edit>
    </match>
</fontconfig>
Run Code Online (Sandbox Code Playgroud)

〜/.xsettingsd

Xft/Hinting 1
Xft/HintStyle "hintslight"
Xft/Antialias 0
Xft/RGBA "rgb"
Run Code Online (Sandbox Code Playgroud)

然后运行xsettingsd

~/.Xresources

Xft.hinting: 1
Xft.hintstyle: hintslight
Xft.antialias: 0
Xft.rgba: rgb 
Run Code Online (Sandbox Code Playgroud)

然后运行xrdb -merge ~/.Xresources

(从这里获取这些:https://wiki.archlinux.org/index.php/Font_configuration#In Correct_hinting_in_GTK_applications )

但仍有一些应用程序具有抗锯齿功能,例如 VLC、Telegram、Viber。我如何在那里禁用它?

更新。一个特例是 Evince 文档查看器。当它渲染 PDF 时,它会使用一些其他设置,而不是渲染 …

fonts antialiasing

3
推荐指数
1
解决办法
2755
查看次数