gm10's Linux Mint Tools PPA

Get involved, create or participate in a project.
gm10
Level 20
Level 20
Posts: 10116
Joined: Thu Jun 21, 2018 5:11 pm

Re: gm10's Linux Mint Tools PPA

Post by gm10 » Mon Sep 16, 2019 8:38 pm

BenTrabetere wrote:
Mon Sep 16, 2019 8:12 pm
I suspected mint-common might be the culprit, so I tried installing mint-common first by itself and I tried to install everything except mint-common, but got the same results.
Yeah, just tried this in VM and it failed as well. Guess the package management system isn't as intelligent as I thought it would be. Let me think of a way to fix this...

update: fixed version should be available shortly. sorry about this, learned something new today.

update2: fixed version is available and confirmed to be working. I'm not sure that downgrading (PPA purge via Software Sources) still works correctly after that fix but I'll leave that for another day and update to take care of, if necessary.
Tune up your LM 19.x: ppa:gm10/linuxmint-tools

User avatar
BenTrabetere
Level 6
Level 6
Posts: 1030
Joined: Sat Jul 19, 2014 12:04 am
Location: Hattiesburg, MS USA

Re: gm10's Linux Mint Tools PPA

Post by BenTrabetere » Mon Sep 16, 2019 11:39 pm

gm10 wrote:
Mon Sep 16, 2019 8:38 pm
update2: fixed version is available and confirmed to be working.
The fixed version properly updated for me. Thank you.

gittiest personITW
Level 5
Level 5
Posts: 929
Joined: Tue May 28, 2019 4:27 pm

Re: gm10's Linux Mint Tools PPA

Post by gittiest personITW » Tue Sep 17, 2019 4:30 am

Hi gm10.
Hope all is good.
Running Cinnamon/19.2.
If you would like me to troubleshoot the error, I'll be fine to go through it one item at a time (work allowing).


There was an error with the PPA - don't know which if it was the updated version or not, so if its not I'll try later today:
E: /var/cache/apt/archives/mint-common_1%3a2.1.3~gm10_all.deb: trying to overwrite '/usr/bin/mint-refresh-cache', which is also in package mintupdate 1:5.8.4~gm10
Details:(Reading database ... 364390 files and directories currently installed.)
Preparing to unpack .../mint-common_1%3a2.1.3~gm10_all.deb ...
Unpacking mint-common (1:2.1.3~gm10) over (1:2.1.2~gm10) ...
dpkg: error processing archive /var/cache/apt/archives/mint-common_1%3a2.1.3~gm10_all.deb (--unpack):
trying to overwrite '/usr/bin/mint-refresh-cache', which is also in package mintupdate 1:5.8.4~gm10
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/mint-common_1%3a2.1.3~gm10_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Last edited by gittiest personITW on Tue Sep 17, 2019 5:09 am, edited 2 times in total.

gm10
Level 20
Level 20
Posts: 10116
Joined: Thu Jun 21, 2018 5:11 pm

Re: gm10's Linux Mint Tools PPA

Post by gm10 » Tue Sep 17, 2019 4:41 am

gittiest personITW wrote:
Tue Sep 17, 2019 4:30 am
If you would like me to troubleshoot the error, I'll be fine to go through it one item at a time (work allowing).
First things first, please edit that post of yours and remove the changelog...

As you can see from the post above yours, the problem was already fixed, just refresh your Update Manager.
Tune up your LM 19.x: ppa:gm10/linuxmint-tools

gittiest personITW
Level 5
Level 5
Posts: 929
Joined: Tue May 28, 2019 4:27 pm

Re: gm10's Linux Mint Tools PPA

Post by gittiest personITW » Tue Sep 17, 2019 4:54 am

The 'refresh' button is greyed out.
All the buttons at the top of the Update Manager are greyed out.
The only options I can click on are 'Update and Restart Update Manager' and the tick box underneath 'Apply self-updates automatically' (unticked).
I restarted the computer a couple of times but comes up with the same result.

Cheers

gm10
Level 20
Level 20
Posts: 10116
Joined: Thu Jun 21, 2018 5:11 pm

Re: gm10's Linux Mint Tools PPA

Post by gm10 » Tue Sep 17, 2019 4:58 am

gittiest personITW wrote:
Tue Sep 17, 2019 4:54 am
The 'refresh' button is greyed out.
Oh weird, it shouldn't be, I'll have to look into how that can happen. Can you refresh by right-clicking the icon?

Otherwise in a terminal window:

Code: Select all

apt update
Tune up your LM 19.x: ppa:gm10/linuxmint-tools

gittiest personITW
Level 5
Level 5
Posts: 929
Joined: Tue May 28, 2019 4:27 pm

[Solved] Re: gm10's Linux Mint Tools PPA

Post by gittiest personITW » Tue Sep 17, 2019 5:07 am

gm10 wrote:
Tue Sep 17, 2019 4:58 am
gittiest personITW wrote:
Tue Sep 17, 2019 4:54 am
The 'refresh' button is greyed out.
Can you refresh by right-clicking the icon?

Otherwise in a terminal window:

Code: Select all

