<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic ScanGear only works for some users, on Ubuntu Linux in Desktop Inkjet Printers</title>
    <link>https://community.usa.canon.com/t5/Desktop-Inkjet-Printers/ScanGear-only-works-for-some-users-on-Ubuntu-Linux/m-p/305145#M17263</link>
    <description>&lt;P&gt;Hi. Our Canon Pixma MX475 is working fine for me on Ubuntu Linux 20.04 LTS. However, ScanGear won't work for my child, when logging in to their own user account on the same laptop as me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If they run scangearmp, the list of scanners appears. But for my child, pressing OK then gives the error message: “ScanGear: Internal Error occurred. Scanner driver will be closed.”&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For me, pressing the same button let's me do some scanning. I'm not running as root. I've added my child's account to the scanner system group. The results are the same regardless of which one of us logs in first or runs scangearmp first.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is it that's preventing ScanGear from working for one account when it runs fine from another?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a log file or somewhere I can look to see a more detailed error message?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;I have the scangearmp-mx470series Debian package installed, version 2.30-1. I think I downloaded&amp;nbsp; from here (but it was a while ago): &lt;A href="https://my.canon/en/support/0100587102" target="_blank"&gt;https://my.canon/en/support/0100587102&lt;/A&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Tue, 05 May 2020 12:54:20 GMT</pubDate>
    <dc:creator>Smylers</dc:creator>
    <dc:date>2020-05-05T12:54:20Z</dc:date>
    <item>
      <title>ScanGear only works for some users, on Ubuntu Linux</title>
      <link>https://community.usa.canon.com/t5/Desktop-Inkjet-Printers/ScanGear-only-works-for-some-users-on-Ubuntu-Linux/m-p/305145#M17263</link>
      <description>&lt;P&gt;Hi. Our Canon Pixma MX475 is working fine for me on Ubuntu Linux 20.04 LTS. However, ScanGear won't work for my child, when logging in to their own user account on the same laptop as me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If they run scangearmp, the list of scanners appears. But for my child, pressing OK then gives the error message: “ScanGear: Internal Error occurred. Scanner driver will be closed.”&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For me, pressing the same button let's me do some scanning. I'm not running as root. I've added my child's account to the scanner system group. The results are the same regardless of which one of us logs in first or runs scangearmp first.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is it that's preventing ScanGear from working for one account when it runs fine from another?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a log file or somewhere I can look to see a more detailed error message?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;I have the scangearmp-mx470series Debian package installed, version 2.30-1. I think I downloaded&amp;nbsp; from here (but it was a while ago): &lt;A href="https://my.canon/en/support/0100587102" target="_blank"&gt;https://my.canon/en/support/0100587102&lt;/A&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2020 12:54:20 GMT</pubDate>
      <guid>https://community.usa.canon.com/t5/Desktop-Inkjet-Printers/ScanGear-only-works-for-some-users-on-Ubuntu-Linux/m-p/305145#M17263</guid>
      <dc:creator>Smylers</dc:creator>
      <dc:date>2020-05-05T12:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: ScanGear only works for some users, on Ubuntu Linux</title>
      <link>https://community.usa.canon.com/t5/Desktop-Inkjet-Printers/ScanGear-only-works-for-some-users-on-Ubuntu-Linux/m-p/305327#M17264</link>
      <description>&lt;P&gt;I found the problem: scangearmp creates the file /var/tmp/canon_sgmp_setting_common.ini if it doesn't already exist, then attempts to chmod it so that all users can write to it (even if that's already the case).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But that doesn't work, because only the user that created the file can chmod it. So when invoked by a different user, the chmod, and the entire scangearmp process, fails.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My fix is to remove the file every time after scangear runs. Specifically I have /usr/local/bin/scangearmp as this shell script, wrapping the real command:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #! /bin/sh&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /usr/bin/scangearmp&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; state_file=/var/tmp/canon_sgmp_setting_common.ini&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if [ -e "$state_file" ]&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; then&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rm "$state_file"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fi&lt;/P&gt;</description>
      <pubDate>Wed, 06 May 2020 17:50:05 GMT</pubDate>
      <guid>https://community.usa.canon.com/t5/Desktop-Inkjet-Printers/ScanGear-only-works-for-some-users-on-Ubuntu-Linux/m-p/305327#M17264</guid>
      <dc:creator>Smylers</dc:creator>
      <dc:date>2020-05-06T17:50:05Z</dc:date>
    </item>
  </channel>
</rss>

