is there any way to make debian 12.7 open new tabs instead of new windows each time I download something with firefox?
from merompetehla@lemmy.ml to linux@lemmy.ml on 20 Sep 2024 09:34
https://lemmy.ml/post/20500741

each time I save a file with firefox and click on ‘display progress of ongoing downloads’ on the top right part of the browser and click to open the containing directory, debian opens the directory, but in a new tunar window, not in a new tab in a pre existing thunar window.

It’s tiring working with so many open windows. Better one window and several tabs.

#linux

threaded - newest

[deleted] on 20 Sep 2024 09:41 next collapse

.

Ephera@lemmy.ml on 20 Sep 2024 10:00 next collapse

Firefox won’t be able to do this without Thunar supporting it, but someone else already posted that Thunar does support it.

boredsquirrel@slrpnk.net on 20 Sep 2024 15:34 collapse

Yeah sorry this is about the used filemanager.

In KDE I have set Konsole, Dolphin and Okular to always only open tabs. Really nice, not always self explanatory

Ziglin@lemmy.world on 20 Sep 2024 13:17 collapse

I would say it’s about thunar configuration or URL handler configs more than anything. The other comment has what looks like a good solution for x11, no idea if it works on Wayland though.

bbbhltz@beehaw.org on 20 Sep 2024 09:51 next collapse

This could be a Thunar setting or a xfwm4 setting in addition to being a FF setting.

bbbhltz@beehaw.org on 20 Sep 2024 09:54 collapse

Yes

docs.xfce.org/xfce/thunar/preferences#behavior_pr…

Tabs and Windows

Open new thunar instances as tabs

Whenever you launch thunar while an existing thunar window is already open, a new tab will be added to the existing thunar window instead of opening a new window.

[deleted] on 20 Sep 2024 09:59 next collapse

.

InverseParallax@lemmy.world on 20 Sep 2024 10:17 next collapse

forums.linuxmint.com/viewtopic.php?t=244076

Alternately:

forum.xfce.org/viewtopic.php?id=16993

xfconf-query -c thunar -p /misc-open-new-window-as-tab -s true && thunar ~/Downloads

[deleted] on 20 Sep 2024 18:03 next collapse

.

CCRhode@lemmy.ml on 20 Sep 2024 20:33 collapse

This gets a bit messy. Here’s a python code snippet that gives you some idea what I’m up to with my Debian/Gnome desktop:

if while_tweaking('all', 'default browser', '√'):
    ChangeSymbolicLink(
        name='gnome-www-browser',
        action='Make Tor the default browser.',
        old=f'~ccrhode/tor-browser_en-US/{TBB_SCRIPT}',
        new='/etc/alternatives/gnome-www-browser',
        )
    ChangeSymbolicLink(
        name='x-www-browser',
        action='Make Tor the default browser.',
        old=f'~ccrhode/tor-browser_en-US/{TBB_SCRIPT}',
        new='/etc/alternatives/x-www-browser',
        )
    ChangeGConf(
        name='http handler',
        action='Change default Gnome http handler.',
        path='/desktop/gnome/url-handlers/http',
        key_values={'command': 'gnome-www-browser "%s"'},
        )
    ChangeGConf(
        name='https handler',
        action='Change default Gnome https handler.',
        path='/desktop/gnome/url-handlers/https',
        key_values={'command': 'gnome-www-browser "%s"'},
        )
    ChangeGConf(
        name='default browser',
        action='Change default Gnome browser.',
        path='/desktop/gnome/applications/browser',
        key_values={'exec': 'gnome-www-browser'},
        )
if while_tweaking('personal', 'desktop_icons', 'all', 'default browser', '√'):
    full_path = home_path(f'tor-browser_en-US/{TBB_SCRIPT}')
    ChangeDesktopLauncher(  # 2013 Jun 29
        name='firefox',
        action='Desktop icon for browser.',
        exec_=f'{full_path} -new-window %U',  # 2015 May 14
        desktop_name='New Window',
        icon='/usr/share/pixmaps/other/Web.png',
        comment="New window for Tor browser.",
        )
    ChangeDesktopLauncher(  # 2013 Jun 29
        name='firefox',
        action='Desktop icon for browser.',
        exec_=f'{full_path} -new-tab %U',  # 2015 May 14
        desktop_name='New Tab',
        icon='/usr/share/pixmaps/other/Web.png',
        comment="New tab for Tor browser.  This desktop item IS the default browser.  Please leave as-is.",
        key_values={
            'MimeType':
            'text/html;'
            'text/xml;'
            'application/xhtml+xml;'
            'application/xml;'
            'application/vnd.mozilla.xul+xml;'
            'application/rss+xml;'
            'application/rdf+xml;'
            'image/gif;'