apt update
If I right-click, the only non-greyed out options are
Show
Log view
Quit

But yes,

Code: Select all

 apt update
did the job. Doh!
Many thanks gm

User avatar
Drugwash
Level 3
Level 3
Posts: 152
Joined: Fri Jun 07, 2019 6:40 am
Location: Ploieşti, RO

Re: gm10's Linux Mint Tools PPA

Post by Drugwash » Tue Sep 17, 2019 5:24 am

Came late to the party, everything went fine for me. One thing though: if you're now using Synaptic (albeit in the background) I think it would be kind to pull a fix for its theme usage too because... yeah... it doesn't like pink progressbars (or background or anything else):
Screenshot from 2019-09-14 11-19-21.png
Oh and thanks for promptly fixing same issue in Driver Manager. :wink:

gm10
Level 20
Level 20
Posts: 10116
Joined: Thu Jun 21, 2018 5:11 pm

Re: gm10's Linux Mint Tools PPA

Post by gm10 » Tue Sep 17, 2019 5:49 am

Drugwash wrote:
Tue Sep 17, 2019 5:24 am
Came late to the party, everything went fine for me. One thing though: if you're now using Synaptic (albeit in the background) I think it would be kind to pull a fix for its theme usage too because... yeah... it doesn't like pink progressbars (or background or anything else):
Screenshot from 2019-09-14 11-19-21.png

Oh and thanks for promptly fixing same issue in Driver Manager. :wink:
Hmm, that screenshot is from Synaptic proper, I'm not planning on modifying that directly. It's like when you run Timeshift on its own it won't be properly themed, but when you start it from within Update Manager I do properly theme it for you. I could add a Synaptic link to Update Manager's edit menu that would launch it themed if it's dear to your heart. ;)

If you were to find an unthemed popup in one of my forked tools that would be a bug, it should be themed in absolutely everything, even the point release upgrader.
Tune up your LM 19.x: ppa:gm10/linuxmint-tools

User avatar
Drugwash
Level 3
Level 3
Posts: 152
Joined: Fri Jun 07, 2019 6:40 am
Location: Ploieşti, RO

Re: gm10's Linux Mint Tools PPA

Post by Drugwash » Tue Sep 17, 2019 3:27 pm

gm10 wrote:
Tue Sep 17, 2019 5:49 am
I'm not planning on modifying that directly.
That's why I said "pull a fix" rather than "fix it". ;) I mean, if you know where the problem may lie, tell the guys at GitHub or wherever the code may be so they could fix it in the official codebase. No need for a trampoline in Updater. However, since I'm working on my theme trying to get it as close as possible to perfection it would help if at least all official GUIs would be fixed to follow the currently selected theme in all their elements, so I'd know when the bugs are in my theme.

So far I haven't found other theme-related issues with your tools, but then again I'm not using them much, apart from the Updater. If it ever happens I'll let you know, if my notebook would still run after reboot (a friend's desktop got its BIOS fried last night possibly after accesing certain online "service", and I used that same service trying to help him over the phone - no, it wasn't p0rn).

gm10
Level 20
Level 20
Posts: 10116
Joined: Thu Jun 21, 2018 5:11 pm

Re: gm10's Linux Mint Tools PPA

Post by gm10 » Tue Sep 17, 2019 4:23 pm

Drugwash wrote:
Tue Sep 17, 2019 3:27 pm
That's why I said "pull a fix" rather than "fix it". ;) I mean, if you know where the problem may lie, tell the guys at GitHub or wherever the code may be so they could fix it in the official codebase.
Everybody knows what the issue is, you're running Synaptic in the context of another user (root) so that user's theme settings get applied and not yours. You could "fix" this yourself by configuring your desired theme for the root user as well.

In other words, that is no bug, in fact it is working as intended - pkexec intentionally prevents the user environment from being seen by the process it launches. Also Clem certainly has no interest in changing this behaviour, I had brought this up in the context of the user's proxy configuration back when I was on the dev team.

Personally I take a different stance on this - it may technically all be working as intended but I rather like to design from the user perspective and the user couldn't care less about the technical details of who owns what process, they just want their desktop to look consistent and all software they run to use their configured settings. That's why in my tools I circumvent pkexec's well meant intentions of separating the root process and sneak (parts of) the user's settings past it. I'm sure purists will find fault with that approach.
Tune up your LM 19.x: ppa:gm10/linuxmint-tools

ColdBootII
Level 5
Level 5
Posts: 521
Joined: Wed Aug 02, 2017 8:19 am

Re: gm10's Linux Mint Tools PPA

Post by ColdBootII » Tue Sep 17, 2019 11:14 pm

Drugwash wrote:
Tue Sep 17, 2019 3:27 pm
if at least all official GUIs would be fixed to follow the currently selected theme in all their elements, so I'd know when the bugs are in my theme.
Hi,

Not quite sure what you mean but if you wish Synaptic to use your currently selected theme which resides in your ~/.themes folder, you should link both .themes and .icons folders to root. I presume, what you're working on is there also? So, do this...

Code: Select all

