[Bug 1835024] Re: Links triggered within most snap apps open in a separate browser session
Problem remains in 20.10 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1835024 Title: Links triggered within most snap apps open in a separate browser session To manage notifications about this bug go to: https://bugs.launchpad.net/snapd/+bug/1835024/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1835024] Re: Links triggered within most snap apps open in a separate browser session
I just wanted to comment that this is more than just Slack "owning" apps opened from inside Slack. It also messes up the audio/video setup inside the "owned" app. For example, if I launch snap Slack before Chrome and try to join a Zoom call from Slack, then my A/V options are limited only to the built-in devices in my laptop. This makes Zoom unusable for me, so I have to make sure I always launch Chrome before Slack. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1835024 Title: Links triggered within most snap apps open in a separate browser session To manage notifications about this bug go to: https://bugs.launchpad.net/snapd/+bug/1835024/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1835024] Re: Links triggered within most snap apps open in a separate browser session
I can confirm in too,fresh installation of 20.04, almost all the snap apps behaves this way, slack, VS Code, Android Studio etc .. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1835024 Title: Links triggered within most snap apps open in a separate browser session To manage notifications about this bug go to: https://bugs.launchpad.net/snapd/+bug/1835024/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1835024] Re: Links triggered within most snap apps open in a separate browser session
I can confirm that this bug exists on a fresh install of 20.04 as well. Changing the firefox profile to that of `default-release` for the firefox session opened via Slack solves the problem but it would be wonderful if it could work seamlessly out of the box :) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1835024 Title: Links triggered within most snap apps open in a separate browser session To manage notifications about this bug go to: https://bugs.launchpad.net/snapd/+bug/1835024/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1835024] Re: Links triggered within most snap apps open in a separate browser session
Comment #13 is a good workaround, but this is still a bug that needs to be resolved -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1835024 Title: Links triggered within most snap apps open in a separate browser session To manage notifications about this bug go to: https://bugs.launchpad.net/snapd/+bug/1835024/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1835024] Re: Links triggered within most snap apps open in a separate browser session
Setting the default profile to `default-release` fixed the problem for me as well. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1835024 Title: Links triggered within most snap apps open in a separate browser session To manage notifications about this bug go to: https://bugs.launchpad.net/snapd/+bug/1835024/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1835024] Re: Links triggered within most snap apps open in a separate browser session
I was struggle with the same problem for a several weeks - all urls from snap apps were opened in different Firefox instances. Today I finally figured it out - Open some url from snap app. Navigate this instance to `about:profiles` . Make sure that setted as default profile is the same as the one when you open Firefox normally. In my case this was `default-release` profile. Once you set it as default you are done. All links will be opended in your normal Firefox instance. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1835024 Title: Links triggered within most snap apps open in a separate browser session To manage notifications about this bug go to: https://bugs.launchpad.net/snapd/+bug/1835024/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 1835024] Re: Links triggered within most snap apps open in a separate browser session
Firefox is installed as a deb. tor. 14. nov. 2019, 22:45 skrev Ian Johnson <1835...@bugs.launchpad.net>: > @paal-andreassen do you have firefox installed as a snap or as a deb? > > -- > You received this bug notification because you are subscribed to the bug > report. > https://bugs.launchpad.net/bugs/1835024 > > Title: > Links triggered within most snap apps open in a separate browser > session > > To manage notifications about this bug go to: > https://bugs.launchpad.net/snapd/+bug/1835024/+subscriptions > -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1835024 Title: Links triggered within most snap apps open in a separate browser session To manage notifications about this bug go to: https://bugs.launchpad.net/snapd/+bug/1835024/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1835024] Re: Links triggered within most snap apps open in a separate browser session
@paal-andreassen do you have firefox installed as a snap or as a deb? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1835024 Title: Links triggered within most snap apps open in a separate browser session To manage notifications about this bug go to: https://bugs.launchpad.net/snapd/+bug/1835024/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1835024] Re: Links triggered within most snap apps open in a separate browser session
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: xdg-utils (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1835024 Title: Links triggered within most snap apps open in a separate browser session To manage notifications about this bug go to: https://bugs.launchpad.net/snapd/+bug/1835024/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1835024] Re: Links triggered within most snap apps open in a separate browser session
I can reproduce this with Ubuntu 19.10 and snapd 2.42.1 slack in classic mode. All clicked links opens Firefox in a new session where I'm not logged in, dont have any plugins etc. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1835024 Title: Links triggered within most snap apps open in a separate browser session To manage notifications about this bug go to: https://bugs.launchpad.net/snapd/+bug/1835024/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1835024] Re: Links triggered within most snap apps open in a separate browser session
I am unable to reproduce this with the classic slack snap and core stable (2.42.1) on Ubuntu 19.04. I don't believe that zyga's patch has been released yet although it is merged so one could test on edge channel of core/snapd. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1835024 Title: Links triggered within most snap apps open in a separate browser session To manage notifications about this bug go to: https://bugs.launchpad.net/snapd/+bug/1835024/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1835024] Re: Links triggered within most snap apps open in a separate browser session
Given Maciek's comment about reproducing this with classic snaps I'm marking this as confirmed. Interested parties can keep track of https://github.com/snapcore/snapd/pull/7659 where this issue may be resolved for _some_ snaps but if confirmed, the same cause is affecting all the strictly confined apps. Marking as confirmed. ** Changed in: snapd Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1835024 Title: Links triggered within most snap apps open in a separate browser session To manage notifications about this bug go to: https://bugs.launchpad.net/snapd/+bug/1835024/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1835024] Re: Links triggered within most snap apps open in a separate browser session
Recently we noticed that XDG_RUNTIME_DIR is set to a custom value for both strictly and classically confined snap applications. It may be the case that adjusting the runtime directory for a test shows that a remote window is not opened. I'm not proposing a solution yet but perhaps we can at least understand the cause. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1835024 Title: Links triggered within most snap apps open in a separate browser session To manage notifications about this bug go to: https://bugs.launchpad.net/snapd/+bug/1835024/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1835024] Re: Links triggered within most snap apps open in a separate browser session
I could reproduce this problem using 18.04.3 live CD using Slack and Atom. However, I don't think the problem is caused by snapd. Slack, Skype and Atom are all classic snaps so they have full access to the system. With Slack installed, clicking on the 'get started' link was enough to get another Firefox window open. I collected the strace log. A relevant piece is here: 10782 execve("/usr/local/sbin/xdg-open", ["xdg-open", "https://slack.com/ssb/add;], 0xb6c9467b000 /* 75 vars */) = -1 ENOENT (No such file or directory) 10782 execve("/usr/local/bin/xdg-open", ["xdg-open", "https://slack.com/ssb/add;], 0xb6c9467b000 /* 75 vars */) = -1 ENOENT (No such file or directory) 10782 execve("/usr/sbin/xdg-open", ["xdg-open", "https://slack.com/ssb/add;], 0xb6c9467b000 /* 75 vars */) = -1 ENOENT (No such file or directory) 10782 execve("/usr/bin/xdg-open", ["xdg-open", "https://slack.com/ssb/add;], 0xb6c9467b000 /* 75 vars */) = 0 10784 execve("/usr/bin/which", ["which", "gnome-default-applications-prope"...], 0x560d5fb594a8 /* 75 vars */) = 0 10784 +++ exited with 1 +++ 10782 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=10784, si_uid=999, si_status=1, si_utime=0, si_stime=0} --- 10785 execve("/usr/bin/gio", ["gio", "help", "open"], 0x560d5fb594a8 /* 75 vars */) = 0 10785 +++ exited with 0 +++ 10782 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=10785, si_uid=999, si_status=0, si_utime=0, si_stime=0} --- 10786 execve("/usr/bin/gio", ["gio", "open", "https://slack.com/ssb/add;], 0x560d5fb594a8 /* 75 vars */) = 0 10789 +++ exited with 0 +++ 10786 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=10789, si_uid=999, si_status=0, si_utime=0, si_stime=0} --- 10790 execve("/usr/local/sbin/firefox", ["firefox", "https://slack.com/ssb/add;], 0x563485f1c6e0 /* 77 vars */) = -1 ENOENT (No such file or directory) 10790 execve("/usr/local/bin/firefox", ["firefox", "https://slack.com/ssb/add;], 0x563485f1c6e0 /* 77 vars */) = -1 ENOENT (No such file or directory) 10790 execve("/usr/sbin/firefox", ["firefox", "https://slack.com/ssb/add;], 0x563485f1c6e0 /* 77 vars */) = -1 ENOENT (No such file or directory) 10790 execve("/usr/bin/firefox", ["firefox", "https://slack.com/ssb/add;], 0x563485f1c6e0 /* 77 vars */) = 0 10791 +++ exited with 0 +++ Notice how slack attempts to run xdg-open (and does so successfully at some point), then it proceeds to run `gio open ..`, and again does that successfully, finally it just runs firefox with the URL. I believe this is what triggers the new window to appear. Another observation for Slack on 18.04 is that gnome-shell groups the Firefox window *with* the slack one. I tried diffing the environment between the inside and outside of snap: --- in-shell2019-10-17 13:43:59.474529198 + +++ in-snap-shell 2019-10-17 13:44:09.186624002 + @@ -2,13 +2,14 @@ CLUTTER_IM_MODULE=xim COLORTERM=truecolor DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/999/bus DESKTOP_SESSION=ubuntu +DISABLE_WAYLAND=1 DISPLAY=:0 GDMSESSION=ubuntu GJS_DEBUG_OUTPUT=stderr GJS_DEBUG_TOPICS=JS ERROR;JS LOG GNOME_DESKTOP_SESSION_ID=this-is-deprecated GNOME_SHELL_SESSION_MODE=ubuntu -GNOME_TERMINAL_SCREEN=/org/gnome/Terminal/screen/113b5986_bfcc_47c1_8317_a37a7600b396 +GNOME_TERMINAL_SCREEN=/org/gnome/Terminal/screen/d399bea3_fa8f_4330_842a_0eaaac439533 GNOME_TERMINAL_SERVICE=:1.143 GPG_AGENT_INFO=/run/user/999/gnupg/S.gpg-agent:0:1 GTK_IM_MODULE=ibus @@ -27,7 +28,22 @@ QT_ACCESSIBILITY=1 QT_IM_MODULE=ibus SESSION_MANAGER=local/ubuntu:@/tmp/.ICE-unix/4000,unix/ubuntu:/tmp/.ICE-unix/4000 SHELL=/bin/bash -SHLVL=1 +SHLVL=2 +SNAP_ARCH=amd64 +SNAP_COMMON=/var/snap/atom/common +SNAP_CONTEXT=yBpkxSLRYnnStMxl74JWW8f6GLLQDXlD6qC2rdmXVjsh +SNAP_COOKIE=yBpkxSLRYnnStMxl74JWW8f6GLLQDXlD6qC2rdmXVjsh +SNAP_DATA=/var/snap/atom/238 +SNAP_INSTANCE_KEY= +SNAP_INSTANCE_NAME=atom +SNAP_LIBRARY_PATH=/var/lib/snapd/lib/gl:/var/lib/snapd/lib/gl32:/var/lib/snapd/void +SNAP_NAME=atom +SNAP_REEXEC= +SNAP_REVISION=238 +SNAP=/snap/atom/238 +SNAP_USER_COMMON=/home/ubuntu/snap/atom/common +SNAP_USER_DATA=/home/ubuntu/snap/atom/238 +SNAP_VERSION=1.40.1 SSH_AGENT_PID=4095 SSH_AUTH_SOCK=/run/user/999/keyring/ssh TERM=xterm-256color @@ -43,7 +59,7 @@ XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/etc XDG_CURRENT_DESKTOP=ubuntu:GNOME XDG_DATA_DIRS=/usr/share/ubuntu:/usr/local/share:/usr/share:/var/lib/snapd/desktop XDG_MENU_PREFIX=gnome- -XDG_RUNTIME_DIR=/run/user/999 +XDG_RUNTIME_DIR=/run/user/999/snap.atom XDG_SEAT=seat0 XDG_SESSION_DESKTOP=ubuntu XDG_SESSION_ID=2 However I could still spawn a separate Firefox window using a simple `gio open http://`. I've proceeded to install Chromium and set it to be my default browser. At this point all the links and xdg-open calls I tried would open a new tab in the current Chromium window. Perhaps the problem is actually with Firefox and the method it uses to find out whether there's antoher instance already running. -- You received this bug
[Bug 1835024] Re: Links triggered within most snap apps open in a separate browser session
** Changed in: snapd Status: Incomplete => New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1835024 Title: Links triggered within most snap apps open in a separate browser session To manage notifications about this bug go to: https://bugs.launchpad.net/snapd/+bug/1835024/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1835024] Re: Links triggered within most snap apps open in a separate browser session
** Changed in: snapd Importance: Undecided => Medium -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1835024 Title: Links triggered within most snap apps open in a separate browser session To manage notifications about this bug go to: https://bugs.launchpad.net/snapd/+bug/1835024/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1835024] Re: Links triggered within most snap apps open in a separate browser session
Ok, gnome-calculator snap seems fixed somehow. But Slack nor Skype still works. In Skype it crashes its own Firefox instance immediately, trying to open the browser - so only a crash dialogue gets opened. And in Slack this still opens in its own instance. Please try to test this against these Snap apps. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1835024 Title: Links triggered within most snap apps open in a separate browser session To manage notifications about this bug go to: https://bugs.launchpad.net/snapd/+bug/1835024/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1835024] Re: Links triggered within most snap apps open in a separate browser session
Hello I've tried to reproduce this on a fully up-to-date Ubuntu 19.10 system, using gnome-calculator. I use firefox as my defualt browser. I clicked on the credits link in gnome-calculator and I got a new tab in my existing session. I'm marking this bug as incomplete. Please clarify if the issue still persists for you. ** Project changed: snappy => snapd ** Changed in: snapd Status: New => Incomplete -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1835024 Title: Links triggered within most snap apps open in a separate browser session To manage notifications about this bug go to: https://bugs.launchpad.net/snapd/+bug/1835024/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1835024] Re: Links triggered within most snap apps open in a separate browser session
I've just bumped into these two related mentions of the same issue: https://forum.snapcraft.io/t/slack-opening-file-browser-firefox-and-chrome-in-the-snaps-context/8969 https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1827770 The other launchpad report is older, so mine would be a duplicate I guess. But it is also expired for some reason. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1835024 Title: Links triggered within most snap apps open in a separate browser session To manage notifications about this bug go to: https://bugs.launchpad.net/snappy/+bug/1835024/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1835024] Re: Links triggered within most snap apps open in a separate browser session
snapd's userd just calls "xdg-open " in the users session when a link is clicked, i have opened a task against xdg-utils, it should make sure to call the right command to open urls in existing browser sessions. the opening of "help://" urls via userd is an explicit limitation in snapd's userd that should get a separate bug so things are not being mixed here. ** Also affects: xdg-utils (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1835024 Title: Links triggered within most snap apps open in a separate browser session To manage notifications about this bug go to: https://bugs.launchpad.net/snappy/+bug/1835024/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs