Choose style:

Author Topic: 'Desktop folder' in Root folder??!! (SOLVED)  (Read 2096 times)

0 Members and 1 Guest are viewing this topic.

Offline Bigoeuf

  • Member
  • ***
  • Posts: 170
  • Karma: 12
  • New Forum User
    • View Profile
  • Peppermint version(s): 8 & 7 (64bit)
'Desktop folder' in Root folder??!! (SOLVED)
« on: June 27, 2017, 07:18:47 pm »
Good Evening
Had an issue cropped up for me that hasn't occurred before (or I certainly haven't noticed it anyway). I went to open a folder with 'root privileges' when this happened:



And the Root folder is shown with the Home folder symbol (I dont know if that is normal?):



And  inside the Root folder is another 'Desktop' folder:



However when I opened it with text editor I  found it was a copy of the FreeOffice 2016 Presentations .desktop file:

Spoiler (click here to view / hide)
[Desktop Entry]
Encoding=UTF-8
Type=Application
GenericName=Presentation
GenericName[am]=ትዕይንት
GenericName[az]=Təqdimat
GenericName[bg]=Презентация
GenericName[bn]=প্রেজেন্টেশন
GenericName[bs]=Prezentacija
GenericName[ca]=Presentació
GenericName[cs]=Prezentace
GenericName[da]=Præsentation
GenericName[de]=Präsentation
GenericName[dz]=གསལ་སྟོན།
GenericName[el]=Παρουσίαση
GenericName[en_CA]=Presentation
GenericName[en_GB]=Presentation
GenericName[en_ZA]=Presentation
GenericName[es]=Presentación
GenericName[et]=Esitlus
GenericName[eu]=Aurkezpena
GenericName[fi]=Esitys
GenericName[fil]=Pagtatanghal
GenericName[fr]=Présentation
GenericName[ga]=Toirbeathas
GenericName[gl]=Presentación
GenericName[gu]=રજૂઆત
GenericName[he]=מצגות
GenericName
=Prezentacija
GenericName[hu]=Bemutatókészítő
GenericName[is]=Impress framsetning
GenericName[it]=Presentazione
GenericName[ja]=プレゼンテーション
GenericName[ka]=პრეზენტაცია
GenericName[ko]=프리젠테이션
GenericName[ku]=Pêşkêşî
GenericName[mk]=Презентација
GenericName[ms]=Persembahan
GenericName[nb]=Presentasjon
GenericName[ne]=प्रस्तुति
GenericName[nl]=Presentatie
GenericName[nr]=Phrizentheyitjhini
GenericName[nso]=Tlhagišo
GenericName[oc]=Presentacion
GenericName[pa]=ਪੇਸ਼ਕਾਰੀ
GenericName[pl]=Prezentacja
GenericName[pt]=Apresentação
GenericName[pt_BR]=Apresentação
GenericName[ru]=Презентация
GenericName[rw]=Iyerekana
GenericName[sk]=Prezentácia
GenericName[sq]=Prezantime
GenericName[sr]=Презентација
GenericName[sr@Latn]=Prezentacija
GenericName[st]=Nehelano
GenericName[sv]=Presentation
GenericName[th]=งานนำเสนอ
GenericName[tl]=Pagtatanghal
GenericName
=Sunum
GenericName[ts]=Nkombiso
GenericName[uk]=Презентації
GenericName[vi]=Trình diễn
GenericName[wa]=Prezintåcion
GenericName[xh]=Umboniso wenkcazelo
GenericName[zh_CN]=演示文稿
GenericName[zh_TW]=簡報
GenericName[zu]=Iprezenteyshin
Comment=The Presentations software lets you design any kind of presentation - even including special effects, animations, and transitions.
Comment[de]=Presentations lässt Sie beliebige Präsentationen gestalten - mit Effekten, Animationen und Transitionen.
Comment[ru]=Presentations позволяет создавать все виды презентаций и добавлять в них специальные эффекты, анимацию и переходы.
Terminal=false
Categories=Application;Office;Presentation;
MimeType=application/x-prd;application/x-prv;application/x-prs;application/ppt;application/mspowerpoint;application/vnd.ms-powerpoint;application/vnd.openxmlformats-officedocument.presentationml.presentation;application/vnd.ms-powerpoint.presentation.macroenabled.12;application/vnd.openxmlformats-officedocument.presentationml.template;application/vnd.ms-powerpoint.template.macroenabled.12;application/vnd.ms-powerpoint.slideshow.macroEnabled.12;application/vnd.openxmlformats-officedocument.presentationml.slideshow;
Version=1.0
Name=FreeOffice 2016 Presentations
Icon=application-x-prl16free
TryExec=/usr/bin/presentations16free
StartupWMClass=pr
Exec=/usr/bin/presentations16free %F
Path=/usr/share/freeoffice2016
[close]
This is part of the Softmaker FreeOffice 2016 suite that comprises of Presentations, Planmaker & Textmaker.
The .desktop files from Planmaker & Textmaker have not been copied to the Root folder but the .desktop file for all 3 (Presentations, Planmaker & Textmaker) are in /usr/share/applications, where they should be, & the launchers were added to the whisker menu under the Office category.
There was also launchers for each of Presentations, Planmaker & Textmaker installed on the desktop which I deleted & I don't know if this had any bearing on 'Desktop' file appearing in the Root folder??

I investigated a bit further the programes that are executed from the .desktop files & this is what I found:

Planmaker:
[/td][/tr][/table]
Code: [Select]
#!/bin/sh
# A script to run PlanMaker.
/usr/share/freeoffice2016/planmaker "$@"

Textmaker:
Code: [Select]
#!/bin/sh
# A script to run TextMaker.
/usr/share/freeoffice2016/textmaker "$@"

Presentations:
Code: [Select]
#!/bin/bash
# A script to run Presentations.
ext="${@##*.}"
shopt -s nocasematch
case "$ext" in
"prs" ) /usr/share/freeoffice2016/presentations -S\""$@"\";;
"pps" ) /usr/share/freeoffice2016/presentations -S\""$@"\";;
"ppsx" ) /usr/share/freeoffice2016/presentations -S\""$@"\";;
* ) /usr/share/freeoffice2016/presentations "$@";;
esac

The script for Presentations is more 'involved' than the other 2, but I'm afraid its a bit 'Greek' to me, but is it right? (bearing as the other 2 apps deal with multiple different extensions too)

This is a on a fresh installation of Pepp 7 (respin). However exactly the same problem has occurred on Pepp 8 that I have just installed on my brand new (well second-hand  ::) ) carlos-fandango i7 Dell E6430 (more about this later  ;) ) & it has also happened in Miyolinux (Devuan) that is installed on this Inspiron 1501 alongside Pepp 7 - the only difference being is that the Presentations .desktop file actually appears in its correct 'guise' in the Root folder.

I take it it should not be there? & if so how should I correctly remove it? & finally any idea how it got there?
Appreciate your comments Peeps  :D
« Last Edit: July 07, 2017, 10:22:07 am by PCNetSpec, Reason: Marked as (SOLVED) »

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25659
  • Karma: 2819
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: 'Desktop folder' in Root folder??!!
« Reply #1 on: June 28, 2017, 07:12:08 am »
What's the output from:
Code: [Select]
ls -al /
and
Code: [Select]
ls -al /root
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline Bigoeuf

  • Member
  • ***
  • Posts: 170
  • Karma: 12
  • New Forum User
    • View Profile
  • Peppermint version(s): 8 & 7 (64bit)
Re: 'Desktop folder' in Root folder??!!
« Reply #2 on: June 28, 2017, 07:28:38 am »
Hello Mark
Here you go:

Code: [Select]
mick@mick-Inspiron-1501 ~ $ ls -al /
total 104
drwxr-xr-x  23 root root  4096 Jun 20 07:49 .
drwxr-xr-x  23 root root  4096 Jun 20 07:49 ..
drwxr-xr-x   2 root root  4096 Jun 28 12:03 bin
drwxr-xr-x   3 root root  4096 Jun 20 09:03 boot
drwxr-xr-x   2 root root  4096 Jun  4 01:08 cdrom
drwxr-xr-x  18 root root  4120 Jun 28 11:17 dev
drwxr-xr-x 137 root root 12288 Jun 28 12:04 etc
drwxr-xr-x   3 root root  4096 Jun  4 01:09 home
lrwxrwxrwx   1 root root    32 Jun 20 07:49 initrd.img -> boot/initrd.img-4.4.0-81-generic
lrwxrwxrwx   1 root root    32 Jun  6 23:54 initrd.img.old -> boot/initrd.img-4.4.0-79-generic
drwxr-xr-x  22 root root  4096 Jun 20 07:47 lib
drwxr-xr-x   2 root root  4096 Jun 20 07:47 lib64
drwx------   2 root root 16384 Jun  4 01:03 lost+found
drwxr-xr-x   3 root root  4096 Jun  4 01:49 media
drwxr-xr-x   4 root root  4096 Jun 21 04:03 mnt
drwxr-xr-x   3 root root  4096 Jun  4 23:28 opt
dr-xr-xr-x 176 root root     0 Jun 28 11:17 proc
drwx------   9 root root  4096 Jun 27 22:23 root
drwxr-xr-x  28 root root   880 Jun 28 12:03 run
drwxr-xr-x   2 root root 12288 Jun 28 12:03 sbin
drwxr-xr-x   2 root root  4096 Apr 20  2016 srv
dr-xr-xr-x  13 root root     0 Jun 28 11:17 sys
drwxrwxrwt  11 root root  4096 Jun 28 12:17 tmp
drwxr-xr-x  10 root root  4096 Apr 20  2016 usr
drwxr-xr-x  13 root root  4096 Apr 20  2016 var
lrwxrwxrwx   1 root root    29 Jun 20 07:49 vmlinuz -> boot/vmlinuz-4.4.0-81-generic
lrwxrwxrwx   1 root root    29 Jun  6 23:54 vmlinuz.old -> boot/vmlinuz-4.4.0-79-generic
mick@mick-Inspiron-1501 ~ $

Code: [Select]
mick@mick-Inspiron-1501 ~ $ sudo ls -al /root
[sudo] password for mick:
total 48
drwx------  9 root root 4096 Jun 27 22:23 .
drwxr-xr-x 23 root root 4096 Jun 20 07:49 ..
-rw-------  1 root root    3 Jun 27 22:23 .bash_history
drwx------  5 root root 4096 Jun 26 10:04 .cache
drwxr-xr-x  8 root root 4096 Jun 27 22:22 .config
drwx------  3 root root 4096 Jun  4 01:19 .dbus
-rwxr-xr-x  1 root root 3350 Jun  4 02:01 Desktop
drwx------  2 root root 4096 Jun  4 01:19 .gvfs
drwxr-xr-x  3 root root 4096 May 11  2016 .linuxmint
drwxr-xr-x  3 root root 4096 Jun  4 05:47 .local
-rw-r--r--  1 root root  148 Aug 17  2015 .profile
drwx------  3 root root 4096 Jun 27 21:45 .synaptic
mick@mick-Inspiron-1501 ~ $

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25659
  • Karma: 2819
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: 'Desktop folder' in Root folder??!!
« Reply #3 on: June 28, 2017, 07:44:30 am »
Try this
Code: [Select]
sudo mv -v /root/Desktop /root/Desktop.broken
then
Code: [Select]
sudo mkdir /root/Desktop
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline Bigoeuf

  • Member
  • ***
  • Posts: 170
  • Karma: 12
  • New Forum User
    • View Profile
  • Peppermint version(s): 8 & 7 (64bit)
Re: 'Desktop folder' in Root folder??!!
« Reply #4 on: June 28, 2017, 09:48:53 am »
Yes appears to have done the trick Mark  :)

Obviously there should be a be a 'Desktop' directory/folder inside the Root folder then?
And is OK to delete the 'Desktop.broken' folder now then?
Finally does seem likely to you that this occurred as a result of me deleting the FreeOffice.desktop launchers on my home desktop? Bearing in mind that I have had exactly the same problem on 3  different systems after doing exactly the same thing (though I suppose it could of occurred during installation?)  :)

Offline Slim.Fatz

  • Trusted User
  • Veteran
  • *****
  • Posts: 1777
  • Karma: 469
  • Where's the mouse?
    • View Profile
  • Peppermint version(s): Peppermint 7, 8.5 & 10 - 64bit
Re: 'Desktop folder' in Root folder??!!
« Reply #5 on: June 28, 2017, 09:52:02 am »
Hi Bigoeuf,

My guess is that this occurred during installation.

Regards,

-- Slim
"Life first -- Peppermint a close 2nd!" -- Zeb

Tread lightly: Fluxbox, JWM, i3, Openbox, awesome

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25659
  • Karma: 2819
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: 'Desktop folder' in Root folder??!!
« Reply #6 on: June 28, 2017, 10:31:19 am »
Yes appears to have done the trick Mark  :)

Obviously there should be a be a 'Desktop' directory/folder inside the Root folder then?
And is OK to delete the 'Desktop.broken' folder now then?
Finally does seem likely to you that this occurred as a result of me deleting the FreeOffice.desktop launchers on my home desktop? Bearing in mind that I have had exactly the same problem on 3  different systems after doing exactly the same thing (though I suppose it could of occurred during installation?)  :)

It would be impossible for me to say what caused the issue without it being a pure guess .. if the "Desktop.broken" file is purely a launcher as you suggest, I'm with Slim.Fatz, it PROBABLY happend during the installation of FreeOffice .. but it's a PURE GUESS.

As for whether it's safe to delete "Desktop.broken" .. that's for you to decide, it won't break the root desktop, but it may break FreeOffice. Then again if that's the case renaming it probably broke it anyway. If it were me I'd leave it for a while, it's doing no harm and can be deleted later (or left i n place) once you're sure you don't need it.

Oh, and when you're satisfied the original issue is solved, can you please remember to mark this topic (SOLVED) .. TIA :)
« Last Edit: June 28, 2017, 10:33:09 am by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline Bigoeuf

  • Member
  • ***
  • Posts: 170
  • Karma: 12
  • New Forum User
    • View Profile
  • Peppermint version(s): 8 & 7 (64bit)
Re: 'Desktop folder' in Root folder??!!
« Reply #7 on: June 28, 2017, 08:11:50 pm »
Morning Mark & Good Morning Slim
Thanks for your responses. Well the thing is I have installed FreeOffice on number of different occasions, in Pepp 6, in Pepp 7 original & latterly now in Pepp 7 respin, Pepp 8 & in Miyolinux &  it is only in these later 3 instances where this issue with the faux Desktop folder (presentations-free16.desktop) in the Root folder has occurred.
However in the first two instances (in Pepp 6, in Pepp 7 original) I installed a different version of Freeoffice  - although the Freeoffice version that was installed  in Pepp 7 original was subsequently updated to its present version.
So its possible its something to do with the new version of the Freeoffice package and fortunately I have got a copy of the previous version (its not available from the Softmaker site) who said "Backup, Backup, Backup...."  ;)

so if I do do a re-install of my OS (which I may do soon on the new laptop as I retry a UEFI/GPT install of Pepp 8 ) I shall install the old version of Freeoffice & then upgrade & see what's what  ;)

Quote
...if the "Desktop.broken" file is purely a launcher as you suggest..

yes it is (open the spoiler in the OP to see) its an exact copy of the presentations-free16.desktop file in /usr/share/applications

will follow your advice Mark & leave things alone as the issue appears to be sorted but will see how we go in usage before labelling the topic 'Solved'
I'll also report back my findings if I do a Pepp 8 re-install

Cheers for your help fellas  :)

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25659
  • Karma: 2819
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: 'Desktop folder' in Root folder??!!
« Reply #8 on: June 28, 2017, 09:19:11 pm »
As it looks like it's just a .desktop launcher file it should be safe to install the new freeoffice and just apply the fix above to get the /root/Desktop folder back.

That launcher is unlikely to ever get used anyway.

Reading between the lines here:
http://forum.softmaker.com/viewtopic.php?t=16101
suggests freeoffice attempts to create application launchers on the desktop of ALL users on the system, including the root user .. and for some reason their installer is overwriting /root/Desktop with one of those launchers instead if placing them inside.

As you're unlikely to ever need to launch freeoffice from the root desktop .. simply run the fix above after installing freeoffice.

But at the end of the day, they need to fix their installer .. it should NEVER overwrite a system directory like that.
« Last Edit: June 28, 2017, 09:25:58 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25659
  • Karma: 2819
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: 'Desktop folder' in Root folder??!!
« Reply #9 on: June 28, 2017, 09:55:21 pm »
Bwahahahaha!!!

Not one minute ago I received this as part of an email mailshot from SoftMaker .. PERFECT TIMING :))


« Last Edit: June 28, 2017, 09:57:23 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline Slim.Fatz

  • Trusted User
  • Veteran
  • *****
  • Posts: 1777
  • Karma: 469
  • Where's the mouse?
    • View Profile
  • Peppermint version(s): Peppermint 7, 8.5 & 10 - 64bit
Re: 'Desktop folder' in Root folder??!!
« Reply #10 on: June 29, 2017, 03:41:47 am »

But at the end of the day, they need to fix their installer .. it should NEVER overwrite a system directory like that.
That's for sure! But I think that their "lead programer" seems to have is own opinion about this!  :D

I, for one, would never install anything from a software house that does what their installer did on your machine.  ;)

Regards,

-- Slim
"Life first -- Peppermint a close 2nd!" -- Zeb

Tread lightly: Fluxbox, JWM, i3, Openbox, awesome

Offline Bigoeuf

  • Member
  • ***
  • Posts: 170
  • Karma: 12
  • New Forum User
    • View Profile
  • Peppermint version(s): 8 & 7 (64bit)
Re: 'Desktop folder' in Root folder??!!
« Reply #11 on: July 02, 2017, 09:59:07 am »
I wonder if the responsibility of the the installer was down to one of the junior programmers (between nappy changes of course lol  :D )
Seriously though  I take note of what you say fellas - & although I have had no apparent issue with FreeOffice (and I've been using it for 3 - 4 years now) it doesn't mean of course that they weren't there  :-\
I wasn't aware that it tried to install launchers on the Root folder  (should have paid more attention to the installation log & saved a copy). Is the Desktop folder in the Root Folder a relatively the new thing ? because, as I say, I've been using FreeOffice for a fair while & never had any issue when trying to open nemo with elevated privileges.
 I think the FreeOffice 2016 Presentations .desktop may have been 'confused with the Root/Desktop folder & they became amalgamate?? (still not good I know) - I only say this because in Miyolinux there is no Desktop folder in the  Root folder so the FreeOffice 2016 Presentations .desktop is installed in its correct 'guise' (plus there are other FreeOffice related files installed in various places in the Root folder)  :-[ 

I use FreeOffice (& almost exclusively textmaker at that) because it has pretty good cross-compatibility with Micro$oft Office & I find it OK to use & am happy with it.
I have tried Abiword & LibreOffice & the formatting when opening with M$ Office (& vice-versa) nearly always ends up a mess  :-\
I know Google Docs has excellent compatibility but its online (although it has offline capability) but I'd rather not use it.
I suppose the other choice would be WPS ,which I haven't tried but I understand its pretty much an Office clone - what do other peeps use?

For the moment I will continue using FreeOffice but will be I bit more vigilant about its installation in future (this is the only piece of propitiatory software from outside the repos that I've got).
Cheers  :)
« Last Edit: July 02, 2017, 10:03:57 am by Bigoeuf »

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25659
  • Karma: 2819
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: 'Desktop folder' in Root folder??!!
« Reply #12 on: July 02, 2017, 02:23:04 pm »
Seriously I wouldn't worry about it .. it was probably a one off in that particular versions installer script, and you know the fix now anyway.

If you're happy with it .. keep using it ;)
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline Bigoeuf

  • Member
  • ***
  • Posts: 170
  • Karma: 12
  • New Forum User
    • View Profile
  • Peppermint version(s): 8 & 7 (64bit)
Re: 'Desktop folder' in Root folder??!! - 'SOLVED'
« Reply #13 on: July 06, 2017, 08:31:45 am »
Roger dodger - 'SOLVED' it is   ;)
« Last Edit: July 06, 2017, 08:36:32 am by Bigoeuf »

Offline Slim.Fatz

  • Trusted User
  • Veteran
  • *****
  • Posts: 1777
  • Karma: 469
  • Where's the mouse?
    • View Profile
  • Peppermint version(s): Peppermint 7, 8.5 & 10 - 64bit
Re: 'Desktop folder' in Root folder??!!
« Reply #14 on: July 07, 2017, 02:27:26 am »
Hi Bigoeuf,

Almost correct ...  :D

You must add (SOLVED) to the Subject: line of the initial (first) posting in this thread. Then it appears also in the list of topics for the Software & Applications section.  ;)

Regards,

-- Slim
"Life first -- Peppermint a close 2nd!" -- Zeb

Tread lightly: Fluxbox, JWM, i3, Openbox, awesome