sudo ln -s ~/.themes /root/.themes
sudo ln -s ~/.icons /root/.icons
However, I'd be more than a bit wary about Caja opened as administrator with that setup. I tried it and reverted back because I couldn't spot the difference.

User avatar
smurphos
Level 13
Level 13
Posts: 4765
Joined: Fri Sep 05, 2014 12:18 am
Location: Britisher
Contact:

Re: gm10's Linux Mint Tools PPA

Post by smurphos » Tue Sep 17, 2019 11:38 pm

Just linking individual themes in ~/.themes to /usr/share/themes works as-well.

Code: Select all

sudo ln -s ~/.themes/* /usr/share/themes/
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.

gm10
Level 20
Level 20
Posts: 10116
Joined: Thu Jun 21, 2018 5:11 pm

Re: gm10's Linux Mint Tools PPA

Post by gm10 » Wed Sep 18, 2019 3:01 am

To run anything as superuser with all your settings this is what I do:

Code: Select all

$ cat $(which gksudo)
#!/bin/bash
if [ $EUID != 0 ]
  then
    /usr/bin/pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY HOME=$HOME USER=$USER CWD=$PWD "$0" "$@"
  exit
fi
cd $CWD
"$@"
chown $USER:$USER $HOME/.config/dconf/user
But let's get back to discussing the PPA. ;)
Tune up your LM 19.x: ppa:gm10/linuxmint-tools

User avatar
Drugwash
Level 3
Level 3
Posts: 152
Joined: Fri Jun 07, 2019 6:40 am
Location: Ploieşti, RO

Re: gm10's Linux Mint Tools PPA

Post by Drugwash » Wed Sep 18, 2019 8:09 am

gm10 wrote:
Tue Sep 17, 2019 4:23 pm
Personally I take a different stance on this [...]
I agree with you completely.
gm10 wrote:
Wed Sep 18, 2019 3:01 am
To run anything as superuser with all your settings this is what I do [...]
I'll be contacting you privately about that, sometime when/if I manage to clear my mind of all this trouble with my sick kittens.
gm10 wrote:
Tue Sep 17, 2019 4:23 pm
[...] you're running Synaptic in the context of another user (root) [...]
I never changed anything, that's how it was installed. I'm still looking for the operating system that would never try to outsmart me and act as if it was my boss. Do you know any good sci-fi books on that? Because reality doesn't seem to be able to offer such thing, after Windows 9x. :(

@ all: thank you for the advices on themes, for now I'll let things be just to be able to spot the inconsistencies. And please let's get back to the topic. ;)

ColdBootII
Level 5
Level 5
Posts: 521
Joined: Wed Aug 02, 2017 8:19 am

Re: gm10's Linux Mint Tools PPA

Post by ColdBootII » Wed Sep 18, 2019 10:51 am

Drugwash wrote:
Wed Sep 18, 2019 8:09 am
@ all: thank you for the advices on themes, for now I'll let things be just to be able to spot the inconsistencies. And please let's get back to the topic. ;)
Drugwash wrote:
Tue Sep 17, 2019 5:24 am
it doesn't like pink progressbars (or background or anything else):
Screenshot from 2019-09-14 11-19-21.png
Well, sorry for offtopic then. :( I concluded wrongly based on the quote that you think gm is somehow interfering with Synaptic's theme coloring of your progress bar , your background etc and wanted to pinpoint, it's not the case.

I'd prefer my theme's red for the progress bar and black for background if I wanted to have the same look for root access apps, and it's doable. Nothing stands in the way.

Sorry again for the misunderstanding,
Cheers :D

Image

ColdBootII
Level 5
Level 5
Posts: 521
Joined: Wed Aug 02, 2017 8:19 am

Re: gm10's Linux Mint Tools PPA

Post by ColdBootII » Wed Sep 18, 2019 10:58 am

Still, how about changing the coloring of the "Reboot required" bar :mrgreen: , if it's hardcoded?

Image

gm10
Level 20
Level 20
Posts: 10116
Joined: Thu Jun 21, 2018 5:11 pm

Re: gm10's Linux Mint Tools PPA

Post by gm10 » Wed Sep 18, 2019 11:29 am

ColdBootII wrote:
Wed Sep 18, 2019 10:58 am
Still, how about changing the coloring of the "Reboot required" bar :mrgreen: , if it's hardcoded?
Nothing is hardcoded. Fix your theme's background color for infobar.warning.
Tune up your LM 19.x: ppa:gm10/linuxmint-tools

ColdBootII
Level 5
Level 5
Posts: 521
Joined: Wed Aug 02, 2017 8:19 am

Re: gm10's Linux Mint Tools PPA

Post by ColdBootII » Wed Sep 18, 2019 1:12 pm

Fixed, thanks gm. :D

User avatar
Drugwash
Level 3
Level 3
Posts: 152
Joined: Fri Jun 07, 2019 6:40 am
Location: Ploieşti, RO

Re: gm10's Linux Mint Tools PPA

Post by Drugwash » Wed Sep 18, 2019 2:13 pm

ColdBootII wrote:
Wed Sep 18, 2019 10:51 am
Sorry again for the misunderstanding
No worries, we're cool. :)

Post Reply

Return to “Community Projects”