Bug 364965 - Feature request: a configuration option to lock all new sessions (Prevent closing)
Summary: Feature request: a configuration option to lock all new sessions (Prevent clo...
Status: REPORTED
Alias: None
Product: yakuake
Classification: Applications
Component: general (other bugs)
Version First Reported In: 2.9.9
Platform: Fedora RPMs Linux
: NOR wishlist
Target Milestone: ---
Assignee: Eike Hein
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-01 08:17 UTC by Marek
Modified: 2016-07-01 08:17 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marek 2016-07-01 08:17:38 UTC
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