Announcement

Collapse
No announcement yet.

How to change permissions for .desktop files?

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • kubicle
    replied
    Originally posted by SteveRiley View Post
    You're using the Root Actions Service Menu, according to your screenshot. So that means you'll be able to change details in the files in /usr/share/applications/*. Without using Root Actions, normal users can't change the details.
    Also, if you're changing the desktop files in /usr/share/applications/ (through the Desktop links), your changes will be overwritten with package upgrades.

    You can, however, copy the .desktop file to ~/.local/share/applications/ (if you modify a desktop file with kmenueditor, it will do this automatically) in which case you can link to them and edit the files as the user (and not have your changes overwritten).

    Copying to Desktop instead of linking will of course work fine as is using normal desktop instead of folder view (as already explained in the thread).

    Leave a comment:


  • vinnywright
    replied
    Originally posted by SteveRiley View Post
    You're using the Root Actions Service Menu, according to your screenshot. So that means you'll be able to change details in the files in /usr/share/applications/*. Without using Root Actions, normal users can't change the details.
    yes,,,,yes I am ,,,,,,,,,and no ,,,no they can't .............

    VINNY

    Leave a comment:


  • SteveRiley
    replied
    Originally posted by vinnywright View Post
    no ,,,,,,,but you can rename the *.desktop file it points to and so the link as I described in post #10

    hear are the visuals of it
    You're using the Root Actions Service Menu, according to your screenshot. So that means you'll be able to change details in the files in /usr/share/applications/*. Without using Root Actions, normal users can't change the details.

    Leave a comment:


  • vinnywright
    replied
    Originally posted by SteveRiley View Post
    I played around with this in Folder view, and here's what I learned.

    If you right-click an icon in Kickoff and choose Add to desktop, the resulting icons are just symbolic links to .desktop files in /usr/share/applications/*. The actual files are owned by root. As such, you can't change properties of the symbolic link.
    no ,,,,,,,but you can rename the *.desktop file it points to and so the link as I described in post #10

    hear are the visuals of it .................................................. ..................




    this is after changing it to just firefox from the default "firefox web browser" ,,,,,or whatever it was

    all this is also assuming we have the default folder to display in "folder view settings" as ~/Desktop ,,,,,,,,,,you can have it displaying any location ................................. say ~/




    or / even



    of course the links you make will go to whatever location is being displayed .


    Originally posted by SteveRiley View Post
    If you drag an icon to the desktop, a fly-out menu appears, allowing you to create a copy or a link. A copy becomes yours -- you have complete control over it and can rename it as you wish. A link behaves the same as what happens in the previous paragraph.
    true .........


    VINNY

    Leave a comment:


  • SteveRiley
    replied
    I played around with this in Folder view, and here's what I learned.

    If you right-click an icon in Kickoff and choose Add to desktop, the resulting icons are just symbolic links to .desktop files in /usr/share/applications/*. The actual files are owned by root. As such, you can't change properties of the symbolic link.

    If you drag an icon to the desktop, a fly-out menu appears, allowing you to create a copy or a link. A copy becomes yours -- you have complete control over it and can rename it as you wish. A link behaves the same as what happens in the previous paragraph.
    Last edited by SteveRiley; Dec 08, 2014, 02:41 PM.

    Leave a comment:


  • Citizen Zed
    replied
    Originally posted by Snowhog View Post
    Make sure Widgets are unlocked. Change the desktop layout from Folder View to Default Desktop. What you are trying to do will work.
    So that works... to the degree that a slider with wrench thing now unfolds out of launcher icon and I can rename directly (without doing things I mentioned above)

    But now I can't control icon text color or turn off the shadow effect.... or at least I can't figure out how to do that.

    Exhausting trying to control/modify the simplest things. I will probably go back to "Folder View", since there I "solved" the problem and could find a way to control icon properties

    Leave a comment:


  • Snowhog
    replied
    Make sure Widgets are unlocked. Change the desktop layout from Folder View to Default Desktop. What you are trying to do will work.

    Leave a comment:


  • Citizen Zed
    replied
    Yes "Folder View" (and if what I want to call a shortcut is instead called a launcher). In one sense I have solved the problem (post 4 above). However, according to OneLine I must have done a dorky work-around to a broken installation of kubuntu.


    Here is a sequence of my difficulty in creating desktop shortcut/launcher things:
    1 > I tried to do it by adding a widget called quicklaunch in the panel (it has a rocket picture). But this adds things automatically like a Dolphin icon and a web browser icon instead of letting me pick a program and so I gave up trying to figure it out.
    2 > I then discovered I could drag program icons out of Kickoff onto desktop. But I had no ability to rename them... no "permission". This remained the case if I tried to use Kate
    3 > I installed Root Actions Servicemenu into Dolphin. This added dropdown features to where I could assign permissions to Active user rather than root.
    4> Then, while I could see both the icon on the desktop and the icon in Dolphin's desktop folder, I right clicked the icon on actual desktop to rename it. But the rename only appeared in Dolphin and stayed the same on the desktop.
    5> Rather than right click/rename, I then opened the .desktop file in Kate and changed it's name there. That worked.


    So again, for me the immediate problem is solved. But I am wondering if my installation is broken (after OneLine's pictures above [since my .desktop icon files do not unfold a slide thing out with a wrench thing as other widgets do - and renaming invokes root permissions in the first place]) in such a way that will hurt me somehow later.

    Leave a comment:


  • vinnywright
    replied
    if so ,,,,,,,,,,right click the launcher>root actions>open as text>inter password>in the kate window that will open and in the "name Field" enter the name you want and click save ,,,,,,,done.

    VINNY

    Leave a comment:


  • vinnywright
    replied
    what is it you are trying to do again ,,,,,,,,rename a launcher you added to the "folder view" desktop ?

    VINNY

    Leave a comment:


  • Citizen Zed
    replied
    "Folder view" I think yes. If I right click desktop the bottom most thing is "Folder Settings"... if I click that, it says layout is Folder.

    Leave a comment:


  • vinnywright
    replied
    Originally posted by Citizen Zed View Post
    Thank you. However, I guess my new kubuntu installation is not unbroken. Rather than what happens in your picture, when I drag something from Kickoff to desktop it asks if I want to copy or make a link first. But then, no matter which I choose, the slide thing (which I can see sliding out of other unlocked widgets) does not happen at all in this case. Rather, the thing will have either a plus or minus sign in a circle (upper right of icon toggling either way with no apparent effect). So I can't test the wrench settings thing at all.

    Anyway, thanks.... I will try to investigate why a brand new installation of kubuntu is somehow broken. Other than this weirdness, I would not have suspected anything was wrong.
    do you have your desktop set to "folder view" ,,,,the actions will be diferent.

    VINNY

    Leave a comment:


  • Citizen Zed
    replied
    Thank you. However, I guess my new kubuntu installation is not unbroken. Rather than what happens in your picture, when I drag something from Kickoff to desktop it asks if I want to copy or make a link first. But then, no matter which I choose, the slide thing (which I can see sliding out of other unlocked widgets) does not happen at all in this case. Rather, the thing will have either a plus or minus sign in a circle (upper right of icon toggling either way with no apparent effect). So I can't test the wrench settings thing at all.

    Anyway, thanks.... I will try to investigate why a brand new installation of kubuntu is somehow broken. Other than this weirdness, I would not have suspected anything was wrong.
    .... but now I'm having the nagging intuition that I have no idea how to find out why my installation is broken and/or how to fix it.
    Last edited by Citizen Zed; Dec 07, 2014, 12:36 PM.

    Leave a comment:


  • OneLine
    replied
    A comment

    I'm in 4.13.3 installed as a metapackage on top of Ubuntu 14.04...

    ...Dolphin: Configure Dolphin -> Services -> Download New Services. But before doing this, you have to open terminal and: sudo apt-get install ruby...

    Absurd and incomprehensible complexity compared to Windows but it can be done.

    Only if you are making it absurd and complex.


    With an unbroken Kubuntu/KDE installation - default layout - that is desktop :


    1) Unlock widgets if they are locked. Right click the desktop. If there is an option to 'Lock Widgets' then the widgets are unlocked.




    2) Add the application to the desktop.






    3) Edit the Icons settings - that is edit the desktop file with the build in editor.





    Broken installation

    The root is owning my files:

    Really old link but still a good one: https://www.kubuntuforums.net/showth...ll=1#post74683

    Ubuntu Community Rootsudo: https://help.ubuntu.com/community/RootSudo


    ...But before doing this, you have to open terminal and: sudo apt-get install ruby...
    The Dolphin package ( http://packages.ubuntu.com/trusty-updates/dolphin ) is recommending package ruby. The Ubuntu is installing the recommended packages as default but the user can change this.

    The recommended packages are ( https://www.debian.org/doc/debian-po...tionships.html ):
    Recommends
    This declares a strong, but not absolute, dependency.

    The Recommends field should list packages that would be found together with this one in all but unusual installations.
    Last edited by OneLine; Dec 07, 2014, 04:28 AM.

    Leave a comment:


  • Citizen Zed
    replied
    Yeah, desktop layout is Folder. But the problem is renaming a short cut, as in "Firefox Desktop Browser" to just "Firefox". It won't let you do it.

    But the fix turns out to be, at least one fix, is to get Root Actions Servicemenu in Dolphin which adds a dropdown to change ownership from root to active user. Then, rather than directly trying to rename, open the file in Kate and change the name there.

    One adds Root Actions Service menu from Dolphin: Configure Dolphin -> Services -> Download New Services. But before doing this, you have to open terminal and: sudo apt-get install ruby

    Absurd and incomprehensible complexity compared to Windows but it can be done.

    Leave a comment:

Users Viewing This Topic

Collapse

There are 0 users viewing this topic.

Working...
X