<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://dev1galaxy.org/extern.php?action=feed&amp;tid=3036&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / [MiyoLinux] Update on the Update Notifier]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=3036</link>
		<description><![CDATA[The most recent posts in [MiyoLinux] Update on the Update Notifier.]]></description>
		<lastBuildDate>Fri, 26 Nov 2021 15:38:40 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: [MiyoLinux] Update on the Update Notifier]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=33011#p33011</link>
			<description><![CDATA[<p>Okay. Thanks!</p>]]></description>
			<author><![CDATA[dummy@example.com (MiyoLinux)]]></author>
			<pubDate>Fri, 26 Nov 2021 15:38:40 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=33011#p33011</guid>
		</item>
		<item>
			<title><![CDATA[Re: [MiyoLinux] Update on the Update Notifier]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=33010#p33010</link>
			<description><![CDATA[<p>couple more changes. I&#039;ll go back and edit my previous post.</p><p>Yes, the user sets the frontend (and terminal if they want) in /etc/default/update-notifier.</p><div class="codebox"><pre><code>+	pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY &quot;${TERMINAL_COMMAND} ${TERMINAL_OPTIONS}&quot; &#039;apt-get dist-upgrade&#039;</code></pre></div><div class="codebox"><pre><code># Example:
# TERMINAL_COMMAND=&quot;/usr/bin/xfce4-terminal&quot;
# TERMINAL_OPTIONS=&quot;-e&quot;

TERMINAL_COMMAND=&quot;/usr/bin/xterm&quot;
TERMINAL_OPTIONS=&quot;-fa mono -fs 12 -e&quot;</code></pre></div><p>One more thing...<br />If/when we package this for devuan, the executables should be in /usr/bin/ instead of /usr/local/bin.</p>]]></description>
			<author><![CDATA[dummy@example.com (fsmithred)]]></author>
			<pubDate>Fri, 26 Nov 2021 14:50:03 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=33010#p33010</guid>
		</item>
		<item>
			<title><![CDATA[Re: [MiyoLinux] Update on the Update Notifier]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=33008#p33008</link>
			<description><![CDATA[<p>Ahhh!</p><p>So, if any names for updates are detected, it will notify you. Nice!</p><p>I don&#039;t know why I didn&#039;t combine the two script into one...I guess I was having a brain-fart that day? LOL! <img src="https://dev1galaxy.org/img/smilies/tongue.png" width="15" height="15" alt="tongue" /></p><p>I&#039;m guessing the user would have to set the &quot;frontend&quot; that they want to use?</p><p>Thanks for the clue about changing the shebang; I wasn&#039;t aware of the possibility of what may happen with bash.</p><p>Thanks fsr!</p>]]></description>
			<author><![CDATA[dummy@example.com (MiyoLinux)]]></author>
			<pubDate>Fri, 26 Nov 2021 14:36:51 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=33008#p33008</guid>
		</item>
		<item>
			<title><![CDATA[Re: [MiyoLinux] Update on the Update Notifier]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=33006#p33006</link>
			<description><![CDATA[<p>Here are the main changes. I also changed calls for update-notifier.sh to update-notifier2.sh instead. I&#039;m too lazy to see which files they were in. It makes more sense to change the name of the script (drop the &quot;2&quot; since there&#039;s only one of them.)</p><p>Note the change in the she-bang. We may get stuck with usr-merge in the not too distant future, and /bin/bash will go away. It won&#039;t go far, but using &#039;/usr/bin/env bash&#039; will survive the change. </p><p>/etc/default/update-notifier </p><div class="codebox"><pre><code># Set the default action for clicking on the notification icon.
# Valid choices: 
# &quot;none&quot; to only see a list of available upgrades.
# &quot;terminal&quot; to run the upgrade in a terminal
# &quot;gui&quot; to run the upgrade in synaptic package manager.

FRONTEND=&quot;terminal&quot;

# Change the terminal if you don&#039;t have xterm.
# End your terminal command with the option that runs a command inside the terminal.
# Example:
# TERMINAL_COMMAND=&quot;/usr/bin/xfce4-terminal&quot;
# TERMINAL_OPTIONS=&quot;-e&quot;

TERMINAL_COMMAND=&quot;/usr/bin/xterm&quot;
TERMINAL_OPTIONS=&quot;-fa mono -fs 12 -e&quot;</code></pre></div><p>/usr/local/bin/upgrade.sh </p><div class="codebox"><pre><code>#!/usr/bin/env bash

source /etc/default/update-notifier

killall yad

if [ &quot;$FRONTEND&quot; = terminal ] ; then
	pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY &quot;${TERMINAL_COMMAND} ${TERMINAL_OPTIONS}&quot; &#039;apt-get dist-upgrade&#039;
elif [ &quot;$FRONTEND&quot; = gui ] ; then
	synaptic-pkexec --dist-upgrade-mode --non-interactive
fi

exit 0</code></pre></div><p>/usr/local/bin/update-notifier2.sh </p><div class="codebox"><pre><code>#!/usr/bin/env bash

list=$(apt-get -s dist-upgrade | awk &#039;/^Inst/ { print $2 }&#039;)

count=$(echo &quot;$list&quot; | wc -l)

if [ -n &quot;$list&quot; ] ; then

	notify-send --expire-time=20000 --icon=&quot;/usr/share/pixmaps/updates.svg&quot; \
&quot;Available updates: $count

$list&quot;

	yad --notification \
		--image=&quot;/usr/share/pixmaps/updates.svg&quot; \
		--icon-size=22 \
		--command=&quot;/usr/local/bin/upgrade.sh&quot; \
		--text=&quot;Available updates: $count
	_____________________
	
$list&quot; &amp;

fi

exit 0</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (fsmithred)]]></author>
			<pubDate>Fri, 26 Nov 2021 13:56:09 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=33006#p33006</guid>
		</item>
		<item>
			<title><![CDATA[Re: [MiyoLinux] Update on the Update Notifier]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=33002#p33002</link>
			<description><![CDATA[<p>fsr!!! I&#039;d like to see what you&#039;ve done with everything if you get a chance! <img src="https://dev1galaxy.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>In fact, I almost contacted you to see if you would look over the notifier scripts to see if you had any advice or improvements, but I didn&#039;t want to bother you, because I know how busy you are.</p><p>Thanks fsr!</p>]]></description>
			<author><![CDATA[dummy@example.com (MiyoLinux)]]></author>
			<pubDate>Fri, 26 Nov 2021 05:44:29 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=33002#p33002</guid>
		</item>
		<item>
			<title><![CDATA[Re: [MiyoLinux] Update on the Update Notifier]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=33001#p33001</link>
			<description><![CDATA[<p>Thanks for bashing the notifier into chimaera and later. I downloaded and tried the basic. At first I thought it wasn&#039;t working, but it was doing exactly what it&#039;s supposed to do - don&#039;t notify me if there aren&#039;t any updates. On a system that has upgrades pending, it did show me the list.</p><p>I did change a few things. I put the icon in /usr/share/pixmaps, because /usr/share/images didn&#039;t exist. And I combined update-notifier.sh and update-notifier2.sh into one script with a slightly different test.</p><p>If/when you package this, there should be a way to include all three in one package. I&#039;m thinking something like a file in /etc/default to set <span class="bbc">COMMAND=</span> where $COMMAND determines what happens when you click on the icon. (OK, I just added that below.)</p><p>Also, if anyone is wondering what that bell icon in xfce is supposed to do, here&#039;s how to get it to work:<br /><a href="https://forum.xfce.org/viewtopic.php?pid=62989#p62989" rel="nofollow">https://forum.xfce.org/viewtopic.php?pid=62989#p62989</a></p><p>My modified script:</p><div class="codebox"><pre><code>#!/bin/bash

source /etc/default/update-notifier

list=$(apt-get -s dist-upgrade | awk &#039;/^Inst/ { print $2 }&#039;)

count=$(echo &quot;$list&quot; | wc -l)

if [ -n &quot;$list&quot; ] ; then

	notify-send --expire-time=20000 --icon=&quot;/usr/share/pixmaps/updates.svg&quot; \
&quot;Available updates: $count

$list&quot;

	yad --notification \
		--image=&quot;/usr/share/pixmaps/updates.svg&quot; \
		--icon-size=22 \
		--command=&quot;$COMMAND&quot; \
		--text=&quot;Available updates: $count
	_____________________
	
$list&quot;

fi

exit 0</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (fsmithred)]]></author>
			<pubDate>Fri, 26 Nov 2021 05:04:00 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=33001#p33001</guid>
		</item>
		<item>
			<title><![CDATA[Re: [MiyoLinux] Update on the Update Notifier]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=32990#p32990</link>
			<description><![CDATA[<p>Okay...all three versions are now available if anyone is interested.</p><p>Each version will give a desktop notification and a notification in the system tray. Instructions are included with each version for installation and editing the script(s) if desired.</p><p>Each version will check for updates 2-3 minutes after system startup; thereafter, it will check every 6 hours. I chose 6 hours, because I&#039;m running ceres, and Debian unstable provides updates every 6 hours. However, this can be changed in the script called <span class="bbc">notifier-six-hours.sh</span> and in the <span class="bbc">updates-sync2-cron</span> file.</p><p>1. Basic Update Notifier - it&#039;s just an update notifier; nothing else...and my preferred version. <img src="https://dev1galaxy.org/img/smilies/tongue.png" width="15" height="15" alt="tongue" />&#160; It will notify you if updates are available, but the user will have to manually install them via a terminal or synaptic. Click the icon in the system tray to make it disappear. </p><p>2. Synaptic Update Notifier - click the icon in the system tray, enter your password, and synaptic will open to upgrade your system. Instructions are included to allow the user to choose whether to have synaptic&#039;s main window show (along with the floating windows) during upgrades or to only show the floating windows.</p><p>3. Xterm Update Notifier - click the icon in the system tray, enter your password, and xterm will open to perform upgrades. Instructions are included if you want to use a different terminal.</p><p>Available for download from...</p><p>OSDN: <a href="https://osdn.net/projects/miyolinux/releases/76259" rel="nofollow">https://osdn.net/projects/miyolinux/releases/76259</a></p><p>Sourceforge: <a href="https://sourceforge.net/projects/miyolinux/files/MiyoLinux-Update-Notifier/2021/" rel="nofollow">https://sourceforge.net/projects/miyoli … fier/2021/</a></p><p>If you live in the US, Happy Thanksgiving! <img src="https://dev1galaxy.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[dummy@example.com (MiyoLinux)]]></author>
			<pubDate>Thu, 25 Nov 2021 12:49:49 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=32990#p32990</guid>
		</item>
		<item>
			<title><![CDATA[Re: [MiyoLinux] Update on the Update Notifier]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=32930#p32930</link>
			<description><![CDATA[<p>Okay...</p><p>I&#039;ve been working some more on the new iterations of the update notifier that use bash scripts instead of python. I&#039;ve cut down on the number of scripts needed. <img src="https://dev1galaxy.org/img/smilies/tongue.png" width="15" height="15" alt="tongue" /></p><p>I have three versions. Two versions that use Xterm (or Synaptic) to upgrade stable systems. Both of those use <span class="bbc">dist-uprade</span> in order to upgrade &quot;stable&quot; systems.</p><p>(<em>You can edit one script to use whichever terminal you want if you don&#039;t want to use xterm</em>)</p><p>The third version is just a notifier for testing or unstable systems. It will notify you when updates are available; however, you will need to do updates manually after being notified. It&#039;s left up to the user whether to <span class="bbc">upgrade</span> or <span class="bbc">dist-upgrade</span>.</p><p>When I have finished testing them, I&#039;ll post new download links here.</p>]]></description>
			<author><![CDATA[dummy@example.com (MiyoLinux)]]></author>
			<pubDate>Fri, 19 Nov 2021 22:31:23 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=32930#p32930</guid>
		</item>
		<item>
			<title><![CDATA[Re: [MiyoLinux] Update on the Update Notifier]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=32724#p32724</link>
			<description><![CDATA[<p>Downloads:<br />Sourceforge: <a href="https://sourceforge.net/projects/miyolinux/files/MiyoLinux-Update-Notifier/2021/" rel="nofollow">https://sourceforge.net/projects/miyoli … fier/2021/</a><br />OSDN: <a href="https://osdn.net/projects/miyolinux/releases/76259" rel="nofollow">https://osdn.net/projects/miyolinux/releases/76259</a></p><p>I edited (heavily) the previous post, because I made a boo-boo with the update notifier that I didn&#039;t catch. <img src="https://dev1galaxy.org/img/smilies/sad.png" width="15" height="15" alt="sad" /> <img src="https://dev1galaxy.org/img/smilies/tongue.png" width="15" height="15" alt="tongue" /><br />I&#039;ve made a new .zip file with the corrections (download links above), but if you&#039;ve already installed the update notifier on (or before) November 09, 2021, you can watch this video to see how to fix it...</p><p><a href="https://youtu.be/nlfXTmt74Hs" rel="nofollow">https://youtu.be/nlfXTmt74Hs</a></p><p>...or you can just do the following to fix it...</p><div class="quotebox"><blockquote><div><p>1. Comment out or remove the following lines from your autostart...</p><div class="codebox"><pre><code>/usr/local/bin/updates-sync

/usr/local/bin/updates-sync2</code></pre></div><p>2. As root, create the following files in /etc/cron.d/</p><p>(you can name them anything you want)</p><p>In the first file, put the following command...</p><div class="codebox"><pre><code>@reboot root /usr/local/bin/updates-sync</code></pre></div><p>In the second file, put the following command...</p><div class="codebox"><pre><code>@reboot root /usr/local/bin/updates-sync2</code></pre></div><p>3. Reboot your computer.</p></div></blockquote></div><p>If you install this new &quot;fixed&quot; version...&#160; <img src="https://dev1galaxy.org/img/smilies/tongue.png" width="15" height="15" alt="tongue" /></p><div class="quotebox"><blockquote><div><p>I made this notifier to use mainly on my Devuan Ceres system (MiyoLinux Rolling). That&#039;s why I have it only doing an apt-get upgrade instead of an apt-get dist-upgrade. That&#039;s also the reason for the 6 hour check intervals.</p><p>The Update Notifier will check for updates approximately 4 minutes after computer startup. Thereafter, it will check every 6 hours. If updates are available, it will show a desktop notification and an icon in the system tray. Clicking the icon in the system tray will open an authentication window to enter your password. After entering your password, xterm will open and perform the updates. See information after the instructions if you want to change some things in the scripts.</p><p>Dependencies:</p><p>bash <br />yad <br />policykit-1-gnome (or another polkit)<br />xfce4-notifyd&#160; (or dunst, notification-daemon, etc. if you want desktop notifications)<br />xterm (unless you want to change the terminal that is used)</p><p>Instructions: </p><p><ins>PERFORM STEPS 1-4 AS ROOT!!!</ins></p><p>1. Move all of the scripts into /usr/local/bin/</p><p>2. Make sure their permissions are set to allow anyone to run them.</p><p>3. Move the 2 text files (updates-sync-cron and updates-sync2-cron) into /etc/cron.d/</p><p><ins>MAKE SURE TO CHANGE THE OWNER AND GROUP (OF THOSE TWO TEXT FILES) FROM &quot;YOUR NAME&quot; TO &quot;ROOT&quot; IF YOU UNZIPPED THE FILE AS A REGULAR USER!!!</ins></p><p>4. Move the updates.svg icon into /usr/share/images/</p><p>5. Add the following lines to your autostart...</p><div class="codebox"><pre><code>/usr/local/bin/updater-first-run 

/usr/local/bin/updater-six-hours</code></pre></div><p>6. Reboot<br />_________________________________</p><p>If you don&#039;t want the desktop notification pop-up window...<br />As root, open the <span class="bbc">update-notifier2</span> script with a text editor, enable line numbers, and comment out lines 7 and 9.</p><p>Hovering your mouse over the system tray icon will give you the same information as the desktop notification.<br />_________________________________</p><p>If you use this on a stable system and want to use <span class="bbc">dist-upgrade</span>...<br />As root, open the <span class="bbc">updates-yes</span> script with a text editor, and change <span class="bbc">apt-get upgrade</span> to <span class="bbc">apt-get dist-upgrade</span></p><p>Also, while that same script is open in your text editor...if you want to use a terminal other than xterm, replace...<br /><span class="bbc">xterm -fa mono -fs 12</span> with your terminal of choice.</p></div></blockquote></div><p>...&#039;cause that&#039;s the way I roll baby! <img src="https://dev1galaxy.org/img/smilies/tongue.png" width="15" height="15" alt="tongue" /></p>]]></description>
			<author><![CDATA[dummy@example.com (MiyoLinux)]]></author>
			<pubDate>Wed, 10 Nov 2021 01:03:16 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=32724#p32724</guid>
		</item>
		<item>
			<title><![CDATA[Re: [MiyoLinux] Update on the Update Notifier]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=32655#p32655</link>
			<description><![CDATA[<p>I finally got around to making a new update notifier. It still functions as before; however, I wrote some simple bash scripts to do everything. I haven&#039;t made it into a .deb package yet; it&#039;s in a .zip file with instructions on where to put the scripts, the icon, and what to add to your autostart. </p><p>As before, clicking the icon in the system tray will open an Authentication window. Enter your password, and xterm will open to perform the updates.</p><p>With this one, if you missed the desktop notification, you can hover your mouse over the icon in the system tray, and it will show the number of updates available and list them also. (<em>Shown in the screenshot below</em>)</p><p>If anyone would like to try it, it can be downloaded from...</p><p><ins><strong>EDIT: See the next post for downloads</strong></ins></p><p><span class="postimg"><img src="https://13707080-557519846114226283.preview.editmysite.com/uploads/1/3/7/0/13707080/2021-11-07-081537-1366x768-scrot_orig.png" alt="2021-11-07-081537-1366x768-scrot_orig.png" /></span></p>]]></description>
			<author><![CDATA[dummy@example.com (MiyoLinux)]]></author>
			<pubDate>Sun, 07 Nov 2021 13:59:00 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=32655#p32655</guid>
		</item>
		<item>
			<title><![CDATA[Re: [MiyoLinux] Update on the Update Notifier]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=22152#p22152</link>
			<description><![CDATA[<p>There are new versions of the update notifier now available if anyone is interested. There are still 3 versions available.</p><p>What has changed?</p><p>The update notifier now checks for updates within the first few minutes at system startup. It will then check for updates once every 8 hours thereafter. Since Devuan is mainly meant to be a stable system, I believe that since people leave their computers on for different amounts of time...to check at system startup and once every 8 hours thereafter was a good compromise. The update notifier will not work on Ceres thanks to Debian removing pertinent packages...back to the drawing board on future versions! <img src="https://dev1galaxy.org/img/smilies/tongue.png" width="15" height="15" alt="tongue" /></p><h5><strong>If you decide to install this, please read the readme.txt file on Sourceforge for valuable information.</strong></h5><p><a href="https://sourceforge.net/projects/miyolinux/files/MiyoLinux-Update-Notifier/" rel="nofollow">https://sourceforge.net/projects/miyoli … -Notifier/</a></p>]]></description>
			<author><![CDATA[dummy@example.com (MiyoLinux)]]></author>
			<pubDate>Thu, 28 May 2020 08:53:04 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=22152#p22152</guid>
		</item>
		<item>
			<title><![CDATA[Re: [MiyoLinux] Update on the Update Notifier]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=20749#p20749</link>
			<description><![CDATA[<p>If you want a little more time...</p><p>You know...in case you log in, and you get distracted by a cat chasing a moose or something...you can make the number (270) in the second script larger.</p><p>It will still only sync the repos one time, but it will give the notifier a longer time to live in the system tray before the pkill command does its business. <img src="https://dev1galaxy.org/img/smilies/wink.png" width="15" height="15" alt="wink" /></p>]]></description>
			<author><![CDATA[dummy@example.com (MiyoLinux)]]></author>
			<pubDate>Thu, 26 Mar 2020 20:17:47 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=20749#p20749</guid>
		</item>
		<item>
			<title><![CDATA[Re: [MiyoLinux] Update on the Update Notifier]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=20745#p20745</link>
			<description><![CDATA[<p>I got the - 2.1.2_all.deb<br />Thx for posting the adjustment...I&#039;m starting the mini-p2p-mimo-3.0 build now,<br />and will post when I get to your updater tweaks! <img src="https://dev1galaxy.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>Awesome....jus` awesome!</p>]]></description>
			<author><![CDATA[dummy@example.com (stanz)]]></author>
			<pubDate>Thu, 26 Mar 2020 19:12:43 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=20745#p20745</guid>
		</item>
		<item>
			<title><![CDATA[Re: [MiyoLinux] Update on the Update Notifier]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=20714#p20714</link>
			<description><![CDATA[<p>...and if you&#039;re like me and running ceres&#160; <img src="https://dev1galaxy.org/img/smilies/yikes.png" width="15" height="15" alt="yikes" /></p><p>...add this to your .Xresources file so that xterm will have a scroll bar so that you can scroll through to see all of the updates available when there&#039;s a ton of them. LOL! <img src="https://dev1galaxy.org/img/smilies/tongue.png" width="15" height="15" alt="tongue" /></p><div class="codebox"><pre><code>xterm*scrollBar: true
xterm*rightScrollBar: true</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (MiyoLinux)]]></author>
			<pubDate>Wed, 25 Mar 2020 08:57:45 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=20714#p20714</guid>
		</item>
		<item>
			<title><![CDATA[Re: [MiyoLinux] Update on the Update Notifier]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=20712#p20712</link>
			<description><![CDATA[<div class="quotebox"><cite>stanz wrote:</cite><blockquote><div><div class="quotebox"><cite>MiyoLinux wrote:</cite><blockquote><div><p>One last question (anyone&#039;s input is welcome)...for the &quot;Would you like to update your system now?&quot; window...<br />Would the words plus icons...or...just the words alone be preferable on the buttons?</p></div></blockquote></div><p>Nice!! I&#039;ll take both..<br />And this is Easy to tweak..but I&#039;m torn between:<br /><span class="bbc">Pop-quiz &#039;user&#039;, you have updates waiting on your input...whata ya do? </span><img src="https://dev1galaxy.org/img/smilies/hmm.png" width="15" height="15" alt="hmm" /><br />and<br /><span class="bbc">So, ya don&#039;t wanna update now? &quot;<strong>I&#039;ll be back!</strong>&quot; </span><img src="https://dev1galaxy.org/img/smilies/yikes.png" width="15" height="15" alt="yikes" /></p><p>on to finding matching icons! <img src="https://dev1galaxy.org/img/smilies/tongue.png" width="15" height="15" alt="tongue" /></p><p>As always MiyoLinux...nice addition to your builds ~ for the users &#039;ease of use&#039;!!<br />Allot of time and effort...I hope you remember to eat and visit family often. <img src="https://dev1galaxy.org/img/smilies/lol.png" width="15" height="15" alt="lol" /></p><p>asta</p></div></blockquote></div><p>How did I never see this message? LOL! </p><h5>DOOOO IT!!!</h5><p>&#160; <img src="https://dev1galaxy.org/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" />&#160; There&#039;s usually some face icons in the &quot;emotes&quot; folder of each icon theme.</p><div class="quotebox"><cite>stanz wrote:</cite><blockquote><div><p>and I hope you did!!</p><p>How would I tweak your notifer to just check once at login?<br />Thx in advance...&#160; smile</p></div></blockquote></div><p>Just so happens I tweaked mine to do just that. Which update-notifier are you using? I only use the one that just opens xterm when you click the icon in the system tray. If you&#039;re using another one, I&#039;d have to investigate n&#039;stuff.</p><p>Be aware...this is a miyo-hack. I&#039;m not a scriptographer. <img src="https://dev1galaxy.org/img/smilies/tongue.png" width="15" height="15" alt="tongue" />&#160; ...but it stinkin&#039; works. <img src="https://dev1galaxy.org/img/smilies/wink.png" width="15" height="15" alt="wink" />&#160; Just read all of this before you go hackin&#039; on the scripts in case you don&#039;t wanna do it. <img src="https://dev1galaxy.org/img/smilies/hmm.png" width="15" height="15" alt="hmm" /></p><p>If you&#039;re using the same one I am, you need to edit 2 scripts as root.</p><p><strong>1. Open /usr/share/update-notifier/update-notifier.py with your text editor.</strong></p><p>Change the amount of time in line # 36. I changed mine to the number 90 (which is 1 1/2 minutes after <del>startup</del> reaching the desktop). Anyway, that line in the script now looks like this...</p><p><span class="bbc">interval = 90,</span></p><p>Save and close the file.</p><p><strong>2. Open /usr/bin/miyo-update-sync with your text editor.</strong></p><p>Here&#039;s where the miyo-hackism comes into play <img src="https://dev1galaxy.org/img/smilies/tongue.png" width="15" height="15" alt="tongue" />&#160; ...edit that script to look like this...</p><div class="codebox"><pre><code>#!/bin/bash
/usr/bin/apt-get update; while sleep 270; do pkill -9 -f update-notifier.py; done</code></pre></div><p>Save and close the file.</p><p>NOTE: That 270 gives the update notifier enough time to sync the repositories once, but it will then kill the update-notifier.py before it runs again. At least, that&#039;s how it works on my system. Hack it if you have to! <img src="https://dev1galaxy.org/img/smilies/tongue.png" width="15" height="15" alt="tongue" /></p><p>Log out and log back in for it to take effect.</p><h5>AND BAM!</h5><p>It will only sync the repos (check for updates) and run the update notifier once after system startup. <img src="https://dev1galaxy.org/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /></p><p>Be aware though...this is a hack. If you don&#039;t catch the notification in the system tray within a few minutes of reaching the desktop, it won&#039;t appear again until the next time you logout/login or reboot...because if there are updates, and there&#039;s the icon in the system tray...that pkill command will kill it also.</p><p>Cause that&#039;s the way I roll baby!</p>]]></description>
			<author><![CDATA[dummy@example.com (MiyoLinux)]]></author>
			<pubDate>Wed, 25 Mar 2020 06:48:02 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=20712#p20712</guid>
		</item>
	</channel>
</rss>
