You are not logged in.

#1 2018-05-13 17:32:52

aleskva
Member
Registered: 2017-09-02
Posts: 69

[Solved] Gedit opens new files in new windows

Hello, last month gedit started to open new files in new windows. If I mark multiple text files in Nautilus (Files) and hit enter, it opens multiple windows. I am used to have openned one window and multiple tabs instead and this was the default behavior for years.

I tried to uninstall gedit, remove all gedit folders and files in $HOME and install gedit back, but that didn't work. I also tried to reset config through `dconf reset -f /org/gnome/gedit/`, but that didn't help either. What should I do to fix my issue? Is this a bug or not?

Last edited by aleskva (2019-05-03 23:29:40)

Offline

#2 2018-05-13 18:38:56

ooo
Member
Registered: 2013-04-10
Posts: 1,637

Re: [Solved] Gedit opens new files in new windows

I can't reproduce your issue.
What happens if you try opening multiple files with gedit from command line? e.g.

gedit file1.txt file2.txt

Offline

#3 2018-05-13 20:18:09

aleskva
Member
Registered: 2017-09-02
Posts: 69

Re: [Solved] Gedit opens new files in new windows

ooo wrote:

I can't reproduce your issue.
What happens if you try opening multiple files with gedit from command line? e.g.

gedit file1.txt file2.txt

They are openned in one window as two tabs. So this must be some issue in Nautilus?

Offline

#4 2018-05-13 21:52:32

ooo
Member
Registered: 2013-04-10
Posts: 1,637

Re: [Solved] Gedit opens new files in new windows

Could be something with nautilus, or something else.
Have you modified the org.gnome.gedit.desktop for some reason?
Also test what happens with:

gio open file1.txt file2.txt

Offline

#5 2018-05-13 22:01:08

aleskva
Member
Registered: 2017-09-02
Posts: 69

Re: [Solved] Gedit opens new files in new windows

ooo wrote:

Could be something with nautilus, or something else.
Have you modified the org.gnome.gedit.desktop for some reason?
Also test what happens with:

gio open file1.txt file2.txt

I haven't modified that probably. gio open opens in two windows too.

Offline

#6 2018-05-18 09:45:52

aleskva
Member
Registered: 2017-09-02
Posts: 69

Re: [Solved] Gedit opens new files in new windows

What could I do?

Offline

#7 2018-06-13 05:02:46

aleskva
Member
Registered: 2017-09-02
Posts: 69

Re: [Solved] Gedit opens new files in new windows

Anyone?

Offline

#8 2018-06-13 08:23:47

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,427

Re: [Solved] Gedit opens new files in new windows

Don't do that: https://wiki.archlinux.org/index.php/Co … ct#Bumping

As ooo says it works for him, there's something going on on your setup, maybe your session is broken, what's your output for

loginctl show-session $XDG_SESSION_ID
printenv
journalctl -b

Offline

#9 2018-06-15 14:34:21

aleskva
Member
Registered: 2017-09-02
Posts: 69

Re: [Solved] Gedit opens new files in new windows

Sorry, I'm just starting to be mad and angry due to this issue.

$ loginctl show-session $XDG_SESSION_ID
Id=c2
User=1000
Name=pavel
Timestamp=Fri 2018-06-15 13:54:35 CEST
TimestampMonotonic=38851102
VTNr=2
Seat=seat0
TTY=tty2
Remote=no
Service=gdm-password
Scope=session-c2.scope
Leader=642
Audit=0
Type=x11
Class=user
Active=yes
State=active
IdleHint=no
IdleSinceHint=0
IdleSinceHintMonotonic=0
LockedHint=no

$ printenv
XDG_MENU_PREFIX=gnome-
LANG=cs_CZ.UTF-8
GDM_LANG=cs_CZ.UTF-8
DISPLAY=:0
COLORTERM=truecolor
DESKTOP_AUTOSTART_ID=1086f70738f29d1bd7152906367760319200000006700007
USERNAME=pavel
MOZ_PLUGIN_PATH=/usr/lib/mozilla/plugins
XDG_VTNR=2
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
XDG_SESSION_ID=c2
USER=pavel
DESKTOP_SESSION=gnome-xorg
GNOME_TERMINAL_SCREEN=/org/gnome/Terminal/screen/6eb8b032_03c1_42a3_8011_ede86bff51f5
PWD=/home/pavel
HOME=/home/pavel
XDG_SESSION_TYPE=x11
XDG_SESSION_DESKTOP=gnome-xorg
MAIL=/var/spool/mail/pavel
WINDOWPATH=2
TERM=xterm-256color
SHELL=/bin/bash
VTE_VERSION=5202
QT_IM_MODULE=ibus
XMODIFIERS=@im=ibus
XDG_CURRENT_DESKTOP=GNOME
GNOME_TERMINAL_SERVICE=:1.123
XDG_SEAT=seat0
SHLVL=1
GDMSESSION=gnome-xorg
GNOME_DESKTOP_SESSION_ID=this-is-deprecated
LOGNAME=pavel
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
XDG_RUNTIME_DIR=/run/user/1000
XAUTHORITY=/run/user/1000/gdm/Xauthority
PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
SESSION_MANAGER=local/<redacted>:@/tmp/.ICE-unix/670,unix/<redacted>:/tmp/.ICE-unix/670
_=/usr/bin/printenv

