LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Microlinux / MLED (https://www.linuxquestions.org/questions/microlinux-mled-116/)
-   -   (Solved) Found some bugs (https://www.linuxquestions.org/questions/microlinux-mled-116/solved-found-some-bugs-4175569006/)

PROBLEMCHYLD 02-02-2016 07:09 AM

(Solved) Found some bugs
 
Why does the root login differ from the user login I created?

Why are there duplicate entries on the menu? It has a lot of them.
Posted screenshots.

gegechris99 02-02-2016 03:52 PM

Regarding duplicate entry in menu for your user, I see that only Mozilla Thunderbird is duplicated.

Check first which Mozilla Thunderbird package(s) is installed by running in the console:
Code:

ls /var/log/packages/mozilla-thunderbird*
If more than one file appears, then you have 2 versions of that software installed (do not count the langpack package). You should remove the oldest version by running as root user:
Code:

removepkg /var/log/packages/mozilla-thunderbird-<old version>*
Regarding desktop environment for root user, I guess that the MLED customization is not available to that user because the root user was created before installation of the MLED packages.

You can however manually configure the MLED deskop environment for root user. Following the instructions at MLED FAQ : How can I turn a stock Slackware installation into MLED? after step "# ./cleanmenu.sh ".

PROBLEMCHYLD 02-02-2016 10:50 PM

None of the methods worked for me. There are no duplicates when I run

ls /var/log/packages/........

ondoho 02-03-2016 02:23 AM

ok, i'm not a slackware person, but maybe you should tell us how you installed MLED in the first place? maybe something went wrong?
http://www.microlinux.eu/installation_guide.php

also, i don't see how it could be a good idea to use this distro's gui as root. in other words, do not run gui apps as root. on any distro.

ps:
Don't rush to claim that you have found a bug

PROBLEMCHYLD 02-03-2016 05:46 AM

I used the clean install method with tag files. About the bug comment, you do realize there is no perfect software or hardware out there? I followed all the instructions and those were the results. You can call it a bug, issue, problem or whatever toe tag you want to give it. I'm trying to fix it. Some people talk too much when they should be helping more.

gegechris99 02-03-2016 01:20 PM

Regarding duplicate entries in menu, could you please post the result of the following two commands when logged in as your user:
Code:

ls ~/.local/share/applications/
and
Code:

cat /usr/share/applications/mozilla-thunderbird.desktop

PROBLEMCHYLD 02-03-2016 03:23 PM

Quote:

Originally Posted by gegechris99 (Post 5494492)
Regarding duplicate entries in menu, could you please post the result of the following two commands when logged in as your user:
Code:

ls ~/.local/share/applications/
and
Code:

cat /usr/share/applications/mozilla-thunderbird.desktop

Here you go.

http://s27.postimg.org/5kmaq5ba7/dup.jpg

I have the utmost respect for you gegechris99. You have been helping since day one. You don't come at me with smart aleck rebuttals. I only disrespect, when disrespected. Thank you, you have my deepest gratitude.

kikinovak 02-04-2016 12:19 AM

Quote:

Originally Posted by PROBLEMCHYLD (Post 5491515)
Why does the root login differ from the user login I created?

This is not a bug. This is you logging into your graphical environment as root. Which is a very bad idea.

PROBLEMCHYLD 02-04-2016 06:52 AM

Besides the two issues I reported, everything works lovely. Thank you guys.

gegechris99 02-04-2016 04:36 PM

@PROBLEMCHYLD

The results of the two commands don't give unexpected results. I'm sorry but at that point, I don't know why you have duplicate entries in your menu.

You said that there were multiple duplicate entries in the menu. Maybe, if you list all of them that could help point to the issue. As said previously, the screenshot showed only one duplicate entry for Thunderbird.

gegechris99 02-04-2016 04:53 PM

Ooups!!! I've just found out that your screenshot showed the "All" menu entry. I have the same issue as you on my MLED machine.

There are duplicate entries for Thunderbird, Firefox and Thunar.

This seems to be linked to these desktop files highlighted in bold in /usr/share/applications:

Code:

$ls /usr/share/applications/exo*
/usr/share/applications/exo-file-manager.desktop
/usr/share/applications/exo-mail-reader.desktop

/usr/share/applications/exo-preferred-applications.desktop
/usr/share/applications/exo-terminal-emulator.desktop
/usr/share/applications/exo-web-browser.desktop

These are files from exo package which is a package for XFCE. MLED comes with a modified exo package but these files will come anyway with the standard exo package (but with a different content).

Maybe MLED could modify those 3 desktop files the same way it did for exo-terminal-emulator.desktop, namely:
Code:

$cat exo-terminal-emulator.desktop
[Desktop Entry]
NoDisplay=true


PROBLEMCHYLD 02-04-2016 05:16 PM

You probably thought I was crazy huh? Anyway, thanks again.
So how do I fix it?

gegechris99 02-05-2016 06:38 AM

I haven't tested it yet but try changing the content of the 3 exo*.desktop files in question to:

Code:

[Desktop Entry]
NoDisplay=true

If you make a backup of those files prior to change, put them in directory other than /usr/share/applications.

[EDIT]I tested it and it works. No more duplicate entry in the menu. The only drawback I found so far is that Thunar disappears from the Favorites section of the menu but it can easily be put back there. [/EDIT]

PROBLEMCHYLD 02-05-2016 12:02 PM

I can confirm your findings. I'll just add thunar to the dock. Thanks

kikinovak 02-06-2016 09:21 AM

There's an explanation to this. Prior versions of MLED used the "classical" Xfce menu, which sported quick shortcuts for the default web browser, mail client and terminal emulator. With the introduction of Whiskermenu, these entries seem to have become obsolete. I'll change them accordingly in the Github repo.

Cheers,

Niki


All times are GMT -5. The time now is 01:13 PM.