If you are of Slovenian descent up to a second generation in a straight line and you already legally reside in Slovenia, you may apply for a first permit for a specific purpose – you must make sure that you submit an application before the end of the
permitted stay.