-
https://www.gov.pl/web/your-europe/entry-and-residence-rules
An EU citizen or a family member who is not an EU citizen who is a spouse of a Polish citizen acquires the right of permanent residence after three years of uninterrupted legal stay (in accordance with the conditions of the right to stay for period longer than 3 months) on the territory of the Republic of Poland.
-
But if you were in Poland, you could do fun stuff like this.
Check the rules in general, for france you can apply for citizenship once you've been married for 5 years whether you live in the country or not.