Open terminal in specific position when called from Nautilus

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












In Debian Stretch, I added Ctrl+Alt+T as a shortcut to gnome-terminal, including "175x25-0-0" as the geometry (a wide window, at the bottom-right of the screen).



I want the same behavior when the terminal is opened from Nautilus' Open in Terminal command, but all I could change (via profile preferences) was the size, not the position.



I tried changing the Custom command (also in profile preferences), to include the geometry, but I ended up with a recursive and useless terminal (recovered via this answer).



I also tried changing /usr/bin/gnome-terminal.wrapper, including



push(@args,"--geometry=175x25-0-0");


right before the final exec, but didn't work either.



How can I set the position of the terminal, when called from Nautilus?







share|improve this question




















  • Have you tried this?: ubuntuforums.org/showthread.php?t=1474500
    – J. Taylor
    Apr 1 at 5:55











  • @J.Taylor Yes, I've come across that post. If you look at it, you'll notice that /usr/share/vte/termcap/xterm has only options for size, not position. Also, Debian doesn't seem to have a System/Preferences/Preferred Applications.
    – Rodrigo
    Apr 1 at 11:53










  • Afiak the code responsible for launching that terminal is part of gnome-terminal, you'll have to patch the source code to change the geometry - see src/terminal-nautilus.c. It might be more convenient to write your own nautilus-python extension (there's plenty of them on the web, pick one that works on your setup and adapt it to your needs)...
    – don_crissti
    Apr 1 at 14:34











  • @don_crissti Change the Nautilus source code to make it point somewhere else (a bash script?) wouldn't be easier, or at least equally complex?
    – Rodrigo
    Apr 1 at 21:40










  • I don't think you read my post above... This isn't nautilus code, it's gnome-terminal code... As I said, you can always write your own extension - that's the easiest way.
    – don_crissti
    Apr 1 at 21:45















up vote
0
down vote

favorite












In Debian Stretch, I added Ctrl+Alt+T as a shortcut to gnome-terminal, including "175x25-0-0" as the geometry (a wide window, at the bottom-right of the screen).



I want the same behavior when the terminal is opened from Nautilus' Open in Terminal command, but all I could change (via profile preferences) was the size, not the position.



I tried changing the Custom command (also in profile preferences), to include the geometry, but I ended up with a recursive and useless terminal (recovered via this answer).



I also tried changing /usr/bin/gnome-terminal.wrapper, including



push(@args,"--geometry=175x25-0-0");


right before the final exec, but didn't work either.



How can I set the position of the terminal, when called from Nautilus?







share|improve this question




















  • Have you tried this?: ubuntuforums.org/showthread.php?t=1474500
    – J. Taylor
    Apr 1 at 5:55











  • @J.Taylor Yes, I've come across that post. If you look at it, you'll notice that /usr/share/vte/termcap/xterm has only options for size, not position. Also, Debian doesn't seem to have a System/Preferences/Preferred Applications.
    – Rodrigo
    Apr 1 at 11:53










  • Afiak the code responsible for launching that terminal is part of gnome-terminal, you'll have to patch the source code to change the geometry - see src/terminal-nautilus.c. It might be more convenient to write your own nautilus-python extension (there's plenty of them on the web, pick one that works on your setup and adapt it to your needs)...
    – don_crissti
    Apr 1 at 14:34











  • @don_crissti Change the Nautilus source code to make it point somewhere else (a bash script?) wouldn't be easier, or at least equally complex?
    – Rodrigo
    Apr 1 at 21:40










  • I don't think you read my post above... This isn't nautilus code, it's gnome-terminal code... As I said, you can always write your own extension - that's the easiest way.
    – don_crissti
    Apr 1 at 21:45













up vote
0
down vote

favorite









up vote
0
down vote

favorite











In Debian Stretch, I added Ctrl+Alt+T as a shortcut to gnome-terminal, including "175x25-0-0" as the geometry (a wide window, at the bottom-right of the screen).



I want the same behavior when the terminal is opened from Nautilus' Open in Terminal command, but all I could change (via profile preferences) was the size, not the position.



I tried changing the Custom command (also in profile preferences), to include the geometry, but I ended up with a recursive and useless terminal (recovered via this answer).



I also tried changing /usr/bin/gnome-terminal.wrapper, including



push(@args,"--geometry=175x25-0-0");


right before the final exec, but didn't work either.



How can I set the position of the terminal, when called from Nautilus?







share|improve this question












In Debian Stretch, I added Ctrl+Alt+T as a shortcut to gnome-terminal, including "175x25-0-0" as the geometry (a wide window, at the bottom-right of the screen).



I want the same behavior when the terminal is opened from Nautilus' Open in Terminal command, but all I could change (via profile preferences) was the size, not the position.



I tried changing the Custom command (also in profile preferences), to include the geometry, but I ended up with a recursive and useless terminal (recovered via this answer).



I also tried changing /usr/bin/gnome-terminal.wrapper, including



push(@args,"--geometry=175x25-0-0");


