[SOLVED -sort of] Wrong HOME in Guake-Terminal

This forum is dedicated to advanced help and support :

Ask here your questions about advanced usage of Mageia. For example you may post here all your questions about network and automated installs, complex server configurations, kernel tuning, creating your own Mageia mirrors, and all tasks likely to be touchy even for skilled users.

[SOLVED -sort of] Wrong HOME in Guake-Terminal

Postby viking60 » Feb 15th, '13, 15:58

I came over a strange thing today. It turns out that when you install both Gnome and Kde and log in to KDE and then open the gnome-terminal; it will open with
Code: Select all
[Magic@localhost Documents]$

This apparently also affects the dropdown terminal, Guake ( I have not tested that myself) While Konsole and xterm and urxvt all pop up with the correct home.

The Gnome-terminal behaves correctly in Gnome but not in KDE.

I could not find anything in the errata nor in the bugs.

I guess not many would use gnome-terminal in KDE so this would be a rather marginal problem but Guake is another matter. So I have two questions:

1. Can anyone offer a workaround? (The behavior is already confirmed by another user - so that is taken care of. And I failed to set another path in the terminal settings)
2. Who wants to report the bug :D

More here
Last edited by viking60 on Feb 16th, '13, 16:17, edited 4 times in total.
Image Flexibility is good and inxi is good... install both!
User avatar
viking60
 
Posts: 255
Joined: Mar 19th, '11, 22:26

Re: Wrong HOME in Gnome-Terminal

Postby saptech » Feb 15th, '13, 17:18

This is no work around or answer but I have both, Gnome 3 & KDE 4 installed and my gnome terminal opens in the correct directory using KDE.

Code: Select all
[saptech@localhost ~]$ pwd
/home/saptech
[saptech@localhost ~]$


But another quirk I am noticing, when I open gnome terminal in KDE, it opens in the top left corner and shrink itself. By that I mean it shrinks with about 2-3 rows instead of opening at a normal size.

First time noticing this.
Each One Teach One
--------------------------------
Mageia 7 & Debian 10
HP Compaq Elite 8300 | Intel Core i5 | 8gb | 120gb SSD
--------------------------
Mageia 7 & Debian 10
Dell Optiplex 760 | Quad Core | 4gb | 250gb HDD
User avatar
saptech
 
Posts: 234
Joined: Apr 5th, '11, 08:36
Location: STL

Re: Wrong HOME in Gnome-Terminal

Postby doktor5000 » Feb 15th, '13, 17:25

saptech wrote:But another quirk I am noticing, when I open gnome terminal in KDE, it opens in the top left corner and shrink itself.

Same for me, and the effect is quite funny, watching it shrink :)
It also opens at $HOME for me - but i remember a colleague at work having the same problem (RHEL -> switched to KDE) and he just changed
the starter to no start konsole/terminal directly but to run konsole /home/username [or ~ if that works for a starter, can't remember exactly and can't look, currently on vacation])
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18018
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Wrong HOME in Gnome-Terminal

Postby viking60 » Feb 15th, '13, 19:33

Yes that shrinking effect is so cool that we must accept that as a feature :D The shrinking happens in Arch too..
Strange tho that the home error does not occur consistently. I checked; and the very same error happens in Mandriva 2010 too - I discovered it today after all these years...
Image Flexibility is good and inxi is good... install both!
User avatar
viking60
 
Posts: 255
Joined: Mar 19th, '11, 22:26

Re: Wrong HOME in Gnome-Terminal

Postby martinw » Feb 15th, '13, 20:57

I've not got KDE installed, so can't test this, but a possible workaround would be to tick the "Run command as a login shell" option in the gnome-terminal profile editor, then put a 'cd $HOME' in your $HOME/.login script.
martinw
 
Posts: 608
Joined: May 14th, '11, 10:59

Re: Wrong HOME in Gnome-Terminal

Postby viking60 » Feb 16th, '13, 00:45

I tried that - no luck :(
Image Flexibility is good and inxi is good... install both!
User avatar
viking60
 
Posts: 255
Joined: Mar 19th, '11, 22:26

Re: Wrong HOME in Gnome-Terminal

Postby doktor5000 » Feb 16th, '13, 03:16

As i wrote, you should be able to call gnome-terminal with the full path, just write it behind the command. Does that help?
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18018
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Wrong HOME in Gnome-Terminal

Postby viking60 » Feb 16th, '13, 05:15

I ticked the wrong area (Hard to translate English to Norwegian :D) so yes the Gnome terminal works when the path is entered in .login
Thanks guys!
But the real hurd here is Guake since that terminal is more likely to be used in KDE. I need to find a similar method for that one.
Edit:
It looks like the result was cluttered by byobu - when I deactivate it the good ol Documents is back :(
Grr I just found out that doing a cd is way easier than this, in guake. The gnome-terminal should be replaced by konsole in kde anyway.
(Giving up :) )
Image Flexibility is good and inxi is good... install both!
User avatar
viking60
 
Posts: 255
Joined: Mar 19th, '11, 22:26

Re: Wrong HOME in Gnome-Terminal

Postby isadora » Feb 16th, '13, 09:00

Big viking-friend, will you please re-touch the title of this topic??? ;)
Big thanks in return!!! :)
..........bird from paradise..........

Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.
—Antoine de Saint-Exupéry
User avatar
isadora
 
Posts: 2763
Joined: Mar 25th, '11, 16:03
Location: Netherlands

Re: Wrong HOME in Gnome-Terminal

Postby doktor5000 » Feb 16th, '13, 13:06

viking60 wrote:The gnome-terminal should be replaced by konsole in kde anyway.


Well, isn't the question more why you use gnome-terminal under KDE? :twisted:
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18018
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Wrong HOME in Gnome-Terminal (GIVEN UP)

Postby viking60 » Feb 16th, '13, 15:58

The "big" issue is Guake (but I cannot get that to work in VB so I used the terminal). But I see your point, so I changed the header to Guake (They both have the same problem).
After some checking I found a bug report:
https://bugs.kde.org/show_bug.cgi?id=302903

So this will go away when KDE gets updated I guess. I will change the status to solved -sort of. Finding a workaround is not worth the effort.
Most terminals behave just fine Guake and Gnome-terminal do not - this only appears in KDE so I guess it is KDE related. I do not use KDE on a daily basis so.....
Image Flexibility is good and inxi is good... install both!
User avatar
viking60
 
Posts: 255
Joined: Mar 19th, '11, 22:26


Return to Advanced support

Who is online

Users browsing this forum: No registered users and 1 guest