Score:0

How to make a desktop shortcut for live session user

cn flag

I am trying to make my own linux distro based on Ubuntu, and have a different desktop enviroment installed. This desktop enviroment (KDE) does not show Ubiquity in the applications by default, so I want to put the shortcut on the desktop, but I only want this for the live session user, and not for the other users, so putting the shortcut in /etc/skel/Desktop won't work (also for other users) How can I make sure it's only for the live session user and not for anybody else?

I'm using the Ubuntu 20.04 Desktop ISO btw

user535733 avatar
cn flag
One assumes you have already made a *persistent* LiveUSB. Else you cannot make any changes anyway. Next, since a Live session has no login, what other user would there be? And how would you enforce that user is on their correct account?
Irsu85 avatar
cn flag
I have an ISO made by Cubic
Score:1
us flag

The approach is to actually create the launcher in the skel folder, but then automatically delete this launcher after the OS installation has completed successfully.

  1. Create the launcher

    Execute the following in Cubic's Terminal page:

     mkdir /etc/skel/Desktop
     cp /usr/share/applications/ubiquity.desktop /etc/skel/Desktop/
     chmod +x /etc/skel/Desktop/ubiquity.desktop
     ls -la /etc/skel/Desktop/*
    
  2. Delete the launcher after installation

    On Cubic's Options page, click the Preseed tab, and add the following at the end of the ubuntu.seed file:

     ubiquity ubiquity/success_command string \
         in-target bash -c 'rm -rf /etc/skel/Desktop/ubiquity.desktop'; \
         in-target bash -c 'rm -rf /home/*/Desktop/ubiquity.desktop';
    
Irsu85 avatar
cn flag
I actually like this approach, I will try it out when I have time
Irsu85 avatar
cn flag
I still can't find it on my desktop, but at least it shows up in the correct folder...
Irsu85 avatar
cn flag
Okay, I found it, just need some more modding to the shortcut
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.