简体   繁体   English

如何使用Elementary OS Luna授予文件Preferences.sublime-settings的写许可权并找到Sublime Text 3的此文件?

[英]How I can grant write permission to the file Preferences.sublime-settings and locate this file of Sublime Text 3 using Elementary OS Luna?

I cannot grant write permission to the file Preferences.sublime-settings in Sublime Text on Elementary OS Luna 3. If someone went through it, can you help me? 我无法授予对Elementary OS Luna 3上Sublime Text中文件Preferences.sublime-settings写许可。如果有人经过它,您可以帮我吗? There is no way to go to the directory where it is because it simply is not in the way I get by clicking with the right button of mouse > Copy File Path . 无法进入该目录,因为用鼠标右键>复制文件路径单击鼠标根本无法获得该目录。

I get this path: 我得到这条路:

/home/llarruda/.config/sublime-text-3/Packages/Default/Preferences.sublime-settings

In the directory Packages i just have the directories User and the link of current directory (.) and level return link (..). 在Packages目录中,我只有目录User以及当前目录链接 (。)和级别返回链接 (..)。

I sailed across the directory tree for the Sublime Text 3, via bash, listing including hidden directories, nothing positive. 我通过bash浏览了Sublime Text 3的目录树,列出了包括隐藏目录在内的所有内容,但没有任何积极意义。 I tried to grant permissions recursively to the for the whole Sublime Text 3 directory and even the innermost level that I can access and should contain the file Preferences.sublime-settings , I haven't success. 我试图递归地授予整个Sublime Text 3目录的权限,甚至授予我可以访问的最内层的权限,并且应该包含文件Preferences.sublime-settings ,但没有成功。

I did the install from the .deb package obtained on the official website. 我是从官方网站上获得的.deb软件包进行安装的。

PS: I want grant write permission, but I force give to the whole directory full permition - sudo chmod -R 777 sublime-text-3 , that inside on .config directory PS:我想授予写许可权,但我将整个许可权强加给整个目录-sudo sudo chmod -R 777 sublime-text-3 ,该文件位于.config目录中

In ST3, plugins/packages are run directly from the .sublime-package file. 在ST3中,插件/软件包直接从.sublime-package文件运行。 For most things, you don't actually need the contents of those files. 对于大多数事情,您实际上并不需要那些文件的内容。 For instance, you can create a Preferences.sublime-settings in the user folder, and it will be merged properly. 例如,您可以在用户文件夹中创建Preferences.sublime-settings ,并将其正确合并。 That being said, ST3 does allow you to override files. 话虽这么说,ST3确实允许您覆盖文件。 To make things easier, you can use the plugin PackageResourceViewer . 为了使事情变得容易,您可以使用插件PackageResourceViewer I wrote it to assist with viewing default files. 我写它是为了帮助查看默认文件。 Again, you don't need to do this for your particular case though. 同样,您不必针对特定情况执行此操作。 In the menu, go to Preferences -> Settings - User . 在菜单中,转到Preferences -> Settings - User This will create a preferences file in the user directory. 这将在用户目录中创建一个首选项文件。 When merged, the values in the User directory will be used rather than those in Default . 合并后,将使用User目录中的值,而不是Default中的Default

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM