Hi there.
I am having a problem and I was wondering if I could address this with a script.
I have a electronics program I run (EasyEDA Pro), which requires and "OpenGL enable video card" to run smoothly. I have an old video card, a Radeon 6540 which I have placed in my computer (A Dell Optiplex 3010). Everything works great, with one caveat - after the operating system loads, I must restart the window manager, ie open terminal and type "restartwm" for the program to operate smoothly. If I do not do this, the program runs very poorly and even gives a warning that I need a video card that has OpenGL enabled. Once restarted this error goes away.
So immediately after startup I go to terminal and type "restartwm" every startup to solve this problem.
I am using Bionic Puppy 64 Bit version by the way.
I am not opposed to automating the "restartwm" command after startup, but if I put a script in the Startup folder, it creates an infinite loop of startups.
So is there any easy way to restart the windows manager just one time?
I think I can write a variable to a file like a 0 before the windows manager starts, and then check if it is 0. If the file contains 0, write a 1 to the file and restart wm. Or maybe even set some global environmental variable.
But there must be a better way to address this situation.
Even if there is a better solution than restarting the windows manager (getting the card to work properly on the first startup), I am still curious to see how the problem of restarting the windows manager just once could best be accomplished. Does anyone have any thoughts or suggestions?