Comments (33)
ubuntu每次更新vscode,需要重新拿一下权限,运行
sudo chown -R $(whoami) /usr/share/code
就行了,真尴尬。。。。
要不把这句话加在日志里吧,先让大家直接去拿下权限
from vscode-background.
#for vs code:
sudo chown -R $(whoami) /usr/share/code
#for vs code insiders:
sudo chown -R $(whoami) /usr/share/code-insiders
#if you want to check your folder's owner:
ls -la /usr/share/code
#if you want to rollback this permissions back to root:
sudo chown -R root /usr/share/code
这样子开启权限,不过,vs更新了,我又用不了了
from vscode-background.
@lwjcjmx123 我也是 Archlinux. 插件原理是修改 /opt/visual-studio-code/resources/app/out/vs/workbench/workbench.main.css
这个 css 文件来 work的, 然而这个文件 owner 是 root, 普通用户没权限写.
给普通用户写权限就行了, 也不用 chown 那么麻烦.
sudo chmod o+w /opt/visual-studio-code/resources/app/out/vs/workbench/workbench.main.css
然后重启 vscode 就可以了.
from vscode-background.
Arch Linux 用 pacman 装的话用这个:
sudo chmod o+w /usr/lib/code/out/vs/workbench/workbench.main.css
from vscode-background.
@lwjcjmx123 我是manjaro, vscode安装路径是 /opt, 直接把 sudo chown -R $(whoami) /opt/visual-studio-code
重启vscode就好了
from vscode-background.
更新到vs1.38版本后,需要修改的路径发生了变化。现在的路径是/opt/visual-studio-code/resources/app/out/vs/workbench/workbench.desktop.main.css
所以只用执行sudo chown xxx:xxx /opt/visual-studio-code/resources/app/out/vs/workbench/workbench.desktop.main.css
即可
from vscode-background.
{
"git.ignoreLegacyWarning": true,
// Plugin background enabled.background 插件是否启用
"background.enabled": true,
// Use default images.使用默认图片
"background.useDefault": false,
// Your custom Images(Max length is 3). 自己定制背景图,最多3个
"background.customImages": [
"file:///I:/Vue/bei.jpg",
],
// Custom common style.自定义各项公有样式.
"background.style": {
"content": "''",
"pointer-events": "none",
"position": "absolute",
"z-index": "99999",
"width": "100%",
"height": "100%",
"background-position": "100% 100%",
"background-repeat": "no-repeat",
"opacity": 1
},
// Each style of backgrounds. 每一个背景图的独有样式。
"background.styles": [
{},
{},
{}
],
from vscode-background.
请试试开启管理员权限?
插件需要有对vscode安装目录的文件修改权限。
=。= 因为我木有用过ubuntu,所以没有什么说服力。但是有朋友在ubuntu上面成功使用过。
所以麻烦再试试。
from vscode-background.
更新之后,需要重新设置一下 =。=
计划下个版本弄个配置文件,记录用户的选择
from vscode-background.
汗,,,
下次更新的时候考虑加进去。
目前先不做改动了,更改的话,要跟功能一起上。
from vscode-background.
我会把这个issue的链接放入readme.md
from vscode-background.
感谢w 这边deepin拿了权限也是可用的w 之前win下也有过自己配图片不过还是配的也不好用默认的就很满足了。。
from vscode-background.
66666
from vscode-background.
更新之后 有时候 vscode 会崩溃-_-
from vscode-background.
@Sherlock09
啊?可否描述再详细点呢
进行什么操作后,然后崩溃是卡死吗
from vscode-background.
win10 建议默认以管理员权限打开,不然 修改了 没反应
from vscode-background.
@CracKerMe
....... 你如何使用vscode,我控制不了啊。
这个在第一次使用的时候需要权限,以后就没事了
from vscode-background.
呐呐呐~ 修改透明度的时候为嘛我的代码透明度也变了,自定义图片的时候;用默认图片就没问题
from vscode-background.
@yuan21
background.useFront
表示是否使用前景图,默认应该是true。你改成false了吧。
前景图适合小图,在代码上面一层,透明度木事。
背景图适合大图,在代码下面一层,透明度只能自己拿ps改。
from vscode-background.
請問我一安裝完後出現code檔案損毀要怎麼解決?
from vscode-background.
@jameslin3263 忽视就好
from vscode-background.
但是我在mac上还是不行啊 有没有具体的方法
from vscode-background.
@yangfandashuaige
试试这个 #46
from vscode-background.
在mac上似乎没有反应咋办
from vscode-background.
Arch LInux 改了权限似乎还是不行, DE gnome
from vscode-background.
可以用了,给你点赞
from vscode-background.
为什么我的vscode我每次弄那个背景主题,我都按照步骤来弄了 还是不行,谁能告诉我,他那个路径的file到底怎么回事鸭?我是都是按照他的来弄,找我自己的路径了,可是还没有反应。
from vscode-background.
@scorpionV 默认背景也不行吗?
from vscode-background.
@lwjcjmx123 我也是 Archlinux. 插件原理是修改
/opt/visual-studio-code/resources/app/out/vs/workbench/workbench.main.css
这个 css 文件来 work的, 然而这个文件 owner 是 root, 普通用户没权限写.
给普通用户写权限就行了, 也不用 chown 那么麻烦.sudo chmod o+w /opt/visual-studio-code/resources/app/out/vs/workbench/workbench.main.css然后重启 vscode 就可以了.
arch党表示十分感谢
from vscode-background.
Arch Linux 上可以通过 pacman 的 hook 来在每次更新后自动添加写权限。当然之后需要让插件重新改一下 CSS...
对于 code
(即 Code - OSS),可以添加类似这样的 hook。
from vscode-background.
This extension doesn't work and then when i uninstalled it then it stayed there!
from vscode-background.
插件在ubuntu18.04未生效 权限也修改过
from vscode-background.
Arch Linux 用 pacman 装的话用这个:
sudo chmod o+w /usr/lib/code/out/vs/workbench/workbench.main.css
Archlinux党表示非常感谢!
from vscode-background.
Related Issues (20)
- The sticker just doesn't go away, I cannot reinstall vscode, I tried everything please suggest a fix HOT 2
- [Feature Request] 在FullscreenOptions下增加folder选项map到images里,可以更方便的导入本地文件夹路径 HOT 3
- 可以指定文件夹读取文件夹中的所有图片码 HOT 1
- [Feature] 既想要全屏,又想要代码编辑区域右下角的图案能配置 HOT 4
- [Feature] Would like to get an option to switch images between days HOT 1
- Persists even after uninstall HOT 2
- 我的两台电脑忽然背景图片都不展示了 HOT 2
- [Feature] Randomized Image Ordering for Improved Visual Diversity HOT 1
- [Bug Report] 与Insider 1.86.0中与新的特性冲突 HOT 3
- 在 Windows 下,设置的背景未影响右上角的操作按钮区域 HOT 5
- [Bug Report] 安装这个插件提示code损坏 HOT 3
- [Feature] Your great idea... 大量图片的管理 HOT 8
- [Bug Report] Some problem... HOT 2
- Does any know if this works on a mac? HOT 2
- 建议增加视频播放功能,最好支持视频列表 HOT 1
- [Question] Some question... HOT 1
- Scroll with code HOT 4
- [Question] 是否不支持ipynb的背景显示? HOT 1
- [Bug Report] My background stopped updating to my image. HOT 10
- 切回vscode的时候闪屏 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-background.