How to set custom property with xprop and open that program in one line?
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I tried this:
xprop -id $(gedit & echo $!) -f MY_VAR1 8s -set MY_VAR1 MyCustomVar
Than i tried to xprop and click on the gedit window - MY_VAR1 was not present there.
So i thought maybe i should put sleep in there... i tried:
xprop -id $(gedit & sleep 5 & echo $!) -f MY_VAR1 8s -set MY_VAR1 MyCustomVar
Waited 5 seconds and tried xprop and clicked on the new window.. still nothing
Thanks
linux
New contributor
add a comment |Â
up vote
0
down vote
favorite
I tried this:
xprop -id $(gedit & echo $!) -f MY_VAR1 8s -set MY_VAR1 MyCustomVar
Than i tried to xprop and click on the gedit window - MY_VAR1 was not present there.
So i thought maybe i should put sleep in there... i tried:
xprop -id $(gedit & sleep 5 & echo $!) -f MY_VAR1 8s -set MY_VAR1 MyCustomVar
Waited 5 seconds and tried xprop and clicked on the new window.. still nothing
Thanks
linux
New contributor
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I tried this:
xprop -id $(gedit & echo $!) -f MY_VAR1 8s -set MY_VAR1 MyCustomVar
Than i tried to xprop and click on the gedit window - MY_VAR1 was not present there.
So i thought maybe i should put sleep in there... i tried:
xprop -id $(gedit & sleep 5 & echo $!) -f MY_VAR1 8s -set MY_VAR1 MyCustomVar
Waited 5 seconds and tried xprop and clicked on the new window.. still nothing
Thanks
linux
New contributor
I tried this:
xprop -id $(gedit & echo $!) -f MY_VAR1 8s -set MY_VAR1 MyCustomVar
Than i tried to xprop and click on the gedit window - MY_VAR1 was not present there.
So i thought maybe i should put sleep in there... i tried:
xprop -id $(gedit & sleep 5 & echo $!) -f MY_VAR1 8s -set MY_VAR1 MyCustomVar
Waited 5 seconds and tried xprop and clicked on the new window.. still nothing
Thanks
linux
linux
New contributor
New contributor
New contributor
asked 2 mins ago
masky007
1
1
New contributor
New contributor
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
masky007 is a new contributor. Be nice, and check out our Code of Conduct.
masky007 is a new contributor. Be nice, and check out our Code of Conduct.
masky007 is a new contributor. Be nice, and check out our Code of Conduct.
masky007 is a new contributor. Be nice, and check out our Code of Conduct.
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
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f479788%2fhow-to-set-custom-property-with-xprop-and-open-that-program-in-one-line%23new-answer', 'question_page');
);
Post as a guest
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
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
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