windows和ubuntu中都可以拖动文件到其他路径,然后达到移动文件的目的。

这种方式有好处也有坏处,好处是移动文件方便了,坏处是误操作后会造成故障,尤其是ubuntu中,本身鼠标就特别灵敏并且操作不便,拖动一个文件后,整个环境都会发生变化,很有可能编译失败,然后各种找问题。而且linux环境正经人谁使用拖动来移动文件的。索性直接禁止。

按照如下操作进行就可以禁止tap-and-drag功能(貌似只是禁止了触摸板touch-pad的拖动功能,外接鼠标还可以拖动):

GNOME has a setting for this, it is just not accessible in GNOME Control Center.

You can either use terminal or dconf-editor to access this setting.

Terminal:

  1. Turn off tap-and-drag.

    gsettings set org.gnome.desktop.peripherals.touchpad tap-and-drag false
    
  2. Check if it was successful.

    gsettings get org.gnome.desktop.peripherals.touchpad tap-and-drag
    

dconf-editor:

  1. Install dconf-editor
  2. Inside dconf-editor navigate to org/gnome/desktop/peripherals/touchpad
  3. Find tap-and-drag and turn off the setting

外接鼠标貌似禁止不了拖动功能,不过有个拖动距离判断,达到这个距离才判断为拖动,也可以吧。

dconf-editor:

org - gnome - desktop - peripherals - mouse - custom value

把这个值弄大点,就可以使鼠标拖动需要很长距离才能启动判断,可以防止误操作吧 

Logo

魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。

更多推荐