|
5 | 5 | <link href="https://learnbyexample.github.io/atom.xml" rel="self" type="application/atom+xml"/>
|
6 | 6 | <link href="https://learnbyexample.github.io"/>
|
7 | 7 | <generator uri="https://www.getzola.org/">Zola</generator>
|
8 |
| - <updated>2025-02-10T00:00:00+00:00</updated> |
| 8 | + <updated>2025-02-12T00:00:00+00:00</updated> |
9 | 9 | <id>https://learnbyexample.github.io/atom.xml</id>
|
| 10 | + <entry xml:lang="en"> |
| 11 | + <title>OS installation woes</title> |
| 12 | + <published>2025-02-12T00:00:00+00:00</published> |
| 13 | + <updated>2025-02-12T00:00:00+00:00</updated> |
| 14 | + <link rel="alternate" href="https://learnbyexample.github.io/mini/os-installation-woes/" type="text/html"/> |
| 15 | + <id>https://learnbyexample.github.io/mini/os-installation-woes/</id> |
| 16 | + <content type="html"><p>I prefer stability and thus I let my Linux LTS distributions to last almost till the entire end of support time. Having learned from previous transition periods, I started maintaining notes on what softwares I install/purge and some of the customization stuff. This has vastly reduced the pain of a fresh OS installation, but the fact remains that there'll always be some persistent and annoying trouble.</p> |
| 17 | +<p>The one I encountered this time around is really perplexing and I'm afraid of trying to figure out the root cause. For now, I'm happy with the workaround I ended up with.</p> |
| 18 | +<p>I use <code>redshift</code> to set the color temperature of computer display. It is a simple temperature setting that doesn't depend on time or place, so my config is simple. However, it wasn't working when I moved from good old Ubuntu to Linux Mint (because Ubuntu is no longer user friendly). As per <a href="https://forums.linuxmint.com/viewtopic.php?t=422300">this discussion on Linux Mint forum</a>, <code>geoclue2</code> no longer works. That shouldn't matter for me since I don't need location services. Whatever, that same thread mentioned <a href="https://github.com/faf0/sct">xsct</a> as a simpler alternative that exactly fits my need (with a bonus of changing screen brightness!).</p> |
| 19 | +<p>I installed it and a really really simple command from the terminal was all it needed to work. So, what was the annoying issue? I couldn't get it to <a href="https://wiki.archlinux.org/title/Xfce#Autostart">autostart</a> on login no matter what I did! At first, I thought perhaps I needed to use the full path of the command, but that obviously didn't solve my troubles. After fruitless search on the internet, I almost thought to ask a question on the forum. Before that though, I had the bright idea (really basic debugging rule) to first check if my autostart setup was working at all. I chose to autostart a terminal on login via the <code>xfce4-terminal</code> command and it did work!</p> |
| 20 | +<p>So, why wasn't <code>xsct</code> working? No idea. But reading the <code>man</code> page of the terminal emulator showed that I can choose to execute a command with the <code>-e</code> option. So, that was my inelegant workaround! The desktop entry is shown below if you are curious. If you know why <code>Exec=xsct 3500 0.9</code> doesn't work compared to <code>Exec=xfce4-terminal -e 'xsct 3500 0.9'</code>, do let me know!</p> |
| 21 | +<pre style="background-color:#f5f5f5;color:#1f1f1f;"><code><span>[Desktop Entry] |
| 22 | +</span><span>Encoding=UTF-8 |
| 23 | +</span><span>Version=0.9.4 |
| 24 | +</span><span>Type=Application |
| 25 | +</span><span>Name=displaytemperature |
| 26 | +</span><span>Comment= |
| 27 | +</span><span>Exec=xfce4-terminal -e &#39;xsct 3500 0.9&#39; |
| 28 | +</span><span>OnlyShowIn=XFCE; |
| 29 | +</span><span>RunHook=0 |
| 30 | +</span><span>StartupNotify=false |
| 31 | +</span><span>Terminal=false |
| 32 | +</span><span>Hidden=false |
| 33 | +</span></code></pre> |
| 34 | +</content> |
| 35 | + </entry> |
10 | 36 | <entry xml:lang="en">
|
11 | 37 | <title>Understanding Python re(gex)? book announcement</title>
|
12 | 38 | <published>2025-01-22T00:00:00+00:00</published>
|
|
0 commit comments