Bug 360576 (enhancement) - faster way to set the file attribute EXECUTABLE for newly created *.sh , *.py text files : a service menu entry
Summary: faster way to set the file attribute EXECUTABLE for newly created *.sh , *.py...
Status: RESOLVED UPSTREAM
Alias: enhancement
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 15.12.1
Platform: Compiled Sources Linux
: NOR wishlist
Target Milestone: ---
Assignee: fire f.
URL:
Keywords: usability
Depends on:
Blocks:
 
Reported: 2016-03-15 19:35 UTC by alt.s2-0n4a6xh
Modified: 2018-06-12 23:04 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
firefox: Brainstorm+
firefox: Usability+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description alt.s2-0n4a6xh 2016-03-15 19:35:26 UTC
Very often one uses "create new text file". This will often be a bash shell script or python source file. 

Would be nice if the filename dialogue already had a tick-box

"set the text file to EXECUTABLE" (file property / permission ATTRIBUTE), 

thus saving approx. 4 clicks each time.

Reproducible: Always




improves productivity
Comment 1 fire f. 2018-06-12 22:23:54 UTC
[Desktop Entry]
Comment=set files executable via chmod +x via Dolphin right-click
# place this file as   /home/YOU/.local/share/kservices5/ServiceMenus/EXE-attribute.desktop

#kate: byte-order-marker off;
Icon=application-x-executable
Actions=me;cp;
Type=Service
ServiceTypes=KonqPopupMenu/Plugin
MimeType=application/x-shellscript;application/x-ruby;text/x-python;application/x-executable;text/plain
X-KDE-Priority=TopLevel
X-KDE-StartupNotify=false
X-KDE-Submenu[de]=setze EXE-Attribut , /bin
X-KDE-Submenu=EXE Attr.

[Desktop Action me]
Name=make file executable
Name[de]=setze EXE-Attribut
Icon=application-x-executable-script
Exec=chmod +x "%f"

[Desktop Action cp]
Name=copy to /usr/bin
Name[de]=nach /usr/bin kopieren
Icon=edit-copy
Exec=kdesu -d --noignorebutton -c 'sudo cp "%f" /usr/bin/'
Comment 2 fire f. 2018-06-12 22:24:56 UTC
using that .desktop file is about the fastest way to do it.
Comment 3 Christoph Feck 2018-06-12 23:04:23 UTC
Could you please review the bug's status? Did you intent to close the bug, but still request input from the usability team?