Syntax to file path in cssHow can I change the purple background color of the lock screen on Ubuntu 17.10?Less CSS compiler installProblem with theming my application with CSSTweak how computer reads CSS languageCan't copy from Samba shares after upgrade to 18.04How do you get a *.desktop file to work for a non-repository app?How to share a directory from host to guest machine in VirtualBoxDefault folder to install customised GDM theme
Are there any spell casters that can cast life giving spells without 'expensive' components?
Does the geothermal activity influence the climate in Iceland?
Is the endomorphism ring of a module over a non-commutative ring always non-commutative?
What kind of electrical connector is this and how do I remove it?
How does a soft landing technically work without air on the moon?
Why is the superlative of "nah" not "am nähsten" but "am nächsten"?
Speedup or Caching for a Multi-Iteration MIP problem
How to deal with this fundamental problem with the advice: "Don't trust obscure PHP libraries that nobody uses!"?
Planet where giant manned machines travel in convoy across surface, tracking some astronomical phenomenon
Conflicting advice about what to do with my 401k / Roth IRA
Does the sterile cockpit rule mean flight attendants could not inform the pilots if a passenger is in the lavatory while on final?
Can a polling station shut early if everyone has voted?
Improving Map Function on Lists
Is it appropriate to rewrite and republish another author's useful but very badly written paper?
Why aren't we seeing carbon taxes in practice?
How to arrange objects in outward facing circle?
Do multimedia speaker systems run on AC power rather than DC?
Is paying for portrait photos good for the people in the community you're photographing?
How does the bypass air provide thrust?
Why do we need full-fledged workstations running massive OSes with massive software?
being overqualified as a barrier for getting a job
Where should I place my fictional continent in the South Pacific?
How do I escape from a hanging Ubuntu OS?
What is the narrative difference between a Charisma and Wisdom saving throw?
Syntax to file path in css
How can I change the purple background color of the lock screen on Ubuntu 17.10?Less CSS compiler installProblem with theming my application with CSSTweak how computer reads CSS languageCan't copy from Samba shares after upgrade to 18.04How do you get a *.desktop file to work for a non-repository app?How to share a directory from host to guest machine in VirtualBoxDefault folder to install customised GDM theme
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;
I would like to type the following command in a css file.
background: #2c001e url(file:///home/user/.local/share/backgrounds/mypic.jpg)
However, I don't want to explicitly declare the user path /home/user/
but instead use ~
and $HOME
in its place. I discovered they did not work, i.e.
background: #2c001e url(file://~/.local/share/backgrounds/mypic.jpg)
background: #2c001e url(file://$HOME.local/share/backgrounds/mypic.jpg)
What is the correct syntax that I should use?
The context for using the above command is described here.
18.04 files css
|
show 5 more comments
I would like to type the following command in a css file.
background: #2c001e url(file:///home/user/.local/share/backgrounds/mypic.jpg)
However, I don't want to explicitly declare the user path /home/user/
but instead use ~
and $HOME
in its place. I discovered they did not work, i.e.
background: #2c001e url(file://~/.local/share/backgrounds/mypic.jpg)
background: #2c001e url(file://$HOME.local/share/backgrounds/mypic.jpg)
What is the correct syntax that I should use?
The context for using the above command is described here.
18.04 files css
The URL with$HOME
should work fine. You just forgot a/
after$HOME
.
– user3140225
Oct 1 at 15:45
@user3140225 I triedbackground: #2c001e url(file://$HOME/.local/share/backgrounds/mypic.jpg)
but it still did not work...puzzled? I ran Alt+F2+r+return to refresh the GDM but they still did not work.
– Sun Bear
Oct 1 at 15:58
2
As I understand, "file:///" is interpreted by the internet browser, while~
and$HOME
are system variables. The browser does not know about them. So in this case you should always use the full path. Maybe I'm wrong?
– guillermo chamorro
Oct 1 at 16:06
1
It's not a requirement, web development is an "independent" system that does not need a pecific OS to work, for example the web browser. In this case, what you have to take into account is what and how the browser parses files, which is the same in any OS.
– guillermo chamorro
Oct 1 at 16:51
1
@SunBear Web developers also use javascript for such tasks. See this article for example.
– user3140225
Oct 1 at 17:09
|
show 5 more comments
I would like to type the following command in a css file.
background: #2c001e url(file:///home/user/.local/share/backgrounds/mypic.jpg)
However, I don't want to explicitly declare the user path /home/user/
but instead use ~
and $HOME
in its place. I discovered they did not work, i.e.
background: #2c001e url(file://~/.local/share/backgrounds/mypic.jpg)
background: #2c001e url(file://$HOME.local/share/backgrounds/mypic.jpg)
What is the correct syntax that I should use?
The context for using the above command is described here.
18.04 files css
I would like to type the following command in a css file.
background: #2c001e url(file:///home/user/.local/share/backgrounds/mypic.jpg)
However, I don't want to explicitly declare the user path /home/user/
but instead use ~
and $HOME
in its place. I discovered they did not work, i.e.
background: #2c001e url(file://~/.local/share/backgrounds/mypic.jpg)
background: #2c001e url(file://$HOME.local/share/backgrounds/mypic.jpg)
What is the correct syntax that I should use?
The context for using the above command is described here.
18.04 files css
18.04 files css
edited Oct 1 at 16:01
Sun Bear
asked Oct 1 at 15:35
Sun BearSun Bear
7486 silver badges20 bronze badges
7486 silver badges20 bronze badges
The URL with$HOME
should work fine. You just forgot a/
after$HOME
.
– user3140225
Oct 1 at 15:45
@user3140225 I triedbackground: #2c001e url(file://$HOME/.local/share/backgrounds/mypic.jpg)
but it still did not work...puzzled? I ran Alt+F2+r+return to refresh the GDM but they still did not work.
– Sun Bear
Oct 1 at 15:58
2
As I understand, "file:///" is interpreted by the internet browser, while~
and$HOME
are system variables. The browser does not know about them. So in this case you should always use the full path. Maybe I'm wrong?
– guillermo chamorro
Oct 1 at 16:06
1
It's not a requirement, web development is an "independent" system that does not need a pecific OS to work, for example the web browser. In this case, what you have to take into account is what and how the browser parses files, which is the same in any OS.
– guillermo chamorro
Oct 1 at 16:51
1
@SunBear Web developers also use javascript for such tasks. See this article for example.
– user3140225
Oct 1 at 17:09
|
show 5 more comments
The URL with$HOME
should work fine. You just forgot a/
after$HOME
.
– user3140225
Oct 1 at 15:45
@user3140225 I triedbackground: #2c001e url(file://$HOME/.local/share/backgrounds/mypic.jpg)
but it still did not work...puzzled? I ran Alt+F2+r+return to refresh the GDM but they still did not work.
– Sun Bear
Oct 1 at 15:58
2
As I understand, "file:///" is interpreted by the internet browser, while~
and$HOME
are system variables. The browser does not know about them. So in this case you should always use the full path. Maybe I'm wrong?
– guillermo chamorro
Oct 1 at 16:06
1
It's not a requirement, web development is an "independent" system that does not need a pecific OS to work, for example the web browser. In this case, what you have to take into account is what and how the browser parses files, which is the same in any OS.
– guillermo chamorro
Oct 1 at 16:51
1
@SunBear Web developers also use javascript for such tasks. See this article for example.
– user3140225
Oct 1 at 17:09
The URL with
$HOME
should work fine. You just forgot a /
after $HOME
.– user3140225
Oct 1 at 15:45
The URL with
$HOME
should work fine. You just forgot a /
after $HOME
.– user3140225
Oct 1 at 15:45
@user3140225 I tried
background: #2c001e url(file://$HOME/.local/share/backgrounds/mypic.jpg)
but it still did not work...puzzled? I ran Alt+F2+r+return to refresh the GDM but they still did not work.– Sun Bear
Oct 1 at 15:58
@user3140225 I tried
background: #2c001e url(file://$HOME/.local/share/backgrounds/mypic.jpg)
but it still did not work...puzzled? I ran Alt+F2+r+return to refresh the GDM but they still did not work.– Sun Bear
Oct 1 at 15:58
2
2
As I understand, "file:///" is interpreted by the internet browser, while
~
and $HOME
are system variables. The browser does not know about them. So in this case you should always use the full path. Maybe I'm wrong?– guillermo chamorro
Oct 1 at 16:06
As I understand, "file:///" is interpreted by the internet browser, while
~
and $HOME
are system variables. The browser does not know about them. So in this case you should always use the full path. Maybe I'm wrong?– guillermo chamorro
Oct 1 at 16:06
1
1
It's not a requirement, web development is an "independent" system that does not need a pecific OS to work, for example the web browser. In this case, what you have to take into account is what and how the browser parses files, which is the same in any OS.
– guillermo chamorro
Oct 1 at 16:51
It's not a requirement, web development is an "independent" system that does not need a pecific OS to work, for example the web browser. In this case, what you have to take into account is what and how the browser parses files, which is the same in any OS.
– guillermo chamorro
Oct 1 at 16:51
1
1
@SunBear Web developers also use javascript for such tasks. See this article for example.
– user3140225
Oct 1 at 17:09
@SunBear Web developers also use javascript for such tasks. See this article for example.
– user3140225
Oct 1 at 17:09
|
show 5 more comments
0
active
oldest
votes
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1177938%2fsyntax-to-file-path-in-css%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1177938%2fsyntax-to-file-path-in-css%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
The URL with
$HOME
should work fine. You just forgot a/
after$HOME
.– user3140225
Oct 1 at 15:45
@user3140225 I tried
background: #2c001e url(file://$HOME/.local/share/backgrounds/mypic.jpg)
but it still did not work...puzzled? I ran Alt+F2+r+return to refresh the GDM but they still did not work.– Sun Bear
Oct 1 at 15:58
2
As I understand, "file:///" is interpreted by the internet browser, while
~
and$HOME
are system variables. The browser does not know about them. So in this case you should always use the full path. Maybe I'm wrong?– guillermo chamorro
Oct 1 at 16:06
1
It's not a requirement, web development is an "independent" system that does not need a pecific OS to work, for example the web browser. In this case, what you have to take into account is what and how the browser parses files, which is the same in any OS.
– guillermo chamorro
Oct 1 at 16:51
1
@SunBear Web developers also use javascript for such tasks. See this article for example.
– user3140225
Oct 1 at 17:09