$ journalctl -b  # I selected two text files in Nautilus and hit enter; they openned both in their own window
čen 15 16:30:02 Pavel-DL dbus-daemon[668]: [session uid=1000 pid=668] Activating service name='org.gnome.gedit' requested by ':1.125' (uid=1000 pid=2716 comm="/usr/bin/nautilus --gapplication-service ")
čen 15 16:30:02 Pavel-DL dbus-daemon[668]: [session uid=1000 pid=668] Successfully activated service 'org.gnome.gedit'

Offline

#10 2018-06-15 14:57:25

ooo
Member
Registered: 2013-04-10
Posts: 1,637

Re: [Solved] Gedit opens new files in new windows

Well. It was already determined that your issue has something to do with 'gio open', so check or try clearing any configuration related to it. See the section for 'open' command in gio man page.

If nothing else works, make sure you can't reproduce the issue with newly created user.

Offline

#11 2018-06-15 22:09:55

RoundCube
Member
Registered: 2016-05-14
Posts: 42

Re: [Solved] Gedit opens new files in new windows

If I have a gedit window partially below the screen, a new gedit window will be opened instead of a tab if I click a file. May it be that it behaves the same for you? (And yes, I don't really like it)

Offline

#12 2018-06-19 12:34:09

aleskva
Member
Registered: 2017-09-02
Posts: 69

Re: [Solved] Gedit opens new files in new windows

ooo wrote:

Well. It was already determined that your issue has something to do with 'gio open', so check or try clearing any configuration related to it. See the section for 'open' command in gio man page.

I'm not sure how to clear any documentation related to it, today I tried:

$ rm -rf /home
$ dconf reset -f /
$ gsettings list-schemas | xargs -n 1 gsettings reset-recursively

but with no success hmm

ooo wrote:

If nothing else works, make sure you can't reproduce the issue with newly created user.

I can reproduce it exactly the same way using new user created by Gnome settings GUI.

Last edited by aleskva (2018-06-19 12:41:56)

Offline

#13 2018-06-19 12:59:55

ooo
Member
Registered: 2013-04-10
Posts: 1,637

Re: [Solved] Gedit opens new files in new windows

aleskva wrote:
ooo wrote:

See the section for 'open' command in gio man page.

I'm not sure how to clear any documentation related to it

I adviced you to look at gio man page, where $XDG_DATA_HOME/applications/mimeapps.list is mentioned.

aleskva wrote:

How to create a new user using terminal? (Note: I can not use gnome settings GUI as user tab makes gnome settings window crash

https://wiki.archlinux.org/index.php/Us … ing_a_user

However, If you already did 'rm -rf /home', creating a new user, or clearing any other user configuration wouldn't make any difference.


All that being said, I did also encountered this issue once the other day. If you can reproduce this with all user configuration deleted, and RoundCube can reproduce this issue as well, it seems unlikely this is resulted by anything in user configuration after all.

The best you can do is try to find some condition where the problem can be reliably reproduced. Otherwise it's pretty much impossible to find the cause of the issue.

RoundCube wrote:

If I have a gedit window partially below the screen, a new gedit window will be opened instead of a tab if I click a file.

I tested this, but having the gedit window partly off-screen doesn't seem to reproduce the issue for me on gnome-shell under wayland. I also tested moving the window to secondary display, but that didn't make any difference either.

Offline

#14 2018-06-20 10:35:29

aleskva
Member
Registered: 2017-09-02
Posts: 69

Re: [Solved] Gedit opens new files in new windows

I also observe focus issues like https://bugs.launchpad.net/ubuntu/+sour … ug/1723403. The gedit window focus seems broken to me on Arch. If I open another file, it opens in new window (wrong). If gedit is minimized, another file is openned without focus (wrong). Sometimes it is anoying as I open a file in gedit, hit Ctrl Q and it closes nautilus (currently being in the background behind gedit window), not gedit (in the foreground) (wrong). I think all these issues have something in common.

Offline

#15 2018-06-20 11:00:24

aleskva
Member
Registered: 2017-09-02
Posts: 69

Re: [Solved] Gedit opens new files in new windows

Offline

#16 2018-06-20 13:02:48

ooo
Member
Registered: 2013-04-10
Posts: 1,637

Re: [Solved] Gedit opens new files in new windows

Did you try the patch that's reported to fix the issue in https://bugzilla.gnome.org/show_bug.cgi?id=730414?

Offline

#17 2019-05-03 23:29:28

aleskva
Member
Registered: 2017-09-02
Posts: 69

Re: [Solved] Gedit opens new files in new windows

Since last Gnome major update it seems solved

Offline

Board footer

Powered by FluxBB