Closed Bug 1852554 Opened 2 years ago Closed 8 months ago

Firefox Nightly Snap identifying different invocation methods as different processes and assigning separate profiles.

Categories

(Firefox Build System :: Third Party Packaging, defect)

Firefox 119
x86_64
Linux
defect

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: zn7esutb, Unassigned)

References

(Blocks 1 open bug, )

Details

Attachments

(11 files)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/119.0

Steps to reproduce:

sudo snap install firefox --channel=latest/edge
firefox # really, I invoked '/var/lib/snapd/desktop/applications/firefox_firefox', but https://bugs.launchpad.net/ubuntu/+source/glib2.0/+bug/378783/comments/36

Actual results:

Initially, a version of the browser launched which didn't appear to correlate with the .desktop file that installation had added to my application launcher, because it did not group with it, nor did opening and quitting the version invoked by the .desktop file quit the initially invoked window.

This is consistently reproducible - a similar (but not identical) report should exist by me previously filed, detailing the initial difference in a report about the snap version being impossible to launch for a while (ultimately due to a snap bug). That report occurred almost a year ago, and on a very different system configuration. The OS I am using currently is newly installed, too.

Consequently, I dragged both from https://userbase.kde.org/Plasma/Tasks to the plasmashell desktop, and very different files were created for both. They shall be attached after submission and clearly labelled.

Additionally, per https://github.com/openaudible/openaudible/issues/1261#issue-1890607529, having this duplicate instance set as the default web browser causes issues with 3rd-party applications, despite my test of

RokeJulianLockhart@localhost:~> xdg-open https://example.com

working without issue.

Expected results:

Initial invocation of firefox should have invoked the .desktop file, and more fundamentally, this weird discrepancy shouldn't exist - there shouldn't be multiple versions of Firefox installed.

From /home/RokeJulianLockhart/.local/share/plasma_icons/firefox_firefox.desktop:

[Desktop Entry]
X-SnapInstanceName=firefox
Version=1.0
Name=Firefox Web Browser
Name[ar]=متصفح الويب فَيَرفُكْس
Name[ast]=Restolador web Firefox
Name[bn]=ফায়ারফক্স ওয়েব ব্রাউজার
Name[ca]=Navegador web Firefox
Name[cs]=Firefox Webový prohlížeč
Name[da]=Firefox - internetbrowser
Name[el]=Περιηγητής Firefox
Name[es]=Navegador web Firefox
Name[et]=Firefoxi veebibrauser
Name[fa]=مرورگر اینترنتی Firefox
Name[fi]=Firefox-selain
Name[fr]=Navigateur Web Firefox
Name[gl]=Navegador web Firefox
Name[he]=דפדפן האינטרנט Firefox
Name[hr]=Firefox web preglednik
Name[hu]=Firefox webböngésző
Name[it]=Firefox Browser Web
Name[ja]=Firefox ウェブ・ブラウザ
Name[ko]=Firefox 웹 브라우저
Name[ku]=Geroka torê Firefox
Name[lt]=Firefox interneto naršyklė
Name[nb]=Firefox Nettleser
Name[nl]=Firefox webbrowser
Name[nn]=Firefox Nettlesar
Name[no]=Firefox Nettleser
Name[pl]=Przeglądarka WWW Firefox
Name[pt]=Firefox Navegador Web
Name[pt_BR]=Navegador Web Firefox
Name[ro]=Firefox – Navigator Internet
Name[ru]=Веб-браузер Firefox
Name[sk]=Firefox - internetový prehliadač
Name[sl]=Firefox spletni brskalnik
Name[sv]=Firefox webbläsare
Name[tr]=Firefox Web Tarayıcısı
Name[ug]=Firefox توركۆرگۈ
Name[uk]=Веб-браузер Firefox
Name[vi]=Trình duyệt web Firefox
Name[zh_CN]=Firefox 网络浏览器
Name[zh_TW]=Firefox 網路瀏覽器
Comment=Browse the World Wide Web
Comment[ar]=تصفح الشبكة العنكبوتية العالمية
Comment[ast]=Restola pela Rede
Comment[bn]=ইন্টারনেট ব্রাউজ করুন
Comment[ca]=Navegueu per la web
Comment[cs]=Prohlížení stránek World Wide Webu
Comment[da]=Surf på internettet
Comment[de]=Im Internet surfen
Comment[el]=Μπορείτε να περιηγηθείτε στο διαδίκτυο (Web)
Comment[es]=Navegue por la web
Comment[et]=Lehitse veebi
Comment[fa]=صفحات شبکه جهانی اینترنت را مرور نمایید
Comment[fi]=Selaa Internetin WWW-sivuja
Comment[fr]=Naviguer sur le Web
Comment[gl]=Navegar pola rede
Comment[he]=גלישה ברחבי האינטרנט
Comment[hr]=Pretražite web
Comment[hu]=A világháló böngészése
Comment[it]=Esplora il web
Comment[ja]=ウェブを閲覧します
Comment[ko]=웹을 돌아 다닙니다
Comment[ku]=Li torê bigere
Comment[lt]=Naršykite internete
Comment[nb]=Surf på nettet
Comment[nl]=Verken het internet
Comment[nn]=Surf på nettet
Comment[no]=Surf på nettet
Comment[pl]=Przeglądanie stron WWW
Comment[pt]=Navegue na Internet
Comment[pt_BR]=Navegue na Internet
Comment[ro]=Navigați pe Internet
Comment[ru]=Доступ в Интернет
Comment[sk]=Prehliadanie internetu
Comment[sl]=Brskajte po spletu
Comment[sv]=Surfa på webben
Comment[tr]=İnternet'te Gezinin
Comment[ug]=دۇنيادىكى توربەتلەرنى كۆرگىلى بولىدۇ
Comment[uk]=Перегляд сторінок Інтернету
Comment[vi]=Để duyệt các trang web
Comment[zh_CN]=浏览互联网
Comment[zh_TW]=瀏覽網際網路
GenericName=Web Browser
GenericName[ar]=متصفح ويب
GenericName[ast]=Restolador Web
GenericName[bn]=ওয়েব ব্রাউজার
GenericName[ca]=Navegador web
GenericName[cs]=Webový prohlížeč
GenericName[da]=Webbrowser
GenericName[el]=Περιηγητής διαδικτύου
GenericName[es]=Navegador web
GenericName[et]=Veebibrauser
GenericName[fa]=مرورگر اینترنتی
GenericName[fi]=WWW-selain
GenericName[fr]=Navigateur Web
GenericName[gl]=Navegador Web
GenericName[he]=דפדפן אינטרנט
GenericName[hr]=Web preglednik
GenericName[hu]=Webböngésző
GenericName[it]=Browser web
GenericName[ja]=ウェブ・ブラウザ
GenericName[ko]=웹 브라우저
GenericName[ku]=Geroka torê
GenericName[lt]=Interneto naršyklė
GenericName[nb]=Nettleser
GenericName[nl]=Webbrowser
GenericName[nn]=Nettlesar
GenericName[no]=Nettleser
GenericName[pl]=Przeglądarka WWW
GenericName[pt]=Navegador Web
GenericName[pt_BR]=Navegador Web
GenericName[ro]=Navigator Internet
GenericName[ru]=Веб-браузер
GenericName[sk]=Internetový prehliadač
GenericName[sl]=Spletni brskalnik
GenericName[sv]=Webbläsare
GenericName[tr]=Web Tarayıcı
GenericName[ug]=توركۆرگۈ
GenericName[uk]=Веб-браузер
GenericName[vi]=Trình duyệt Web
GenericName[zh_CN]=网络浏览器
GenericName[zh_TW]=網路瀏覽器
Keywords=Internet;WWW;Browser;Web;Explorer
Keywords[ar]=انترنت;إنترنت;متصفح;ويب;وب
Keywords[ast]=Internet;WWW;Restolador;Web;Esplorador
Keywords[ca]=Internet;WWW;Navegador;Web;Explorador;Explorer
Keywords[cs]=Internet;WWW;Prohlížeč;Web;Explorer
Keywords[da]=Internet;Internettet;WWW;Browser;Browse;Web;Surf;Nettet
Keywords[de]=Internet;WWW;Browser;Web;Explorer;Webseite;Site;surfen;online;browsen
Keywords[el]=Internet;WWW;Browser;Web;Explorer;Διαδίκτυο;Περιηγητής;Firefox;Φιρεφοχ;Ιντερνετ
Keywords[es]=Explorador;Internet;WWW
Keywords[fi]=Internet;WWW;Browser;Web;Explorer;selain;Internet-selain;internetselain;verkkoselain;netti;surffaa
Keywords[fr]=Internet;WWW;Browser;Web;Explorer;Fureteur;Surfer;Navigateur
Keywords[he]=דפדפן;אינטרנט;רשת;אתרים;אתר;פיירפוקס;מוזילה;
Keywords[hr]=Internet;WWW;preglednik;Web
Keywords[hu]=Internet;WWW;Böngésző;Web;Háló;Net;Explorer
Keywords[it]=Internet;WWW;Browser;Web;Navigatore
Keywords[is]=Internet;WWW;Vafri;Vefur;Netvafri;Flakk
Keywords[ja]=Internet;WWW;Web;インターネット;ブラウザ;ウェブ;エクスプローラ
Keywords[nb]=Internett;WWW;Nettleser;Explorer;Web;Browser;Nettside
Keywords[nl]=Internet;WWW;Browser;Web;Explorer;Verkenner;Website;Surfen;Online
Keywords[pt]=Internet;WWW;Browser;Web;Explorador;Navegador
Keywords[pt_BR]=Internet;WWW;Browser;Web;Explorador;Navegador
Keywords[ru]=Internet;WWW;Browser;Web;Explorer;интернет;браузер;веб;файрфокс;огнелис
Keywords[sk]=Internet;WWW;Prehliadač;Web;Explorer
Keywords[sl]=Internet;WWW;Browser;Web;Explorer;Brskalnik;Splet
Keywords[tr]=İnternet;WWW;Tarayıcı;Web;Gezgin;Web sitesi;Site;sörf;çevrimiçi;tara
Keywords[uk]=Internet;WWW;Browser;Web;Explorer;Інтернет;мережа;переглядач;оглядач;браузер;веб;файрфокс;вогнелис;перегляд
Keywords[vi]=Internet;WWW;Browser;Web;Explorer;Trình duyệt;Trang web
Keywords[zh_CN]=Internet;WWW;Browser;Web;Explorer;网页;浏览;上网;火狐;Firefox;ff;互联网;网站;
Keywords[zh_TW]=Internet;WWW;Browser;Web;Explorer;網際網路;網路;瀏覽器;上網;網頁;火狐
Exec=env BAMF_DESKTOP_FILE_HINT=/var/lib/snapd/desktop/applications/firefox_firefox.desktop /snap/bin/firefox %u
Terminal=false
Type=Application
Icon=/snap/firefox/3121/default256.png
Categories=GNOME;GTK;Network;WebBrowser;
MimeType=text/html;text/xml;application/xhtml+xml;application/xml;application/rss+xml;application/rdf+xml;image/gif;image/jpeg;image/png;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ftp;x-scheme-handler/chrome;video/webm;application/x-xpinstall;
StartupNotify=true
Actions=NewWindow;NewPrivateWindow;

