Moises Henriquez avatar Moises Henriquez committed e2b7ab5

Fixed junk .pyc files when escalating privileges

Comments (0)

Files changed (3)

             'src/vasm/data/vasmcc-logo_trimmed.png',
             'src/vasm/data/vectorlinux-logo.png',
             'src/vasm/data/xfce.png',
-            'src/vasm/data/xscreensaver.xpm'])],
-##        ('/usr/share/vasm',['src/vasm/data/*.png',
-##            'src/vasm/data/icons/*.*'])],
-##        ('/usr/share/vasm/data', ['src/vasm/data/login_gdm.png',
-##            'src/vasm/data/login_kdm.png',
-##            'src/vasm/data/login_unknown.png',
-##            'src/vasm/data/login_xdm.png',
-##            'src/vasm/data/vasmcc-logo.png',
-##            'src/vasm/data/vasmcc-logo_trimmed.png',
-##            'src/vasm/data/vectorlinux-logo.png',
-##            'src/vasm/data/LICENSE',
-##            'src/vasm/data/servicehelp.txt',
-##            'src/vasm/data/setup_logging.sh']),
-##        ('/usr/share/vasm/data/icons', ['src/vasm/data/icons/bootmenu.png',
-##            'src/vasm/data/icons/bootmode.png',
-##            'src/vasm/data/icons/category_graphical_environment.png',
-##            'src/vasm/data/icons/category_hardware.png',
-##            'src/vasm/data/icons/category_networking.png',
-##            'src/vasm/data/icons/category_personal.png',
-##            'src/vasm/data/icons/category_startup_options.png',
-##            'src/vasm/data/icons/category_system.png',
-##            'src/vasm/data/icons/category_unknown.png',
-##            'src/vasm/data/icons/datetime.png',
-##            'src/vasm/data/icons/gdmconfig.png',
-##            'src/vasm/data/icons/gparted.svg',
-##            'src/vasm/data/icons/gui_desktop.png',
-##            'src/vasm/data/icons/harddisk.png',
-##            'src/vasm/data/icons/hardinfo.png',
-##            'src/vasm/data/icons/kdmconfig.png',
-##            'src/vasm/data/icons/package-utilities.png',
-##            'src/vasm/data/icons/terminal.png',
-##            'src/vasm/data/icons/users.png',
-##            'src/vasm/data/icons/xfce.png',
-##            'src/vasm/data/icons/xscreensaver.xpm']),            
-##            ],
+            'src/vasm/data/xscreensaver.xpm',
+            'src/vasm/data/gksu.png'])],
     requires = ['psutil','urwid','parted','pexpect','shutil'],
     scripts = ['src/vasm/vasm'])

src/vasm/ui/gtk2/panedui.py

         def run_as_root():
             # find the command for this process
             cmd = " ".join(sys.argv)
-            proc = sp.Popen(["vsuper","python", cmd])
+            proc = sp.Popen(["vsuper","python",'-B', cmd])
             proc.communicate()
         logger.info("Escalating privileges and re-launching vasm.")
         run_as_root()

src/vasm/ui/tui/tvasm.py

         raise urwid.ExitMainLoop
         self.parent._mainloop.screen.stop()
         script = os.path.abspath(__file__)
-        proc = sp.popen(['/bin/vsuper','python', script])
+        proc = sp.popen(['/bin/vsuper','python', '-B',script])
         proc.communicate()
         raise urwid.ExitMainLoop
     
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.