Ignore:
Timestamp:
Mar 9, 2018, 10:00:51 PM (3 years ago)
Author:
alviboi
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • lliurex-mate-welcome/trunk/fuentes/lliurex-mate-welcome

    r6981 r6987  
    597597
    598598        # full path to the autostart symlink
    599         self._autostart_path = os.path.expanduser(os.path.join(self._autostart_dir, 'lliurex-mate-welcome.desktop'))
     599        self._autostart_path = os.path.expanduser(os.path.join(self._autostart_dir, 'lliurex-mate-welcome-auto.desktop'))
    600600
    601601        # ensure our config and autostart directories exists
     
    620620            # create the autostart symlink
    621621            try:
    622                 os.symlink('/usr/share/applications/lliurex-mate-welcome.desktop', self._autostart_path)
     622                self._old_autostart_path = os.path.expanduser(os.path.join(self._autostart_dir, 'lliurex-mate-welcome.desktop'))
     623                if os.path.isfile(self._old_autostart_path):
     624                    os.unlink(self._old_autostart_path)             
     625                shutil.copy2('/etc/skel/.config/autostart/lliurex-mate-welcome-auto.desktop', self._autostart_path)
    623626            except OSError as err:
    624627                print(err)
Note: See TracChangeset for help on using the changeset viewer.