Actually on Linux it depends on the toolkit and/or environment you are using and in this case it seems that GNOME/GTK is the odd one out. After doing some search, it looks like that every other toolkit and environment uses OK -> Cancel:
http://ocsmag.com/wp-content/uploads/2015/02/plasma-krunner-... (KDE)
https://docs.kde.org/trunk5/en/kdeaccessibility/kmouth/kmout... (KDE)
https://api.kde.org/4.x-api/kdelibs-apidocs/kdeui/html/kdial... (KDE)
https://www.sao.ru/hq/sts/linux/book/xbook_marshall/prompt.g... (Motif)
https://www.sao.ru/hq/sts/linux/book/xbook_marshall/dialog1.... (Motif)
http://northstar-www.dartmouth.edu/doc/idl/html_6.2/images/m... (Motif)
http://www.antillia.com/oz++/images/IconBar.png (Motif)
https://tkdocs.com/images/idleprefs_l.png (Tk)
http://zetcode.com/img/gui/tkinter/colorchooser.png (Tk)
http://www.fltk.org/doc-2.0/html/filechooser.gif (Fltk)
Even on TUIs/Console the order tends to be OK -> Cancel:
http://linuxcommand.org/images/adventure_dialog-radiolist.pn... (dialog)
https://i.imgur.com/ruW7AQE.png (Free Vision)
https://raw.githubusercontent.com/pfalcon/picotui/master/pic... (picotui)
Also FWIW in my own programs i am always going OK -> Cancel since it feels more natural.