[Desktop Action NewWindow]
Name=Open a New Window
Name[ar]=افتح نافذة جديدة
Name[ast]=Abrir una ventana nueva
Name[bn]=Abrir una ventana nueva
Name[ca]=Obre una finestra nova
Name[cs]=Otevřít nové okno
Name[da]=Åbn et nyt vindue
Name[de]=Ein neues Fenster öffnen
Name[el]=Άνοιγμα νέου παραθύρου
Name[es]=Abrir una ventana nueva
Name[fi]=Avaa uusi ikkuna
Name[fr]=Ouvrir une nouvelle fenêtre
Name[gl]=Abrir unha nova xanela
Name[he]=פתיחת חלון חדש
Name[hr]=Otvori novi prozor
Name[hu]=Új ablak nyitása
Name[it]=Apri una nuova finestra
Name[ja]=新しいウィンドウを開く
Name[ko]=새 창 열기
Name[ku]=Paceyeke nû veke
Name[lt]=Atverti naują langą
Name[nb]=Åpne et nytt vindu
Name[nl]=Nieuw venster openen
Name[pt]=Abrir nova janela
Name[pt_BR]=Abrir nova janela
Name[ro]=Deschide o fereastră nouă
Name[ru]=Новое окно
Name[sk]=Otvoriť nové okno
Name[sl]=Odpri novo okno
Name[sv]=Öppna ett nytt fönster
Name[tr]=Yeni pencere aç
Name[ug]=يېڭى كۆزنەك ئېچىش
Name[uk]=Відкрити нове вікно
Name[vi]=Mở cửa sổ mới
Name[zh_CN]=新建窗口
Name[zh_TW]=開啟新視窗
Exec=env BAMF_DESKTOP_FILE_HINT=/var/lib/snapd/desktop/applications/firefox_firefox.desktop /snap/bin/firefox -new-window

[Desktop Action NewPrivateWindow]
Name=Open a New Private Window
Name[ar]=افتح نافذة جديدة للتصفح الخاص
Name[ca]=Obre una finestra nova en mode d'incògnit
Name[de]=Ein neues privates Fenster öffnen
Name[es]=Abrir una ventana privada nueva
Name[fi]=Avaa uusi yksityinen ikkuna
Name[fr]=Ouvrir une nouvelle fenêtre de navigation privée
Name[he]=פתיחת חלון גלישה פרטית חדש
Name[hu]=Új privát ablak nyitása
Name[it]=Apri una nuova finestra anonima
Name[nb]=Åpne et nytt privat vindu
Name[ru]=Новое приватное окно
Name[sl]=Odpri novo okno zasebnega brskanja
Name[tr]=Yeni bir pencere aç
Name[uk]=Відкрити нове вікно у потайливому режимі
Name[zh_TW]=開啟新隱私瀏覽視窗
Exec=env BAMF_DESKTOP_FILE_HINT=/var/lib/snapd/desktop/applications/firefox_firefox.desktop /snap/bin/firefox -private-window

From /home/RokeJulianLockhart/.local/share/plasma_icons/firefox.desktop:

[Desktop Entry]
GenericName=executable
Icon=application-x-executable
Name=firefox
Type=Link
URL=file:///snap/firefox/3120/usr/lib/firefox/firefox

From /var/lib/snapd/desktop/applications/firefox_firefox.desktop (the origin of /home/RokeJulianLockhart/.local/share/plasma_icons/firefox_firefox.desktop):

[Desktop Entry]
X-SnapInstanceName=firefox
Version=1.0
Name=Firefox Web Browser
Name[ar]=متصفح الويب فَيَرفُكْس
Name[ast]=Restolador web Firefox
Name[bn]=ফায়ারফক্স ওয়েব ব্রাউজার
Name[ca]=Navegador web Firefox
Name[cs]=Firefox Webový prohlížeč
Name[da]=Firefox - internetbrowser
Name[el]=Περιηγητής Firefox
Name[es]=Navegador web Firefox
Name[et]=Firefoxi veebibrauser
Name[fa]=مرورگر اینترنتی Firefox
Name[fi]=Firefox-selain
Name[fr]=Navigateur Web Firefox
Name[gl]=Navegador web Firefox
Name[he]=דפדפן האינטרנט Firefox
Name[hr]=Firefox web preglednik
Name[hu]=Firefox webböngésző
Name[it]=Firefox Browser Web
Name[ja]=Firefox ウェブ・ブラウザ
Name[ko]=Firefox 웹 브라우저
Name[ku]=Geroka torê Firefox
Name[lt]=Firefox interneto naršyklė
Name[nb]=Firefox Nettleser
Name[nl]=Firefox webbrowser
Name[nn]=Firefox Nettlesar
Name[no]=Firefox Nettleser
Name[pl]=Przeglądarka WWW Firefox
Name[pt]=Firefox Navegador Web
Name[pt_BR]=Navegador Web Firefox
Name[ro]=Firefox – Navigator Internet
Name[ru]=Веб-браузер Firefox
Name[sk]=Firefox - internetový prehliadač
Name[sl]=Firefox spletni brskalnik
Name[sv]=Firefox webbläsare
Name[tr]=Firefox Web Tarayıcısı
Name[ug]=Firefox توركۆرگۈ
Name[uk]=Веб-браузер Firefox
Name[vi]=Trình duyệt web Firefox
Name[zh_CN]=Firefox 网络浏览器
Name[zh_TW]=Firefox 網路瀏覽器
Comment=Browse the World Wide Web
Comment[ar]=تصفح الشبكة العنكبوتية العالمية
Comment[ast]=Restola pela Rede
Comment[bn]=ইন্টারনেট ব্রাউজ করুন
Comment[ca]=Navegueu per la web
Comment[cs]=Prohlížení stránek World Wide Webu
Comment[da]=Surf på internettet
Comment[de]=Im Internet surfen
Comment[el]=Μπορείτε να περιηγηθείτε στο διαδίκτυο (Web)
Comment[es]=Navegue por la web
Comment[et]=Lehitse veebi
Comment[fa]=صفحات شبکه جهانی اینترنت را مرور نمایید
Comment[fi]=Selaa Internetin WWW-sivuja
Comment[fr]=Naviguer sur le Web
Comment[gl]=Navegar pola rede
Comment[he]=גלישה ברחבי האינטרנט
Comment[hr]=Pretražite web
Comment[hu]=A világháló böngészése
Comment[it]=Esplora il web
Comment[ja]=ウェブを閲覧します
Comment[ko]=웹을 돌아 다닙니다
Comment[ku]=Li torê bigere
Comment[lt]=Naršykite internete
Comment[nb]=Surf på nettet
Comment[nl]=Verken het internet
Comment[nn]=Surf på nettet
Comment[no]=Surf på nettet
Comment[pl]=Przeglądanie stron WWW
Comment[pt]=Navegue na Internet
Comment[pt_BR]=Navegue na Internet
Comment[ro]=Navigați pe Internet
Comment[ru]=Доступ в Интернет
Comment[sk]=Prehliadanie internetu
Comment[sl]=Brskajte po spletu
Comment[sv]=Surfa på webben
Comment[tr]=İnternet'te Gezinin
Comment[ug]=دۇنيادىكى توربەتلەرنى كۆرگىلى بولىدۇ
Comment[uk]=Перегляд сторінок Інтернету
Comment[vi]=Để duyệt các trang web
Comment[zh_CN]=浏览互联网
Comment[zh_TW]=瀏覽網際網路
GenericName=Web Browser
GenericName[ar]=متصفح ويب
GenericName[ast]=Restolador Web
GenericName[bn]=ওয়েব ব্রাউজার
GenericName[ca]=Navegador web
GenericName[cs]=Webový prohlížeč
GenericName[da]=Webbrowser
GenericName[el]=Περιηγητής διαδικτύου
GenericName[es]=Navegador web
GenericName[et]=Veebibrauser
GenericName[fa]=مرورگر اینترنتی
GenericName[fi]=WWW-selain
GenericName[fr]=Navigateur Web
GenericName[gl]=Navegador Web
GenericName[he]=דפדפן אינטרנט
GenericName[hr]=Web preglednik
GenericName[hu]=Webböngésző
GenericName[it]=Browser web
GenericName[ja]=ウェブ・ブラウザ
GenericName[ko]=웹 브라우저
GenericName[ku]=Geroka torê
GenericName[lt]=Interneto naršyklė
GenericName[nb]=Nettleser
GenericName[nl]=Webbrowser
GenericName[nn]=Nettlesar
GenericName[no]=Nettleser
GenericName[pl]=Przeglądarka WWW
GenericName[pt]=Navegador Web
GenericName[pt_BR]=Navegador Web
GenericName[ro]=Navigator Internet
GenericName[ru]=Веб-браузер
GenericName[sk]=Internetový prehliadač
GenericName[sl]=Spletni brskalnik
GenericName[sv]=Webbläsare
GenericName[tr]=Web Tarayıcı
GenericName[ug]=توركۆرگۈ
GenericName[uk]=Веб-браузер
GenericName[vi]=Trình duyệt Web
GenericName[zh_CN]=网络浏览器
GenericName[zh_TW]=網路瀏覽器
Keywords=Internet;WWW;Browser;Web;Explorer
Keywords[ar]=انترنت;إنترنت;متصفح;ويب;وب
Keywords[ast]=Internet;WWW;Restolador;Web;Esplorador
Keywords[ca]=Internet;WWW;Navegador;Web;Explorador;Explorer
Keywords[cs]=Internet;WWW;Prohlížeč;Web;Explorer
Keywords[da]=Internet;Internettet;WWW;Browser;Browse;Web;Surf;Nettet
Keywords[de]=Internet;WWW;Browser;Web;Explorer;Webseite;Site;surfen;online;browsen
Keywords[el]=Internet;WWW;Browser;Web;Explorer;Διαδίκτυο;Περιηγητής;Firefox;Φιρεφοχ;Ιντερνετ
Keywords[es]=Explorador;Internet;WWW
Keywords[fi]=Internet;WWW;Browser;Web;Explorer;selain;Internet-selain;internetselain;verkkoselain;netti;surffaa
Keywords[fr]=Internet;WWW;Browser;Web;Explorer;Fureteur;Surfer;Navigateur
Keywords[he]=דפדפן;אינטרנט;רשת;אתרים;אתר;פיירפוקס;מוזילה;
Keywords[hr]=Internet;WWW;preglednik;Web
Keywords[hu]=Internet;WWW;Böngésző;Web;Háló;Net;Explorer
Keywords[it]=Internet;WWW;Browser;Web;Navigatore
Keywords[is]=Internet;WWW;Vafri;Vefur;Netvafri;Flakk
Keywords[ja]=Internet;WWW;Web;インターネット;ブラウザ;ウェブ;エクスプローラ
Keywords[nb]=Internett;WWW;Nettleser;Explorer;Web;Browser;Nettside
Keywords[nl]=Internet;WWW;Browser;Web;Explorer;Verkenner;Website;Surfen;Online
Keywords[pt]=Internet;WWW;Browser;Web;Explorador;Navegador
Keywords[pt_BR]=Internet;WWW;Browser;Web;Explorador;Navegador
Keywords[ru]=Internet;WWW;Browser;Web;Explorer;интернет;браузер;веб;файрфокс;огнелис
Keywords[sk]=Internet;WWW;Prehliadač;Web;Explorer
Keywords[sl]=Internet;WWW;Browser;Web;Explorer;Brskalnik;Splet
Keywords[tr]=İnternet;WWW;Tarayıcı;Web;Gezgin;Web sitesi;Site;sörf;çevrimiçi;tara
Keywords[uk]=Internet;WWW;Browser;Web;Explorer;Інтернет;мережа;переглядач;оглядач;браузер;веб;файрфокс;вогнелис;перегляд
Keywords[vi]=Internet;WWW;Browser;Web;Explorer;Trình duyệt;Trang web
Keywords[zh_CN]=Internet;WWW;Browser;Web;Explorer;网页;浏览;上网;火狐;Firefox;ff;互联网;网站;
Keywords[zh_TW]=Internet;WWW;Browser;Web;Explorer;網際網路;網路;瀏覽器;上網;網頁;火狐
Exec=env BAMF_DESKTOP_FILE_HINT=/var/lib/snapd/desktop/applications/firefox_firefox.desktop /snap/bin/firefox %u
Terminal=false
Type=Application
Icon=/snap/firefox/3121/default256.png
Categories=GNOME;GTK;Network;WebBrowser;
MimeType=text/html;text/xml;application/xhtml+xml;application/xml;application/rss+xml;application/rdf+xml;image/gif;image/jpeg;image/png;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ftp;x-scheme-handler/chrome;video/webm;application/x-xpinstall;
StartupNotify=true
Actions=NewWindow;NewPrivateWindow;

[Desktop Action NewWindow]
Name=Open a New Window
Name[ar]=افتح نافذة جديدة
Name[ast]=Abrir una ventana nueva
Name[bn]=Abrir una ventana nueva
Name[ca]=Obre una finestra nova
Name[cs]=Otevřít nové okno
Name[da]=Åbn et nyt vindue
Name[de]=Ein neues Fenster öffnen
Name[el]=Άνοιγμα νέου παραθύρου
Name[es]=Abrir una ventana nueva
Name[fi]=Avaa uusi ikkuna
Name[fr]=Ouvrir une nouvelle fenêtre
Name[gl]=Abrir unha nova xanela
Name[he]=פתיחת חלון חדש
Name[hr]=Otvori novi prozor
Name[hu]=Új ablak nyitása
Name[it]=Apri una nuova finestra
Name[ja]=新しいウィンドウを開く
Name[ko]=새 창 열기
Name[ku]=Paceyeke nû veke
Name[lt]=Atverti naują langą
Name[nb]=Åpne et nytt vindu
Name[nl]=Nieuw venster openen
Name[pt]=Abrir nova janela
Name[pt_BR]=Abrir nova janela
Name[ro]=Deschide o fereastră nouă
Name[ru]=Новое окно
Name[sk]=Otvoriť nové okno
Name[sl]=Odpri novo okno
Name[sv]=Öppna ett nytt fönster
Name[tr]=Yeni pencere aç
Name[ug]=يېڭى كۆزنەك ئېچىش
Name[uk]=Відкрити нове вікно
Name[vi]=Mở cửa sổ mới
Name[zh_CN]=新建窗口
Name[zh_TW]=開啟新視窗
Exec=env BAMF_DESKTOP_FILE_HINT=/var/lib/snapd/desktop/applications/firefox_firefox.desktop /snap/bin/firefox -new-window

[Desktop Action NewPrivateWindow]
Name=Open a New Private Window
Name[ar]=افتح نافذة جديدة للتصفح الخاص
Name[ca]=Obre una finestra nova en mode d'incògnit
Name[de]=Ein neues privates Fenster öffnen
Name[es]=Abrir una ventana privada nueva
Name[fi]=Avaa uusi yksityinen ikkuna
Name[fr]=Ouvrir une nouvelle fenêtre de navigation privée
Name[he]=פתיחת חלון גלישה פרטית חדש
Name[hu]=Új privát ablak nyitása
Name[it]=Apri una nuova finestra anonima
Name[nb]=Åpne et nytt privat vindu
Name[ru]=Новое приватное окно
Name[sl]=Odpri novo okno zasebnega brskanja
Name[tr]=Yeni bir pencere aç
Name[uk]=Відкрити нове вікно у потайливому режимі
Name[zh_TW]=開啟新隱私瀏覽視窗
Exec=env BAMF_DESKTOP_FILE_HINT=/var/lib/snapd/desktop/applications/firefox_firefox.desktop /snap/bin/firefox -private-window


The Bugbug bot thinks this bug should belong to the 'Core::Widget: Gtk' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Widget: Gtk
Product: Firefox → Core

The attached video demonstrates the problem. The version with multiple windows is the erroneous version, whereas the single-windowed version is invoked by the installer-created .desktop file. Note how tabs cannot be dragged between each differing installation (externally), yet can, as expected, be dragged between windows of each respective installation (internally).

Please note that /home/RokeJulianLockhart/.local/share/plasma_icons/firefox.desktop is the unexpected version - the version not launched by the installer-created .desktop file at /var/lib/snapd/desktop/applications/firefox_firefox.desktop.

Component: Widget: Gtk → IPC
OS: Unspecified → Linux
Hardware: Unspecified → x86_64

What does snap list shows ?

Flags: needinfo?(rx58b9+RX58CK)

anyway this does not look like a problem at firefox or firefox snap packaging level at all, rather snapd or something else distro-level. Please note that i dont know the expected level of support for KDE-based systems

Blocks: snap
Component: IPC → Third Party Packaging
Product: Core → Firefox Build System

