I would be interested to know which is the longest distance straight line crossing of a country I could do, without having to go through a building or having to swim.
Maybe some country in North Africa, that is mainly desert?
If you're willing to be a little more flexible with the definition of a country, many U.S. states and Canadian provinces look fairly easy to cross in a straight line. They contain long, straight stretches of roads, and even their borders are straight lines. You might as well just walk or drive along the fence.
Clearly the longest theoretically possible will be Russia. Start at the border near Pskov and just head eastish until you end up in Laguna Kunergvin. Although that does involve crossing some big rivers, formidable mountain ranges, frozen tundra, and trackless forest.