Giter Club home page Giter Club logo

Comments (33)

fghpdf avatar fghpdf commented on June 16, 2024 26

ubuntu每次更新vscode,需要重新拿一下权限,运行
sudo chown -R $(whoami) /usr/share/code
就行了,真尴尬。。。。
要不把这句话加在日志里吧,先让大家直接去拿下权限

from vscode-background.

fghpdf avatar fghpdf commented on June 16, 2024 24

#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.

realvect0r avatar realvect0r commented on June 16, 2024 19

@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.

sxyazi avatar sxyazi commented on June 16, 2024 6

Arch Linux 用 pacman 装的话用这个:

sudo chmod o+w /usr/lib/code/out/vs/workbench/workbench.main.css

from vscode-background.

kcilcarus avatar kcilcarus commented on June 16, 2024 5

@lwjcjmx123 我是manjaro, vscode安装路径是 /opt, 直接把 sudo chown -R $(whoami) /opt/visual-studio-code
重启vscode就好了

from vscode-background.

CoreJa avatar CoreJa commented on June 16, 2024 3

更新到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.

scorpionV avatar scorpionV commented on June 16, 2024 2

{
"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.

shalldie avatar shalldie commented on June 16, 2024

请试试开启管理员权限?
插件需要有对vscode安装目录的文件修改权限。

=。= 因为我木有用过ubuntu,所以没有什么说服力。但是有朋友在ubuntu上面成功使用过。
所以麻烦再试试。

from vscode-background.

shalldie avatar shalldie commented on June 16, 2024

更新之后,需要重新设置一下 =。=
计划下个版本弄个配置文件,记录用户的选择

from vscode-background.

shalldie avatar shalldie commented on June 16, 2024

汗,,,
下次更新的时候考虑加进去。
目前先不做改动了,更改的话,要跟功能一起上。

from vscode-background.

shalldie avatar shalldie commented on June 16, 2024

我会把这个issue的链接放入readme.md

from vscode-background.

jskyzero avatar jskyzero commented on June 16, 2024

感谢w 这边deepin拿了权限也是可用的w 之前win下也有过自己配图片不过还是配的也不好用默认的就很满足了。。

from vscode-background.

glinxx avatar glinxx commented on June 16, 2024

66666

from vscode-background.

Sherlock09 avatar Sherlock09 commented on June 16, 2024

更新之后 有时候 vscode 会崩溃-_-

from vscode-background.

shalldie avatar shalldie commented on June 16, 2024

@Sherlock09
啊?可否描述再详细点呢
进行什么操作后,然后崩溃是卡死吗

from vscode-background.

CracKerMe avatar CracKerMe commented on June 16, 2024

win10 建议默认以管理员权限打开,不然 修改了 没反应

from vscode-background.

shalldie avatar shalldie commented on June 16, 2024

@CracKerMe
....... 你如何使用vscode,我控制不了啊。
这个在第一次使用的时候需要权限,以后就没事了

from vscode-background.

xiapazhi avatar xiapazhi commented on June 16, 2024

呐呐呐~ 修改透明度的时候为嘛我的代码透明度也变了,自定义图片的时候;用默认图片就没问题

from vscode-background.

shalldie avatar shalldie commented on June 16, 2024

@yuan21
background.useFront 表示是否使用前景图,默认应该是true。你改成false了吧。
前景图适合小图,在代码上面一层,透明度木事。
背景图适合大图,在代码下面一层,透明度只能自己拿ps改。

from vscode-background.

jameslin3263 avatar jameslin3263 commented on June 16, 2024

請問我一安裝完後出現code檔案損毀要怎麼解決?

from vscode-background.

fghpdf avatar fghpdf commented on June 16, 2024

@jameslin3263 忽视就好

from vscode-background.

yangfan-coder avatar yangfan-coder commented on June 16, 2024

但是我在mac上还是不行啊 有没有具体的方法

from vscode-background.

shalldie avatar shalldie commented on June 16, 2024

@yangfandashuaige
试试这个 #46

from vscode-background.

GanJiaJia avatar GanJiaJia commented on June 16, 2024

在mac上似乎没有反应咋办

from vscode-background.

lwjcjmx123 avatar lwjcjmx123 commented on June 16, 2024

Arch LInux 改了权限似乎还是不行, DE gnome

from vscode-background.

TreeZhou avatar TreeZhou commented on June 16, 2024

可以用了,给你点赞

from vscode-background.

scorpionV avatar scorpionV commented on June 16, 2024

为什么我的vscode我每次弄那个背景主题,我都按照步骤来弄了 还是不行,谁能告诉我,他那个路径的file到底怎么回事鸭?我是都是按照他的来弄,找我自己的路径了,可是还没有反应。

from vscode-background.

shalldie avatar shalldie commented on June 16, 2024

@scorpionV 默认背景也不行吗?

from vscode-background.

CarsarSky avatar CarsarSky commented on June 16, 2024

@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.

outloudvi avatar outloudvi commented on June 16, 2024

Arch Linux 上可以通过 pacman 的 hook 来在每次更新后自动添加写权限。当然之后需要让插件重新改一下 CSS...

对于 code (即 Code - OSS),可以添加类似这样的 hook。

from vscode-background.

lucasazhang avatar lucasazhang commented on June 16, 2024

This extension doesn't work and then when i uninstalled it then it stayed there!

from vscode-background.

lingxd avatar lingxd commented on June 16, 2024

插件在ubuntu18.04未生效 权限也修改过

from vscode-background.

LagrangeOranges avatar LagrangeOranges commented on June 16, 2024

Arch Linux 用 pacman 装的话用这个:

sudo chmod o+w /usr/lib/code/out/vs/workbench/workbench.main.css

Archlinux党表示非常感谢!

from vscode-background.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.