(In reply to third="Beedell", first="Roke", second="Julian Lockhart" from comment #2)

Created attachment 9352498 [details]
$HOME/.local/share/plasma_icons/firefox.desktop

From /home/RokeJulianLockhart/.local/share/plasma_icons/firefox.desktop:

[Desktop Entry]
GenericName=executable
Icon=application-x-executable
Name=firefox
Type=Link
URL=file:///snap/firefox/3120/usr/lib/firefox/firefox

Is this expected to work? URL= sounds ... weird.

Shouldn't you use something similar to Exec=env BAMF_DESKTOP_FILE_HINT=/var/lib/snapd/desktop/applications/firefox_firefox.desktop /snap/bin/firefox %u ?

[email protected], I didn't manually create that .desktop file. It was created by dragging the erroneous version from the Task Manager plasmoid, as previously stated in https://bugzilla.mozilla.org/show_bug.cgi?id=1852554#c0:

I dragged both from https://userbase.kde.org/Plasma/Tasks to the plasmashell desktop, and very different files were created for both. They shall be attached after submission and clearly labelled.

Flags: needinfo?(rx58b9+RX58CK)

It's the best I could provide to demonstrate whatever is making the two versions different. Is there a more specific and low-level trace or PID I can provide for each that would be superior?

Flags: needinfo?(lissyx+mozillians)

(In reply to third="Beedell", first="Roke", second="Julian Lockhart" from comment #10)

It's the best I could provide to demonstrate whatever is making the two versions different. Is there a more specific and low-level trace or PID I can provide for each that would be superior?

please, your bug report is super confusing ; you are mixing a lot of things that might be unrelated, mentionning "multiple installs" etc.

the first thing I see is a weird .desktop file, and I have no idea how this can interact with snapd. but I see nothing that really is of firefox' fault nor the snap packaging itself ...

Flags: needinfo?(lissyx+mozillians)

https://bugzilla.mozilla.org/show_bug.cgi?id=1852554#c6

[email protected],

snap list

<blockQuote>

RokeJulianLockhart@localhost:~> snap list
Name               Version          Rev    Tracking       Publisher   Notes
bare               1.0              5      latest/stable  canonical✓  base
code-insiders      3c133b63         1405   latest/edge    vscode✓     classic
core20             20230801         2015   latest/stable  canonical✓  base
core22             20230801         864    latest/stable  canonical✓  base
firefox            119.0a1          3121   latest/edge    mozilla✓    -
gnome-42-2204      0+git.ff35a85    126    latest/stable  canonical✓  -
gtk-common-themes  0.1-81-g442e511  1535   latest/stable  canonical✓  -
snapd              2.60.3           20092  latest/stable  canonical✓  snapd

</blockQuote>

snap info firefox

<blockQuote>

RokeJulianLockhart@localhost:~> snap info firefox
name:      firefox
summary:   Mozilla Firefox web browser
publisher: Mozilla✓
store-url: https://snapcraft.io/firefox
contact:   https://support.mozilla.org/kb/file-bug-report-or-feature-request-mozilla
license:   unset
description: |
  Firefox is a powerful, extensible web browser with support for modern web application
  technologies.
commands:
  - firefox
  - firefox.geckodriver
snap-id:      3wdHCAVyZEmYsCMFDE9qt92UV8rC8Wdk
tracking:     latest/edge
refresh-date: yesterday at 22:56 BST
channels:
  latest/stable:    117.0-2      2023-08-29 (3068) 248MB -
  latest/candidate: 117.0-2      2023-08-24 (3068) 248MB -
  latest/beta:      118.0b7-1    2023-09-11 (3122) 251MB -
  latest/edge:      119.0a1      2023-09-11 (3123) 269MB -
  esr/stable:       115.2.0esr-1 2023-08-29 (3052) 253MB -
  esr/candidate:    115.2.0esr-1 2023-08-21 (3052) 253MB -
  esr/beta:         ↑                                    
  esr/edge:         ↑                                    
installed:          119.0a1                 (3121) 269MB -
RokeJulianLockhart@localhost:~>

</blockQuote>

(In reply to third="Beedell", first="Roke", second="Julian Lockhart" from comment #12)

https://bugzilla.mozilla.org/show_bug.cgi?id=1852554#c6

[email protected],

snap list

<blockQuote>

RokeJulianLockhart@localhost:~> snap list
Name               Version          Rev    Tracking       Publisher   Notes
bare               1.0              5      latest/stable  canonical✓  base
code-insiders      3c133b63         1405   latest/edge    vscode✓     classic
core20             20230801         2015   latest/stable  canonical✓  base
core22             20230801         864    latest/stable  canonical✓  base
firefox            119.0a1          3121   latest/edge    mozilla✓    -
gnome-42-2204      0+git.ff35a85    126    latest/stable  canonical✓  -
gtk-common-themes  0.1-81-g442e511  1535   latest/stable  canonical✓  -
snapd              2.60.3           20092  latest/stable  canonical✓  snapd

</blockQuote>

snap info firefox

<blockQuote>

RokeJulianLockhart@localhost:~> snap info firefox
name:      firefox
summary:   Mozilla Firefox web browser
publisher: Mozilla✓
store-url: https://snapcraft.io/firefox
contact:   https://support.mozilla.org/kb/file-bug-report-or-feature-request-mozilla
license:   unset
description: |
  Firefox is a powerful, extensible web browser with support for modern web application
  technologies.
commands:
  - firefox
  - firefox.geckodriver
snap-id:      3wdHCAVyZEmYsCMFDE9qt92UV8rC8Wdk
tracking:     latest/edge
refresh-date: yesterday at 22:56 BST
channels:
  latest/stable:    117.0-2      2023-08-29 (3068) 248MB -
  latest/candidate: 117.0-2      2023-08-24 (3068) 248MB -
  latest/beta:      118.0b7-1    2023-09-11 (3122) 251MB -
  latest/edge:      119.0a1      2023-09-11 (3123) 269MB -
  esr/stable:       115.2.0esr-1 2023-08-29 (3052) 253MB -
  esr/candidate:    115.2.0esr-1 2023-08-21 (3052) 253MB -
  esr/beta:         ↑                                    
  esr/edge:         ↑                                    
installed:          119.0a1                 (3121) 269MB -
RokeJulianLockhart@localhost:~>

</blockQuote>

thanks, so there is no "multiple install"

(In reply to third="Beedell", first="Roke", second="Julian Lockhart" from comment #9)

[email protected], I didn't manually create that .desktop file. It was created by dragging the erroneous version from the Task Manager plasmoid, as previously stated in https://bugzilla.mozilla.org/show_bug.cgi?id=1852554#c0:

I dragged both from https://userbase.kde.org/Plasma/Tasks to the plasmashell desktop, and very different files were created for both. They shall be attached after submission and clearly labelled.

I'm failing to understand why you are doing this ...

https://bugzilla.mozilla.org/show_bug.cgi?id=1852554#c11

[email protected], I've only referred to one thing - that my snap installation appears to act as if it has two versions of Firefox installed. Please see the output of https://bugzilla.mozilla.org/show_bug.cgi?id=1852554#c12 and compare it to the behaviour depicted in https://bugzilla.mozilla.org/attachment.cgi?id=9352504. It's probably confusing because it's a weird-as-heck bug.

the first thing I see is a weird .desktop file, and I have no idea how this can interact with snapd.

I don't know what to say to this. Do you want me to explain how the snap daemon works, or what .desktop files are? I don't understand.

Summary: Firefox Nightly Snap installs two versions of Firefox and randomly switches between them. → Firefox Nightly Snap getting confused when using multiple .desktop launchers

I'm failing to understand why you are doing this ...

Because you asked for it in https://bugzilla.mozilla.org/show_bug.cgi?id=1852554#c6, [email protected]!

What does snap list shows ?

Summary: Firefox Nightly Snap getting confused when using multiple .desktop launchers → Firefox Nightly Snap installs two versions of Firefox and randomly switches between them.

please stop changing the title. There are not multiple installs.

Summary: Firefox Nightly Snap installs two versions of Firefox and randomly switches between them. → Firefox Nightly Snap getting confused when using multiple .desktop launchers

Summary: Firefox Nightly Snap getting confused when using multiple .desktop launchers → Firefox Nightly Snap installs two versions of Firefox and randomly switches between them.

That's wrong. I'm not sure my title was either, but that's not the bug, since I asked the Task Manager to create a .desktop file in response to the bug in order to reliably reproduce it. Considering that Firefox itself appears to randomly switch between these two versions regardless of whether some random .desktop files somewhere point to them should demonstrate that.

I'm not. The mid-air collision is broken - I'm pressing "Only add comment" but it's obviously changing the title too.

Summary: Firefox Nightly Snap getting confused when using multiple .desktop launchers → Firefox Nightly Snap identifying different invocation methods as different processes and assigning separate profiles.

Considering that the configuration data isn't saved between them - changing about:config prefs in one doesn't update the other - does the new

Firefox Nightly Snap getting confused when using multiple .desktop launchers → Firefox Nightly Snap identifying different invocation methods as different processes and assigning separate profiles.

sound better?

Flags: needinfo?(lissyx+mozillians)

I'm sorry but I still dont understand why you did:

Consequently, I dragged both from https://userbase.kde.org/Plasma/Tasks to the plasmashell desktop, and very different files were created for both. They shall be attached after submission and clearly labelled.

Flags: needinfo?(lissyx+mozillians)

And I also still dont understand that statement:

Initially, a version of the browser launched which didn't appear to correlate with the .desktop file that installation had added to my application launcher, because it did not group with it, nor did opening and quitting the version invoked by the .desktop file quit the initially invoked window.

(In reply to third="Beedell", first="Roke", second="Julian Lockhart" from comment #19)

Considering that the configuration data isn't saved between them - changing about:config prefs in one doesn't update the other - does the new

This would suggest snapd produced two different profiles? about:support should give the path to determine that for sure

I'm sorry but I still dont understand why you did:

Consequently, I dragged both from https://userbase.kde.org/Plasma/Tasks to the plasmashell desktop, and very different files were created for both. They shall be attached after submission and clearly labelled.

This should demonstrate it. See the subsequent attachment too.

It's understandable that it wasn't obvious - it's a very specific action. Apologies for not uploading depiction of it previously, and thanks for the suggestion.

(In reply to third="Beedell", first="Roke", second="Julian Lockhart" from comment #23)

Created attachment 9352512 [details]
Creating the correct .desktop file.

I'm sorry but I still dont understand why you did:

Consequently, I dragged both from https://userbase.kde.org/Plasma/Tasks to the plasmashell desktop, and very different files were created for both. They shall be attached after submission and clearly labelled.

This should demonstrate it. See the subsequent attachment too.

It's understandable that it wasn't obvious - it's a very specific action. Apologies for not uploading depiction of it previously, and thanks for the suggestion.

I'm sorry but this is not explaining anything as of why you do this. What are you trying to do by doing this drag and drop ?

How does that relates with the initial problem statement:

Initially, a version of the browser launched which didn't appear to correlate with the .desktop file that installation had added to my application launcher, because it did not group with it, nor did opening and quitting the version invoked by the .desktop file quit the initially invoked window.

"a version of the browser launched" how ? what version ? did it popped out of nowhere without user interaction ?

"that installation had added to my application launcher" are you referring to the .desktop file created by snapd ?

(In reply to third="Beedell", first="Roke", second="Julian Lockhart" from comment #24)

Created attachment 9352513 [details]
Creating the broken process's .desktop file.

https://bugzilla.mozilla.org/show_bug.cgi?id=1852554#c23

See the subsequent attachment too.

This is it.

yeah so you have a .desktop file that you shared earlier that has only a URL inside that points to firefox. Several problems: I dont see how this is a bug on our side / snap packaging side ; I have no idea of the interactions between snapd, plasmashell and .desktop files ; it obviously lacks a X-SnapInstanceName=firefox, that's a lot of good reasons for things to go wild. But at best it's a bug on snapd side, and at worst "somewhere else" and I can't help there.

(In reply to third="Beedell", first="Roke", second="Julian Lockhart" from comment #19)

Considering that the configuration data isn't saved between them - changing about:config prefs in one doesn't update the other - does the new

Firefox Nightly Snap getting confused when using multiple .desktop launchers → Firefox Nightly Snap identifying different invocation methods as different processes and assigning separate profiles.

sound better?

so about:support should report the profile directory, e.g. /home/alex/snap/firefox/common/.mozilla/firefox/feu4qwub.default-release here

Flags: needinfo?(rx58b9+RX58CK)

You can also try to look at about:profiles from both instances and see if there are indications you are running two different profiles. Maybe you are running on one profile but it's overwriting each other?

https://bugzilla.mozilla.org/show_bug.cgi?id=1852554#c22

You can also try to look at about:profiles from both instances and see if there are indications you are running two different profiles. Maybe you are running on one profile but it's overwriting each other?

Oh, boy. I don't even know what to make of this - each "instance" (as I'm going to refer to them until we know what's going on) gives me a different output for about:profiles.

Flags: needinfo?(rx58b9+RX58CK)

https://bugzilla.mozilla.org/show_bug.cgi?id=1852554#c22

This would suggest snapd produced two different profiles? about:support should give the path to determine that for sure

Yep.

https://bugzilla.mozilla.org/show_bug.cgi?id=1852554#c26

yeah so you have a .desktop file that you shared earlier that has only a URL inside that points to firefox. Several problems: I dont see how this is a bug on our side / snap packaging side ; I have no idea of the interactions between snapd, plasmashell and .desktop files ; it obviously lacks a X-SnapInstanceName=firefox, that's a lot of good reasons for things to go wild. But at best it's a bug on snapd side, and at worst "somewhere else" and I can't help there.

It's only a demonstration of the problem, because it makes it consistently reproducible - I don't know how else to launch the erroneous instance. It's not the cause of the problem, which is the important part, else I'd have kept the bug title/summary you wrote a while back. This instance appears after certain updates, as specifically https://bugzilla.mozilla.org/show_bug.cgi?id=1838469#c1 (and the bug that it links too, https://bugzilla.mozilla.org/show_bug.cgi?id=1838470#c0) and the first time after installation.

Wait: you are running two versions, one from /snap/firefox/3120/usr/lib/firefox/firefox and one from /snap/firefox/3121/usr/lib/firefox/firefox.

I have no idea why, clearly it's on snapd side or somewhere

And it looks like one of the profile used is default-release and the other is default-nightly

is it possible 3120 is there because it is kept by snapd for a potential snap revert firefox ? And "something" would have somehow kept a direct reference to /snap/firefox/3120/usr/lib/firefox/firefox to start it and this is why you end up with two in parallel ?

https://bugzilla.mozilla.org/show_bug.cgi?id=1852554#c33

is it possible 3120 is there because it is kept by snapd for a potential snap revert firefox ? And "something" would have somehow kept a direct reference to /snap/firefox/3120/usr/lib/firefox/firefox to start it and this is why you end up with two in parallel ?

[email protected], perhaps. But this is out of my area of expertise. I'm a novice software developer at best. Do you have anyone on the snap packaging team you can pull in?

Flags: needinfo?(lissyx+mozillians)

people with more snap experience are well aware of this bug ...

Flags: needinfo?(lissyx+mozillians)
Flags: needinfo?(seb128)
Flags: needinfo?(bandali)

https://bugzilla.mozilla.org/show_bug.cgi?id=1852554#c37

What do you mean? As in, you've now notified them, or you can instead direct me to an upstream ticket?

Flags: needinfo?(lissyx+mozillians)

You still have not explained how Initially, a version of the browser launched which didn't appear to correlate with the .desktop file that installation had added to my application launcher happened. My current guess is:

  • the .desktop was at that time referring to revision 3121
  • "something" "somehow" started the 3120 revision, I'd like to know what / how this version was started
Flags: needinfo?(lissyx+mozillians) → needinfo?(s0txcj+s0txcz)

I can't explain it satisfactorily, else most of this diagnosis would have been unnecessary. All I know about the initial incorrect invocation is that

  1. I installed
    snap install firefox --channel=latest/edge
    
  2. I invoked /var/lib/snapd/desktop/applications/firefox_firefox.desktop
  3. The window appeared as I expected, and I configured it, but then the next time I invoked that desktop file, I was greeted with what should have appeared instead. Luckily, I had pinned the erroneous version to my Task Manager (KDE Plasma version of the Windows Taskbar app area) so I inspected it, and noticed that it was strange, and that invoking it invoked my old, previously configured instance of Firefox, with my tabs present.

I only installed the snap package yesterday night. I expect that it's gone through no revisions, unless a snap refresh automatically occurred yesterday night without my knowledge, which upgraded the package. Do you know how to verify this?

Flags: needinfo?(s0txcj+s0txcz)

(In reply to third="Beedell", first="Roke", second="Julian Lockhart" from comment #40)

I can't explain it satisfactorily, else most of this diagnosis would have been unnecessary. All I know about the initial incorrect invocation is that

  1. I installed
    snap install firefox --channel=latest/edge
    
  2. I invoked /var/lib/snapd/desktop/applications/firefox_firefox.desktop

too bad we dont know the content of that file when you did that. Why invoking the desktop file rather than snap run firefox ?

  1. The window appeared as I expected, and I configured it, but then the next time I invoked that desktop file, I was greeted with what should have appeared instead. Luckily, I had pinned the erroneous version to my Task Manager (KDE Plasma version of the Windows Taskbar app area) so I inspected it, and noticed that it was strange, and that invoking it invoked my old, previously configured instance of Firefox, with my tabs present.

I only installed the snap package yesterday night. I expect that it's gone through no revisions, unless a snap refresh automatically occurred yesterday night without my knowledge, which upgraded the package. Do you know how to verify this?

You should have the history of changes in snap changes. Nightly is built twice a day, so it's possible you installed one version and a new one was published a few hours after.(In reply to third="Beedell", first="Roke", second="Julian Lockhart" from comment #38)

[...]

What do you mean? As in, you've now notified them, or you can instead direct me to an upstream ticket?

Before going upstream we'd need to know which one. As much as I can tell, that kind of integrations issues might be asked to be reproduced under a GNOME desktop environment.

too bad we dont know the content of that file when you did that. Why invoking the desktop file rather than snap run firefox ?

I think that to ask such a question, you surely must be confused. I use a DE. Why on Earth would I run every app from a terminal? /var/lib/snapd/desktop/applications/firefox_firefox.desktop is the default, installer-created .desktop file, not one of the other two that I created later.

You should have the history of changes in snap changes. Nightly is built twice a day, so it's possible you installed one version and a new one was published a few hours after.

snap changes

outputs

RokeJulianLockhart@localhost:~> snap changes
ID   Status  Spawn                   Ready                   Summary
4    Done    yesterday at 22:55 BST  yesterday at 22:56 BST  Auto-refresh snap "firefox"
5    Done    today at 14:35 BST      today at 14:41 BST      Install "code-insiders" snap from "edge" channel

RokeJulianLockhart@localhost:~>

> Before going upstream we'd need to know which one. As much as I can tell, that kind of integrations issues might be asked to be reproduced under a GNOME desktop environment.

Yeah. I only asked because I didn't really understand what you meant.

Oops. Seems I accidentally enclosed the last paragraph in

```
```

apologies.

(In reply to third="Beedell", first="Roke", second="Julian Lockhart" from comment #42)

too bad we dont know the content of that file when you did that. Why invoking the desktop file rather than snap run firefox ?

I think that to ask such a question, you surely must be confused. I use a DE. Why on Earth would I run every app from a terminal? /var/lib/snapd/desktop/applications/firefox_firefox.desktop is the default, installer-created .desktop file, not one of the other two that I created later.

The way you wrote it made it sound like you ran it from the desktop file from terminal.

You should have the history of changes in snap changes. Nightly is built twice a day, so it's possible you installed one version and a new one was published a few hours after.

snap changes

outputs

RokeJulianLockhart@localhost:~> snap changes
ID   Status  Spawn                   Ready                   Summary
4    Done    yesterday at 22:55 BST  yesterday at 22:56 BST  Auto-refresh snap "firefox"
5    Done    today at 14:35 BST      today at 14:41 BST      Install "code-insiders" snap from "edge" channel

RokeJulianLockhart@localhost:~>

So it would suggest you had a running live instance, a background update happened ? snapd made that impossible months ago.

What does snap info snapd shows ?

snap info snapd

outputs

RokeJulianLockhart@localhost:~> snap info snapd
name:      snapd
summary:   Daemon and tooling that enable snap packages
publisher: Canonical✓
store-url: https://snapcraft.io/snapd
contact:   https://github.com/snapcore/snapd/issues
license:   GPL-3.0
description: |
  Install, configure, refresh and remove snap packages. Snaps are
  'universal' packages that work across many different Linux systems,
  enabling secure distribution of the latest apps and utilities for
  cloud, servers, desktops and the internet of things.
  
  Start with 'snap list' to see installed snaps.
type:         snapd
snap-id:      PMrrV4ml8uWuEUDBT8dSGnKUYbevVhc4
tracking:     latest/stable
refresh-date: yesterday at 13:39 BST
channels:
  latest/stable:    2.60.3                  2023-09-02 (20092) 42MB -
  latest/candidate: 2.60.3                  2023-08-31 (20092) 42MB -
  latest/beta:      2.60.3                  2023-08-25 (20092) 42MB -
  latest/edge:      2.60.3+git1316.g5db6c11 2023-09-09 (20225) 42MB -
installed:          2.60.3                             (20092) 42MB snapd

and

zypper info snapd

outputs

RokeJulianLockhart@localhost:~> zypper info snapd
Repository 'packman' is out-of-date. You can run 'zypper refresh' as root to update it.
Repository 'snappy' is out-of-date. You can run 'zypper refresh' as root to update it.
Loading repository data...
Reading installed packages...


Information for package snapd:
------------------------------
Repository     : snappy
Name           : snapd
Version        : 2.59.5-1.20
Arch           : x86_64
Vendor         : obs://build.opensuse.org/system:snappy
Installed Size : 64.4 MiB
Installed      : Yes
Status         : out-of-date (version 2.59.5-1.18 installed)
Source package : snapd-2.59.5-1.20.src
Upstream URL   : https://github.com/snapcore/snapd
Summary        : Tools enabling systems to work with .snap files
Description    : 
    This package contains that snapd daemon and the snap command line tool.
    Together they can be used to install, refresh (update), remove and configure
    snap packages on a system. Snap packages are a novel format based on simple
    principles. Bundle your dependencies, run in a predictable environment, use
    modern kernel features for setting up the execution environment and security.
    The same binary snap package can be installed and used on many diverse systems
    such as Debian, Fedora and OpenSUSE as well as their multiple derivatives.

    This package contains the official build, endorsed by snapd developers. It is
    updated as soon as new upstream releases are made and is designed to live in
    the system:snappy repository.

RokeJulianLockhart@localhost:~>

I installed using https://snapcraft.io/docs/installing-snap-on-opensuse#:~:text=supported%20by%20snapd.-,add%20the%20repository,-You%20need%20first and performed all headings' instructions.

RokeJulianLockhart@localhost:~> systemctl status snapd
● snapd.service - Snap Daemon
     Loaded: loaded (/usr/lib/systemd/system/snapd.service; enabled; preset: disabled)
     Active: active (running) since Mon 2023-09-11 16:53:00 BST; 58min ago
TriggeredBy: ● snapd.socket
   Main PID: 1079 (snapd)
      Tasks: 18 (limit: 4915)
        CPU: 1.015s
     CGroup: /system.slice/snapd.service
             └─1079 /usr/libexec/snapd/snapd

Warning: some journal files were not opened due to insufficient permissions.
RokeJulianLockhart@localhost:~> systemctl status snapd.apparmor
● snapd.apparmor.service - Load AppArmor profiles managed internally by snapd
     Loaded: loaded (/usr/lib/systemd/system/snapd.apparmor.service; enabled; preset: disabled)
     Active: active (exited) since Mon 2023-09-11 16:52:59 BST; 58min ago
    Process: 904 ExecStart=/usr/libexec/snapd/snapd-apparmor start (code=exited, status=0/SUCCESS)
   Main PID: 904 (code=exited, status=0/SUCCESS)
        CPU: 66ms

Warning: some journal files were not opened due to insufficient permissions.
RokeJulianLockhart@localhost:~>

I don't know what's going on there but to reply to the 'a past revision is also installed', yes snapd keeps another revision by default (the number can be changed) to be able to revert in case of issue (it can even do that automatically in case of errors with the new revision). It feels like the issue is probably that somehow KDE store a path including the revision number instead of using 'current' and that then points out to the wrong revision when a new one gets rolled out (and will be invalid once one more upload is installed)

Flags: needinfo?(seb128)

Apologies for the wait in any furher diagnosis - my PC died, so I had to wait for the parts for, and construct, a new one. However, it fortunately provided some useful confirmation about whether this is always reproducible. It is. In fact, it's also reproducible on my laptop, too.

In testing it on these different machines and OS installations, I noticed that the "incorrect" version can actually sometimes share tabs with a simultaneous installation of https://build.opensuse.org/package/show/openSUSE%3AFactory/MozillaFirefox. My leading hypothesis thus is that the Snap package breaks out of its confinement if invoked in a certain manner.

...Leading to it creating a duplicate (or reusing an old) profile in another location outside of its confinement. I don't know how to verify this, however. Regardless, before I do any more, can anyone subscribed confirm that they are able to reproduce this using the instructions provided? If they're too verbose or too concise, I can elaborate if need be.

The weirdness gets weirder. I've been putting myself through a lot of annoyance trying to battle-test this broken-beyond-count snap package, and have found another oddity. It may point to the "incorrect" version perhaps being the more desirable version:

Per https://bugzilla.mozilla.org/show_bug.cgi?id=1854815, I experienced another issue with snap today (https://forum.snapcraft.io/t/snap-doesnt-create-desktop-files-for-installed-applications-nor-add-them-to-path/36987/2?u=beedellrokejulianloc) and due to that encountered a strange bug where firefox hallucinates that it has a .desktop file when it doesn't, leading it to try to set its .desktop file as the default http and https scheme handlers even though it doesn't exist. (This just leads to there being no default.)

However, that's not the interesting bit. Because there's no .desktop file for firefox on this system, I have to run firefox using snap run firefox. Despite that, when I'm using it, an icon appears in my task(bar/manager) correctly, which I can pin and drag to my desktop, creating a formerly considered to be erroneous .desktop file acting as a URI rather than path invoker, but with the path /snap/firefox/3182/usr/lib/firefox/firefox supplied. If I invoke this "incorrect" version, it indeed is able to set itself as the default scheme handler, despite there being no obvious .desktop file. Perhaps my conclusion thus that the lack of a desktop file is the cause is erroneous, but gee this is confusing.

See Also: → 1854815

https://bugzilla.mozilla.org/show_bug.cgi?id=1852554#c49

If I invoke this "incorrect" version, it indeed is able to set itself as the default scheme handler, despite there being no obvious .desktop file.

So all your tests were done under KDE (and OpenSUSE). I know it's painful, but as sebastian mentionned, it's possible there's a bug in interactions between snapd and kde. Can you give a round of test under GNOME running on Ubuntu ? It could at least help us confirm whether it's your usecase that is breaking something, or if it's a bug either in OpenSUSE's integration or KDE.

Flags: needinfo?(s0txcj+s0txcz)

(In reply to third="Beedell", first="Roke", second="Julian Lockhart" from comment #49)

[...]

However, that's not the interesting bit. Because there's no .desktop file for firefox on this system, I have to run firefox using snap run firefox. Despite that, when I'm using it, an icon appears in my task(bar/manager) correctly, which I can pin and drag to my desktop, creating a formerly considered to be erroneous .desktop file acting as a URI rather than path invoker, but with the path /snap/firefox/3182/usr/lib/firefox/firefox supplied. If I invoke this "incorrect" version, it indeed is able to set itself as the default scheme handler, despite there being no obvious .desktop file. Perhaps my conclusion thus that the lack of a desktop file is the cause is erroneous, but gee this is confusing.

What was the revision of the Firefox running after snap run firefox ?

So all your tests were done under KDE (and OpenSUSE). I know it's painful, but as sebastian mentionned, it's possible there's a bug in interactions between snapd and kde. Can you give a round of test under GNOME running on Ubuntu ? It could at least help us confirm whether it's your usecase that is breaking something, or if it's a bug either in OpenSUSE's integration or KDE.

Yeah, [email protected], I have a laptop I can test it on, which I recently reproduced the issue (with openSUSE + KDE) on. I'll try to get that done soon.

What was the revision of the Firefox running after snap run firefox ?

Apologies, I don't know specifically. However, I ran snap refresh every day, and the last day I used it was 2023-09-23T18+0100, so whichever revision was available then.

Flags: needinfo?(s0txcj+s0txcz)

A lot has moved here and there has been no update. Make sure to re-open if it's still valid

Status: UNCONFIRMED → RESOLVED
Closed: 8 months ago
Flags: needinfo?(bandali)
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: