I've found that editting /etc/systemd/user.conf and inserting lines such as
DefaultLimitNOFILE=40000
changes the ulimit for the graphical user sessions
I've found that editting /etc/systemd/ user.conf and inserting lines such as
DefaultLimitNOF ILE=40000
changes the ulimit for the graphical user sessions