Startup command with variable settings
I have Xubuntu 16.04 for 2 days.
I am trying to set an entry in Session and Startup
>Application Autostart
that will set several bash variables and execute a command.
I have managed how to do it without variable settings. The entry that worked is this
dbus-launch dropbox start -i
But how to add variable settings?
My attempts have been these but failed:
dbus-launch DBUS_SESSION_BUS_ADDRESS="" QT_STYLE_OVERRIDE="" dropbox start -i
and
DBUS_SESSION_BUS_ADDRESS=""&&QT_STYLE_OVERRIDE=""&&dropbox start -i
and
DBUS_SESSION_BUS_ADDRESS=""&&QT_STYLE_OVERRIDE=""&&dbus-launch dropbox start -i
and
dbus-launch --sh-syntax 'DBUS_SESSION_BUS_ADDRESS=""&&QT_STYLE_OVERRIDE=""&&dropbox start -i'
These work well in the terminal not in the autostart:
DBUS_SESSION_BUS_ADDRESS=""&&QT_STYLE_OVERRIDE=""&&dropbox start -i
and
DBUS_SESSION_BUS_ADDRESS=""&&QT_STYLE_OVERRIDE=""&&dbus-launch dropbox start -i
I also tried to add the command
#!/bin/bash
DBUS_SESSION_BUS_ADDRESS=""&&QT_STYLE_OVERRIDE=""&&dropbox start -i
to files ~/.xinitrc
and ~/.xsession
, but not succeed.
How to add the variable settings to the command in the autostart?
Update
I found a resolving but I do not put it as the answer because such a way of handling dropbox would be rather hacky. But as far as variables are considered, in a universal way, the resolving is found.
Create a command in a $PATH directory.
dropbox-fix
#!/bin/bash
DBUS_SESSION_BUS_ADDRESS=
QT_STYLE_OVERRIDE=
dropbox start -i
Add the entry in Session and Startup
>Application Autostart
dbus-launch dropbox-fix
bash environment-variables dropbox autostart dbus
add a comment |
I have Xubuntu 16.04 for 2 days.
I am trying to set an entry in Session and Startup
>Application Autostart
that will set several bash variables and execute a command.
I have managed how to do it without variable settings. The entry that worked is this
dbus-launch dropbox start -i
But how to add variable settings?
My attempts have been these but failed:
dbus-launch DBUS_SESSION_BUS_ADDRESS="" QT_STYLE_OVERRIDE="" dropbox start -i
and
DBUS_SESSION_BUS_ADDRESS=""&&QT_STYLE_OVERRIDE=""&&dropbox start -i
and
DBUS_SESSION_BUS_ADDRESS=""&&QT_STYLE_OVERRIDE=""&&dbus-launch dropbox start -i
and
dbus-launch --sh-syntax 'DBUS_SESSION_BUS_ADDRESS=""&&QT_STYLE_OVERRIDE=""&&dropbox start -i'
These work well in the terminal not in the autostart:
DBUS_SESSION_BUS_ADDRESS=""&&QT_STYLE_OVERRIDE=""&&dropbox start -i
and
DBUS_SESSION_BUS_ADDRESS=""&&QT_STYLE_OVERRIDE=""&&dbus-launch dropbox start -i
I also tried to add the command
#!/bin/bash
DBUS_SESSION_BUS_ADDRESS=""&&QT_STYLE_OVERRIDE=""&&dropbox start -i
to files ~/.xinitrc
and ~/.xsession
, but not succeed.
How to add the variable settings to the command in the autostart?
Update
I found a resolving but I do not put it as the answer because such a way of handling dropbox would be rather hacky. But as far as variables are considered, in a universal way, the resolving is found.
Create a command in a $PATH directory.
dropbox-fix
#!/bin/bash
DBUS_SESSION_BUS_ADDRESS=
QT_STYLE_OVERRIDE=
dropbox start -i
Add the entry in Session and Startup
>Application Autostart
dbus-launch dropbox-fix
bash environment-variables dropbox autostart dbus
Try replacing&&
by newlines (i.e. one command per line). Do you really set the variables to the empty string (""
) or did you leave the values out for readability?
– danzel
Dec 3 '18 at 17:41
@danzel Yes. This is a way to fix two issues of dropbox: lack of dropbox indicate icon and dropbox menu and the crashed window of selective download. I found them on the internet. But after your question, I thought that they are not clean. Sth like a hack. So I have no way and will risk a little.
– trzczy
Dec 3 '18 at 21:47
add a comment |
I have Xubuntu 16.04 for 2 days.
I am trying to set an entry in Session and Startup
>Application Autostart
that will set several bash variables and execute a command.
I have managed how to do it without variable settings. The entry that worked is this
dbus-launch dropbox start -i
But how to add variable settings?
My attempts have been these but failed:
dbus-launch DBUS_SESSION_BUS_ADDRESS="" QT_STYLE_OVERRIDE="" dropbox start -i
and
DBUS_SESSION_BUS_ADDRESS=""&&QT_STYLE_OVERRIDE=""&&dropbox start -i
and
DBUS_SESSION_BUS_ADDRESS=""&&QT_STYLE_OVERRIDE=""&&dbus-launch dropbox start -i
and
dbus-launch --sh-syntax 'DBUS_SESSION_BUS_ADDRESS=""&&QT_STYLE_OVERRIDE=""&&dropbox start -i'
These work well in the terminal not in the autostart:
DBUS_SESSION_BUS_ADDRESS=""&&QT_STYLE_OVERRIDE=""&&dropbox start -i
and
DBUS_SESSION_BUS_ADDRESS=""&&QT_STYLE_OVERRIDE=""&&dbus-launch dropbox start -i
I also tried to add the command
#!/bin/bash
DBUS_SESSION_BUS_ADDRESS=""&&QT_STYLE_OVERRIDE=""&&dropbox start -i
to files ~/.xinitrc
and ~/.xsession
, but not succeed.
How to add the variable settings to the command in the autostart?
Update
I found a resolving but I do not put it as the answer because such a way of handling dropbox would be rather hacky. But as far as variables are considered, in a universal way, the resolving is found.
Create a command in a $PATH directory.
dropbox-fix
#!/bin/bash
DBUS_SESSION_BUS_ADDRESS=
QT_STYLE_OVERRIDE=
dropbox start -i
Add the entry in Session and Startup
>Application Autostart
dbus-launch dropbox-fix
bash environment-variables dropbox autostart dbus
I have Xubuntu 16.04 for 2 days.
I am trying to set an entry in Session and Startup
>Application Autostart
that will set several bash variables and execute a command.
I have managed how to do it without variable settings. The entry that worked is this
dbus-launch dropbox start -i
But how to add variable settings?
My attempts have been these but failed:
dbus-launch DBUS_SESSION_BUS_ADDRESS="" QT_STYLE_OVERRIDE="" dropbox start -i
and
DBUS_SESSION_BUS_ADDRESS=""&&QT_STYLE_OVERRIDE=""&&dropbox start -i
and
DBUS_SESSION_BUS_ADDRESS=""&&QT_STYLE_OVERRIDE=""&&dbus-launch dropbox start -i
and
dbus-launch --sh-syntax 'DBUS_SESSION_BUS_ADDRESS=""&&QT_STYLE_OVERRIDE=""&&dropbox start -i'
These work well in the terminal not in the autostart:
DBUS_SESSION_BUS_ADDRESS=""&&QT_STYLE_OVERRIDE=""&&dropbox start -i
and
DBUS_SESSION_BUS_ADDRESS=""&&QT_STYLE_OVERRIDE=""&&dbus-launch dropbox start -i
I also tried to add the command
#!/bin/bash
DBUS_SESSION_BUS_ADDRESS=""&&QT_STYLE_OVERRIDE=""&&dropbox start -i
to files ~/.xinitrc
and ~/.xsession
, but not succeed.
How to add the variable settings to the command in the autostart?
Update
I found a resolving but I do not put it as the answer because such a way of handling dropbox would be rather hacky. But as far as variables are considered, in a universal way, the resolving is found.
Create a command in a $PATH directory.
dropbox-fix
#!/bin/bash
DBUS_SESSION_BUS_ADDRESS=
QT_STYLE_OVERRIDE=
dropbox start -i
Add the entry in Session and Startup
>Application Autostart
dbus-launch dropbox-fix
bash environment-variables dropbox autostart dbus
bash environment-variables dropbox autostart dbus
edited Dec 4 '18 at 4:55
asked Dec 3 '18 at 16:07
trzczy
1012
1012
Try replacing&&
by newlines (i.e. one command per line). Do you really set the variables to the empty string (""
) or did you leave the values out for readability?
– danzel
Dec 3 '18 at 17:41
@danzel Yes. This is a way to fix two issues of dropbox: lack of dropbox indicate icon and dropbox menu and the crashed window of selective download. I found them on the internet. But after your question, I thought that they are not clean. Sth like a hack. So I have no way and will risk a little.
– trzczy
Dec 3 '18 at 21:47
add a comment |
Try replacing&&
by newlines (i.e. one command per line). Do you really set the variables to the empty string (""
) or did you leave the values out for readability?
– danzel
Dec 3 '18 at 17:41
@danzel Yes. This is a way to fix two issues of dropbox: lack of dropbox indicate icon and dropbox menu and the crashed window of selective download. I found them on the internet. But after your question, I thought that they are not clean. Sth like a hack. So I have no way and will risk a little.
– trzczy
Dec 3 '18 at 21:47
Try replacing
&&
by newlines (i.e. one command per line). Do you really set the variables to the empty string (""
) or did you leave the values out for readability?– danzel
Dec 3 '18 at 17:41
Try replacing
&&
by newlines (i.e. one command per line). Do you really set the variables to the empty string (""
) or did you leave the values out for readability?– danzel
Dec 3 '18 at 17:41
@danzel Yes. This is a way to fix two issues of dropbox: lack of dropbox indicate icon and dropbox menu and the crashed window of selective download. I found them on the internet. But after your question, I thought that they are not clean. Sth like a hack. So I have no way and will risk a little.
– trzczy
Dec 3 '18 at 21:47
@danzel Yes. This is a way to fix two issues of dropbox: lack of dropbox indicate icon and dropbox menu and the crashed window of selective download. I found them on the internet. But after your question, I thought that they are not clean. Sth like a hack. So I have no way and will risk a little.
– trzczy
Dec 3 '18 at 21:47
add a comment |
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/3.0/"u003ecc by-sa 3.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%2f1098186%2fstartup-command-with-variable-settings%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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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%2f1098186%2fstartup-command-with-variable-settings%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
Try replacing
&&
by newlines (i.e. one command per line). Do you really set the variables to the empty string (""
) or did you leave the values out for readability?– danzel
Dec 3 '18 at 17:41
@danzel Yes. This is a way to fix two issues of dropbox: lack of dropbox indicate icon and dropbox menu and the crashed window of selective download. I found them on the internet. But after your question, I thought that they are not clean. Sth like a hack. So I have no way and will risk a little.
– trzczy
Dec 3 '18 at 21:47