Changeset 16512


Ignore:
Timestamp:
Aug 9, 2016, 12:29:29 PM (3 years ago)
Author:
dcorreia
Message:

Connected wizard with main window options.
Updated script to support root permissions.

Location:
internals/2016/linuxloginsmartcardwizard
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • internals/2016/linuxloginsmartcardwizard/.idea/workspace.xml

    r16501 r16512  
    22<project version="4">
    33  <component name="ChangeListManager">
    4     <list default="true" readonly="true" id="fbd8e757-714d-41c6-a2b9-8558c09dbd04" name="Default" comment="Update IDE workspace">
    5       <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/trunk/proto1/img/green-checkmark.png" />
    6       <change type="DELETED" beforePath="$PROJECT_DIR$/trunk/proto1/img/transparent-green-checkmark-hi.png" afterPath="" />
     4    <list default="true" readonly="true" id="fbd8e757-714d-41c6-a2b9-8558c09dbd04" name="Default" comment="">
     5      <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/trunk/proto1/mainwin.py" />
    76      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
    8       <change type="MODIFICATION" beforePath="$PROJECT_DIR$/trunk/proto1/config.py" afterPath="$PROJECT_DIR$/trunk/proto1/config.py" />
    97      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/trunk/proto1/main.py" afterPath="$PROJECT_DIR$/trunk/proto1/main.py" />
    108    </list>
     
    3028        <entry file="file://$PROJECT_DIR$/trunk/proto1/w4pages.py">
    3129          <provider selected="true" editor-type-id="text-editor">
    32             <state relative-caret-position="203">
    33               <caret line="24" column="56" selection-start-line="24" selection-start-column="56" selection-end-line="24" selection-end-column="56" />
     30            <state relative-caret-position="293">
     31              <caret line="50" column="4" selection-start-line="50" selection-start-column="4" selection-end-line="55" selection-end-column="45" />
     32              <folding>
     33                <element signature="e#0#42#0" expanded="true" />
     34              </folding>
     35            </state>
     36          </provider>
     37        </entry>
     38      </file>
     39      <file leaf-file-name="mainwin.py" pinned="false" current-in-tab="true">
     40        <entry file="file://$PROJECT_DIR$/trunk/proto1/mainwin.py">
     41          <provider selected="true" editor-type-id="text-editor">
     42            <state relative-caret-position="275">
     43              <caret line="67" column="22" selection-start-line="67" selection-start-column="22" selection-end-line="67" selection-end-column="22" />
    3444              <folding>
    3545                <element signature="e#0#42#0" expanded="true" />
     
    4252        <entry file="file://$PROJECT_DIR$/trunk/proto1/welcome.py">
    4353          <provider selected="true" editor-type-id="text-editor">
    44             <state relative-caret-position="90">
    45               <caret line="5" column="43" selection-start-line="5" selection-start-column="43" selection-end-line="5" selection-end-column="43" />
     54            <state relative-caret-position="131">
     55              <caret line="10" column="29" selection-start-line="10" selection-start-column="29" selection-end-line="10" selection-end-column="29" />
    4656              <folding />
    4757            </state>
     
    5262        <entry file="file://$PROJECT_DIR$/trunk/proto1/system.py">
    5363          <provider selected="true" editor-type-id="text-editor">
    54             <state relative-caret-position="216">
     64            <state relative-caret-position="-180">
    5565              <caret line="12" column="56" selection-start-line="12" selection-start-column="56" selection-end-line="12" selection-end-column="56" />
    5666              <folding>
     
    6474        <entry file="file://$PROJECT_DIR$/trunk/proto1/carduser.py">
    6575          <provider selected="true" editor-type-id="text-editor">
    66             <state relative-caret-position="66">
     76            <state relative-caret-position="-594">
    6777              <caret line="24" column="7" selection-start-line="24" selection-start-column="6" selection-end-line="24" selection-end-column="7" />
    6878              <folding>
     
    7686        <entry file="file://$PROJECT_DIR$/trunk/proto1/final.py">
    7787          <provider selected="true" editor-type-id="text-editor">
    78             <state relative-caret-position="509">
     88            <state relative-caret-position="558">
    7989              <caret line="31" column="85" selection-start-line="31" selection-start-column="85" selection-end-line="31" selection-end-column="85" />
    8090              <folding />
     
    8696        <entry file="file://$PROJECT_DIR$/trunk/proto1/main.py">
    8797          <provider selected="true" editor-type-id="text-editor">
    88             <state relative-caret-position="195">
    89               <caret line="50" column="27" selection-start-line="50" selection-start-column="26" selection-end-line="50" selection-end-column="27" />
     98            <state relative-caret-position="239">
     99              <caret line="104" column="76" selection-start-line="104" selection-start-column="76" selection-end-line="104" selection-end-column="76" />
    90100              <folding />
    91101            </state>
     
    93103        </entry>
    94104      </file>
    95       <file leaf-file-name="config.py" pinned="false" current-in-tab="true">
     105      <file leaf-file-name="config.py" pinned="false" current-in-tab="false">
    96106        <entry file="file://$PROJECT_DIR$/trunk/proto1/config.py">
    97107          <provider selected="true" editor-type-id="text-editor">
    98             <state relative-caret-position="1859">
    99               <caret line="325" column="26" selection-start-line="325" selection-start-column="26" selection-end-line="325" selection-end-column="26" />
     108            <state relative-caret-position="2394">
     109              <caret line="204" column="37" selection-start-line="204" selection-start-column="37" selection-end-line="204" selection-end-column="37" />
    100110              <folding>
    101111                <element signature="e#19#28#0" expanded="true" />
     
    150160        <option value="$PROJECT_DIR$/trunk/proto1/cardHelper.py" />
    151161        <option value="$PROJECT_DIR$/.idea/workspace.xml" />
    152         <option value="$PROJECT_DIR$/trunk/proto1/main.py" />
    153162        <option value="$PROJECT_DIR$/trunk/proto1/final.py" />
    154163        <option value="$PROJECT_DIR$/trunk/proto1/welcome.py" />
    155164        <option value="$PROJECT_DIR$/trunk/proto1/system.py" />
    156165        <option value="$PROJECT_DIR$/trunk/proto1/carduser.py" />
     166        <option value="$PROJECT_DIR$/trunk/proto1/config.py" />
    157167        <option value="$PROJECT_DIR$/trunk/proto1/w4pages.py" />
    158         <option value="$PROJECT_DIR$/trunk/proto1/config.py" />
     168        <option value="$PROJECT_DIR$/trunk/proto1/main.py" />
     169        <option value="$PROJECT_DIR$/trunk/proto1/mainwin.py" />
    159170      </list>
    160171    </option>
     
    213224    </navigator>
    214225    <panes>
     226      <pane id="Scratches" />
     227      <pane id="ProjectPane">
     228        <subPane>
     229          <PATH>
     230            <PATH_ELEMENT>
     231              <option name="myItemId" value="estagiopycharm" />
     232              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
     233            </PATH_ELEMENT>
     234          </PATH>
     235          <PATH>
     236            <PATH_ELEMENT>
     237              <option name="myItemId" value="estagiopycharm" />
     238              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
     239            </PATH_ELEMENT>
     240            <PATH_ELEMENT>
     241              <option name="myItemId" value="estagiopycharm" />
     242              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
     243            </PATH_ELEMENT>
     244            <PATH_ELEMENT>
     245              <option name="myItemId" value="trunk" />
     246              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
     247            </PATH_ELEMENT>
     248          </PATH>
     249          <PATH>
     250            <PATH_ELEMENT>
     251              <option name="myItemId" value="estagiopycharm" />
     252              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
     253            </PATH_ELEMENT>
     254            <PATH_ELEMENT>
     255              <option name="myItemId" value="estagiopycharm" />
     256              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
     257            </PATH_ELEMENT>
     258            <PATH_ELEMENT>
     259              <option name="myItemId" value="trunk" />
     260              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
     261            </PATH_ELEMENT>
     262            <PATH_ELEMENT>
     263              <option name="myItemId" value="proto1" />
     264              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
     265            </PATH_ELEMENT>
     266          </PATH>
     267          <PATH>
     268            <PATH_ELEMENT>
     269              <option name="myItemId" value="estagiopycharm" />
     270              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
     271            </PATH_ELEMENT>
     272            <PATH_ELEMENT>
     273              <option name="myItemId" value="estagiopycharm" />
     274              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
     275            </PATH_ELEMENT>
     276          </PATH>
     277        </subPane>
     278      </pane>
    215279      <pane id="Scope" />
    216       <pane id="ProjectPane">
    217         <subPane />
    218       </pane>
    219       <pane id="Scratches" />
    220280    </panes>
    221281  </component>
     
    718778      <updated>1470669346344</updated>
    719779    </task>
    720     <option name="localTasksCounter" value="32" />
     780    <task id="LOCAL-00032" summary="Added support to control configuration progress.&#10;Added check for user+card mapping to avoid duplicates.">
     781      <created>1470669475255</created>
     782      <option name="number" value="00032" />
     783      <option name="presentableId" value="LOCAL-00032" />
     784      <option name="project" value="LOCAL" />
     785      <updated>1470669475255</updated>
     786    </task>
     787    <task id="LOCAL-00033" summary="Designed interface for main window.">
     788      <created>1470747508027</created>
     789      <option name="number" value="00033" />
     790      <option name="presentableId" value="LOCAL-00033" />
     791      <option name="project" value="LOCAL" />
     792      <updated>1470747508027</updated>
     793    </task>
     794    <option name="localTasksCounter" value="34" />
    721795    <servers />
    722796  </component>
     
    734808    <editor active="false" />
    735809    <layout>
    736       <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.22593476" sideWeight="0.49195403" order="0" side_tool="false" content_ui="combo" />
     810      <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.22593476" sideWeight="0.49195403" order="0" side_tool="false" content_ui="combo" />
    737811      <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.24574961" sideWeight="0.5" order="8" side_tool="false" content_ui="tabs" />
    738812      <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.23802164" sideWeight="0.50676215" order="9" side_tool="true" content_ui="tabs" />
    739813      <window_info id="Version Control" active="true" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.35085008" sideWeight="0.49323785" order="12" side_tool="false" content_ui="tabs" />
    740814      <window_info id="Python Console" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32612056" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
     815      <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.28902626" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
    741816      <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.24900557" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
    742817      <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.23029366" sideWeight="0.4953125" order="10" side_tool="false" content_ui="tabs" />
    743818      <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.17263326" sideWeight="0.508046" order="1" side_tool="true" content_ui="tabs" />
     819      <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.39876354" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
    744820      <window_info id="SVN Repositories" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.32921174" sideWeight="0.5" order="11" side_tool="false" content_ui="tabs" />
    745821      <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
     
    748824      <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
    749825      <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
    750       <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.28902626" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
    751826      <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
    752827      <window_info id="Inspection Results" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32945737" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
    753828      <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32921174" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
    754829      <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
    755       <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.39876354" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
    756830    </layout>
    757831  </component>
     
    772846  <component name="VcsManagerConfiguration">
    773847    <option name="CHECK_CODE_SMELLS_BEFORE_PROJECT_COMMIT" value="true" />
    774     <MESSAGE value="Added troubleshooting regarding CyberTrust certificate." />
    775     <MESSAGE value="Added support for creating directories and copying files.&#10;Abstracted debug printing and command execution.&#10;Updated package installation.&#10;Added make pkcs11 hash links and get crl file features." />
    776848    <MESSAGE value="Clean up TODO's." />
    777849    <MESSAGE value="Added pam_pkcs11 configuration file creation.&#10;Updated crl wget feature to avoid duplicate files." />
     
    797869    <MESSAGE value="Update IDE workspace" />
    798870    <MESSAGE value="Added progress messages to system page.&#10;Fixed bugs and design." />
    799     <option name="LAST_COMMIT_MESSAGE" value="Added progress messages to system page.&#10;Fixed bugs and design." />
     871    <MESSAGE value="Added support to control configuration progress.&#10;Added check for user+card mapping to avoid duplicates." />
     872    <MESSAGE value="Designed interface for main window." />
     873    <option name="LAST_COMMIT_MESSAGE" value="Designed interface for main window." />
    800874  </component>
    801875  <component name="XDebuggerManager">
    802876    <breakpoint-manager>
    803       <option name="time" value="25" />
     877      <option name="time" value="27" />
    804878    </breakpoint-manager>
    805879    <watches-manager />
    806880  </component>
    807881  <component name="editorHistoryManager">
    808     <entry file="file://$PROJECT_DIR$/trunk/project1/expfile.txt" />
    809882    <entry file="file://$PROJECT_DIR$/trunk/project1/editfiles.py" />
    810883    <entry file="file://$PROJECT_DIR$/trunk/backup/pam_pkcs11.conf">
     
    9551028    <entry file="file://$PROJECT_DIR$/trunk/proto1/gui/system.py" />
    9561029    <entry file="file://$PROJECT_DIR$/trunk/proto1/gui/welcome.py" />
    957     <entry file="file://$PROJECT_DIR$/trunk/proto1/sudologin.py">
    958       <provider selected="true" editor-type-id="text-editor">
    959         <state relative-caret-position="90">
    960           <caret line="5" column="4" selection-start-line="5" selection-start-column="4" selection-end-line="6" selection-end-column="31" />
    961         </state>
    962       </provider>
    963     </entry>
     1030    <entry file="file://$PROJECT_DIR$/trunk/proto1/sudologin.py" />
    9641031    <entry file="file://$USER_HOME$/.PyCharm2016.2/system/python_stubs/-1247971765/PyQt5/QtWidgets/QWizardPage.py">
    9651032      <provider selected="true" editor-type-id="text-editor">
    9661033        <state relative-caret-position="376">
    9671034          <caret line="98" column="8" selection-start-line="98" selection-start-column="8" selection-end-line="98" selection-end-column="20" />
    968           <folding />
    9691035        </state>
    9701036      </provider>
     
    9981064        <state relative-caret-position="18">
    9991065          <caret line="304" column="4" selection-start-line="304" selection-start-column="4" selection-end-line="304" selection-end-column="4" />
    1000           <folding />
    10011066        </state>
    10021067      </provider>
     
    10061071        <state relative-caret-position="36">
    10071072          <caret line="2" column="10" selection-start-line="1" selection-start-column="0" selection-end-line="2" selection-end-column="10" />
     1073        </state>
     1074      </provider>
     1075    </entry>
     1076    <entry file="file://$PROJECT_DIR$/trunk/proto1/final.py">
     1077      <provider selected="true" editor-type-id="text-editor">
     1078        <state relative-caret-position="558">
     1079          <caret line="31" column="85" selection-start-line="31" selection-start-column="85" selection-end-line="31" selection-end-column="85" />
    10081080          <folding />
    10091081        </state>
    10101082      </provider>
    10111083    </entry>
     1084    <entry file="file://$PROJECT_DIR$/trunk/proto1/carduser.py">
     1085      <provider selected="true" editor-type-id="text-editor">
     1086        <state relative-caret-position="-594">
     1087          <caret line="24" column="7" selection-start-line="24" selection-start-column="6" selection-end-line="24" selection-end-column="7" />
     1088          <folding>
     1089            <element signature="e#0#42#0" expanded="true" />
     1090          </folding>
     1091        </state>
     1092      </provider>
     1093    </entry>
     1094    <entry file="file://$PROJECT_DIR$/trunk/proto1/config.py">
     1095      <provider selected="true" editor-type-id="text-editor">
     1096        <state relative-caret-position="2394">
     1097          <caret line="204" column="37" selection-start-line="204" selection-start-column="37" selection-end-line="204" selection-end-column="37" />
     1098          <folding>
     1099            <element signature="e#19#28#0" expanded="true" />
     1100          </folding>
     1101        </state>
     1102      </provider>
     1103    </entry>
    10121104    <entry file="file://$PROJECT_DIR$/trunk/proto1/welcome.py">
    10131105      <provider selected="true" editor-type-id="text-editor">
    1014         <state relative-caret-position="90">
    1015           <caret line="5" column="43" selection-start-line="5" selection-start-column="43" selection-end-line="5" selection-end-column="43" />
     1106        <state relative-caret-position="131">
     1107          <caret line="10" column="29" selection-start-line="10" selection-start-column="29" selection-end-line="10" selection-end-column="29" />
    10161108          <folding />
    10171109        </state>
    10181110      </provider>
    10191111    </entry>
     1112    <entry file="file://$PROJECT_DIR$/trunk/proto1/w4pages.py">
     1113      <provider selected="true" editor-type-id="text-editor">
     1114        <state relative-caret-position="293">
     1115          <caret line="50" column="4" selection-start-line="50" selection-start-column="4" selection-end-line="55" selection-end-column="45" />
     1116          <folding>
     1117            <element signature="e#0#42#0" expanded="true" />
     1118          </folding>
     1119        </state>
     1120      </provider>
     1121    </entry>
    10201122    <entry file="file://$PROJECT_DIR$/trunk/proto1/system.py">
    10211123      <provider selected="true" editor-type-id="text-editor">
    1022         <state relative-caret-position="216">
     1124        <state relative-caret-position="-180">
    10231125          <caret line="12" column="56" selection-start-line="12" selection-start-column="56" selection-end-line="12" selection-end-column="56" />
    10241126          <folding>
     
    10281130      </provider>
    10291131    </entry>
    1030     <entry file="file://$PROJECT_DIR$/trunk/proto1/carduser.py">
    1031       <provider selected="true" editor-type-id="text-editor">
    1032         <state relative-caret-position="66">
    1033           <caret line="24" column="7" selection-start-line="24" selection-start-column="6" selection-end-line="24" selection-end-column="7" />
     1132    <entry file="file://$PROJECT_DIR$/trunk/proto1/main.py">
     1133      <provider selected="true" editor-type-id="text-editor">
     1134        <state relative-caret-position="239">
     1135          <caret line="104" column="76" selection-start-line="104" selection-start-column="76" selection-end-line="104" selection-end-column="76" />
     1136          <folding />
     1137        </state>
     1138      </provider>
     1139    </entry>
     1140    <entry file="file://$PROJECT_DIR$/trunk/proto1/mainwin.py">
     1141      <provider selected="true" editor-type-id="text-editor">
     1142        <state relative-caret-position="275">
     1143          <caret line="67" column="22" selection-start-line="67" selection-start-column="22" selection-end-line="67" selection-end-column="22" />
    10341144          <folding>
    10351145            <element signature="e#0#42#0" expanded="true" />
     
    10381148      </provider>
    10391149    </entry>
    1040     <entry file="file://$PROJECT_DIR$/trunk/proto1/final.py">
    1041       <provider selected="true" editor-type-id="text-editor">
    1042         <state relative-caret-position="509">
    1043           <caret line="31" column="85" selection-start-line="31" selection-start-column="85" selection-end-line="31" selection-end-column="85" />
    1044           <folding />
    1045         </state>
    1046       </provider>
    1047     </entry>
    1048     <entry file="file://$PROJECT_DIR$/trunk/proto1/w4pages.py">
    1049       <provider selected="true" editor-type-id="text-editor">
    1050         <state relative-caret-position="203">
    1051           <caret line="24" column="56" selection-start-line="24" selection-start-column="56" selection-end-line="24" selection-end-column="56" />
    1052           <folding>
    1053             <element signature="e#0#42#0" expanded="true" />
    1054           </folding>
    1055         </state>
    1056       </provider>
    1057     </entry>
    1058     <entry file="file://$PROJECT_DIR$/trunk/proto1/main.py">
    1059       <provider selected="true" editor-type-id="text-editor">
    1060         <state relative-caret-position="195">
    1061           <caret line="50" column="27" selection-start-line="50" selection-start-column="26" selection-end-line="50" selection-end-column="27" />
    1062           <folding />
    1063         </state>
    1064       </provider>
    1065     </entry>
    1066     <entry file="file://$PROJECT_DIR$/trunk/proto1/config.py">
    1067       <provider selected="true" editor-type-id="text-editor">
    1068         <state relative-caret-position="1859">
    1069           <caret line="325" column="26" selection-start-line="325" selection-start-column="26" selection-end-line="325" selection-end-column="26" />
    1070           <folding>
    1071             <element signature="e#19#28#0" expanded="true" />
    1072           </folding>
    1073         </state>
    1074       </provider>
    1075     </entry>
    10761150  </component>
    10771151</project>
  • internals/2016/linuxloginsmartcardwizard/trunk/proto1/main.py

    r16501 r16512  
    103103
    104104def resetConfigurations():
     105    print("Deleting smartcard login files and reseting login configurations")
    105106    config.deleteDirectory(PAMPKCS11_DIRPATH)
    106107    config.deleteFile(PAMCONFIG)
    107108    config.resetPamAuth()
    108109    config.deleteTemporaryData()
     110
     111if __name__ == '__main__':
     112    import sys
     113    import os
     114    if os.geteuid() != 0:
     115        print("Script not started as root. Running sudo...")
     116        args = ["sudo", sys.executable] + sys.argv + [os.environ]
     117        os.execlpe("gksudo", *args)
     118    print("Running with euid ", os.geteuid())
     119    if "reset" in sys.argv:
     120        resetConfigurations()
Note: See TracChangeset for help on using the changeset viewer.