right before the final exec, but didn't work either.



How can I set the position of the terminal, when called from Nautilus?









share|improve this question











share|improve this question




share|improve this question










asked Apr 1 at 4:31









Rodrigo

1701117




1701117











  • Have you tried this?: ubuntuforums.org/showthread.php?t=1474500
    – J. Taylor
    Apr 1 at 5:55











  • @J.Taylor Yes, I've come across that post. If you look at it, you'll notice that /usr/share/vte/termcap/xterm has only options for size, not position. Also, Debian doesn't seem to have a System/Preferences/Preferred Applications.
    – Rodrigo
    Apr 1 at 11:53










  • Afiak the code responsible for launching that terminal is part of gnome-terminal, you'll have to patch the source code to change the geometry - see src/terminal-nautilus.c. It might be more convenient to write your own nautilus-python extension (there's plenty of them on the web, pick one that works on your setup and adapt it to your needs)...
    – don_crissti
    Apr 1 at 14:34











  • @don_crissti Change the Nautilus source code to make it point somewhere else (a bash script?) wouldn't be easier, or at least equally complex?
    – Rodrigo
    Apr 1 at 21:40










  • I don't think you read my post above... This isn't nautilus code, it's gnome-terminal code... As I said, you can always write your own extension - that's the easiest way.
    – don_crissti
    Apr 1 at 21:45

















  • Have you tried this?: ubuntuforums.org/showthread.php?t=1474500
    – J. Taylor
    Apr 1 at 5:55











  • @J.Taylor Yes, I've come across that post. If you look at it, you'll notice that /usr/share/vte/termcap/xterm has only options for size, not position. Also, Debian doesn't seem to have a System/Preferences/Preferred Applications.
    – Rodrigo
    Apr 1 at 11:53










  • Afiak the code responsible for launching that terminal is part of gnome-terminal, you'll have to patch the source code to change the geometry - see src/terminal-nautilus.c. It might be more convenient to write your own nautilus-python extension (there's plenty of them on the web, pick one that works on your setup and adapt it to your needs)...
    – don_crissti
    Apr 1 at 14:34











  • @don_crissti Change the Nautilus source code to make it point somewhere else (a bash script?) wouldn't be easier, or at least equally complex?
    – Rodrigo
    Apr 1 at 21:40










  • I don't think you read my post above... This isn't nautilus code, it's gnome-terminal code... As I said, you can always write your own extension - that's the easiest way.
    – don_crissti
    Apr 1 at 21:45
















Have you tried this?: ubuntuforums.org/showthread.php?t=1474500
– J. Taylor
Apr 1 at 5:55





Have you tried this?: ubuntuforums.org/showthread.php?t=1474500
– J. Taylor
Apr 1 at 5:55













@J.Taylor Yes, I've come across that post. If you look at it, you'll notice that /usr/share/vte/termcap/xterm has only options for size, not position. Also, Debian doesn't seem to have a System/Preferences/Preferred Applications.
– Rodrigo
Apr 1 at 11:53




@J.Taylor Yes, I've come across that post. If you look at it, you'll notice that /usr/share/vte/termcap/xterm has only options for size, not position. Also, Debian doesn't seem to have a System/Preferences/Preferred Applications.
– Rodrigo
Apr 1 at 11:53












Afiak the code responsible for launching that terminal is part of gnome-terminal, you'll have to patch the source code to change the geometry - see src/terminal-nautilus.c. It might be more convenient to write your own nautilus-python extension (there's plenty of them on the web, pick one that works on your setup and adapt it to your needs)...
– don_crissti
Apr 1 at 14:34





Afiak the code responsible for launching that terminal is part of gnome-terminal, you'll have to patch the source code to change the geometry - see src/terminal-nautilus.c. It might be more convenient to write your own nautilus-python extension (there's plenty of them on the web, pick one that works on your setup and adapt it to your needs)...
– don_crissti
Apr 1 at 14:34













@don_crissti Change the Nautilus source code to make it point somewhere else (a bash script?) wouldn't be easier, or at least equally complex?
– Rodrigo
Apr 1 at 21:40




@don_crissti Change the Nautilus source code to make it point somewhere else (a bash script?) wouldn't be easier, or at least equally complex?
– Rodrigo
Apr 1 at 21:40












I don't think you read my post above... This isn't nautilus code, it's gnome-terminal code... As I said, you can always write your own extension - that's the easiest way.
– don_crissti
Apr 1 at 21:45





I don't think you read my post above... This isn't nautilus code, it's gnome-terminal code... As I said, you can always write your own extension - that's the easiest way.
– don_crissti
Apr 1 at 21:45
















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
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',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f434784%2fopen-terminal-in-specific-position-when-called-from-nautilus%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes










 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f434784%2fopen-terminal-in-specific-position-when-called-from-nautilus%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

How to check contact read email or not when send email to Individual?

Displaying single band from multi-band raster using QGIS

How many registers does an x86_64 CPU actually have?