<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"><html><head><meta name="qrichtext" content="1" /><style type="text/css">p, li { white-space: pre-wrap; }</style></head><body style=" font-family:'Droid Sans Mono'; font-size:10pt; font-weight:400; font-style:normal;">On Saturday 21 February 2009, Michael Pyne wrote:<br>
> Hi all,<br>
><br>
> I've implemented the auto-exec-bit-ifying of .desktop files in KRun and<br>
> made the changes suggested in the last couple of threads, including using<br>
> owned-by- root as an exception as originally discussed instead of merely<br>
> "not writable by user".<br>
><br>
> Currently the work is in 3 patches (all attached):<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>2 more patches now to fix the Link to Application template (for a total of 5):<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>patch 4 simply adds the #!/usr/bin/env xdg-open header to the Application template desktop file<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>patch 5 adds support for adding the +x bit to new application links.  Only the user's executable bit is added, is it a good idea to add owner/group as well?  I made sure to use KIO in case a Link to Application is created remotely, so that part works even remotely (KPropertiesDialog, as it turns out, did not though :( ).<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>I would assume Plasma would still need to be fixed as well but I haven't looked at it yet.<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>Finally, I'm still uneasy at having a dialog that can be clicked-thru for .desktop files to run them this way.  So what do you think about having some kind of minimum-time-to-dialog where if the user tries to click on the .desktop file within, say, 10 minutes of creating it that it simply opens up its properties dialog?  After 10 minutes the dialog would appear on click.  Note that this would only happen after creating a .desktop file not via Plasma (since that will be fixed) or Link to Application.<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>Regards,<br>
 - Michael Pyne</p></body></html>