https://bugs.kde.org/show_bug.cgi?id=364965

            Bug ID: 364965
           Summary: Feature request: a configuration option to lock all
                    new sessions (Prevent closing)
           Product: yakuake
           Version: 2.9.9
          Platform: Fedora RPMs
                OS: Linux
            Status: UNCONFIRMED
          Severity: wishlist
          Priority: NOR
         Component: general
          Assignee: h...@kde.org
          Reporter: marek.schim...@gmail.com

Many times I close the session when I want to paste text into the command line
with the middle mouse button. It doesn't help that the command line is really
close..
I would like an option to start all new sessions with "Prevent closing" active.
I imagine this is rather trivial to add as the option already exists in each
session menu.

Reproducible: Always

Steps to Reproduce:
1. When pasting text, click on a session title instead of the command line just
above it.
2. 
3. 

Actual Results:  
Session closes (sometimes not the one I was pasting into!), which sucks.

Expected Results:  
I should have an easy option to prevent this. It's just too easy to forget to
set "Prevent closing" every time I open a new session.

A very clumsy workaround in my .bashrc:

# prevent yakuake from closing tabs with middle-click (this is a very crude
# solution, runs every time a new bash shell is open)
perl -e 'my $uri="org.kde.yakuake";
    my $sess="/yakuake/sessions";
    my $list="org.kde.yakuake.sessionIdList";
    my $closable="org.kde.yakuake.setSessionClosable";
    $sessions=`qdbus "$uri" "$sess" "$list" 2>/dev/null`;
    chomp $sessions;
    map { system("qdbus $uri $sess $closable $_ 0");
        } split(",", $sessions);' 1>/dev/null

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to