没有采用caja那么复杂的方法,直接在右键菜单里进行判断,如果选中的文件有以x-nautilus-desktop开头,就不显示压缩选项。

会以x-nautilus-desktop开头的文件满足两个规则:
1,在桌面上。
2,主文件夹、回收站、网络设置、各种移动U盘在桌面上的显示盘符文件,本地磁盘挂载后在桌面上显示的盘符文件,等。

ps:桌面上的其他普通文件会以file:开头,所以能够正常显示压缩选项。

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to file-roller in Ubuntu.
https://bugs.launchpad.net/bugs/1403377

Title:
  The compress function works abnormal for trash, disk and so on

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntukylin/+bug/1403377/+subscriptions

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to