LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-09-2017, 02:35 AM   #1
dx486
LQ Newbie
 
Registered: Aug 2015
Distribution: debian
Posts: 17

Rep: Reputation: Disabled
Permanent modification to desktop shortcut [debian]


I edit /usr/share/applications/chromium.desktop and modify one line as Exec=/usr/bin/chromium %U --force-device-scale-factor=1.5 to use it more comfortably with my high dpi screen.

However this file reverts to its original state from time to time. I don't know its reason, maybe it happens when Chromium is updated.

How can I make this change permanent? Can I use a custom desktop shortcut as default chromium launcher? How?

I use debian 9 stable with Dash to Dock extension of Gnome.
 
Old 11-09-2017, 04:51 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,144

Rep: Reputation: 2308Reputation: 2308Reputation: 2308Reputation: 2308Reputation: 2308Reputation: 2308Reputation: 2308Reputation: 2308Reputation: 2308Reputation: 2308Reputation: 2308
Quote:
Originally Posted by dx486
How can I make this change permanent? Can I use a custom desktop shortcut as default chromium launcher? How?
Permissions, perhaps?
Code:
chown root <your-desktop-icon>
 
Old 11-17-2017, 03:31 AM   #3
dx486
LQ Newbie
 
Registered: Aug 2015
Distribution: debian
Posts: 17

Original Poster
Rep: Reputation: Disabled
I prefer to make a custom shortcut instead of changing permissions.
 
Old 11-18-2017, 03:40 AM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
^ this.

1. copy it over from /usr/share/applications to ~/.local/share/applications
2. make your mods

if you don't change its name i think it will just override the one in /usr/share/applications - if not, rename it and use it instead.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to create desktop (or task bar) shortcut to some file on Debian LXDE, OpenBox? vvladimir Linux - Newbie 2 06-08-2014 06:40 AM
create a shortcut in /home/username/Desktop but not still not appear on desktop! swgiant Linux - Newbie 1 09-27-2008 11:51 AM
[Debian] Shortcut on the Desktop that loads on Virtual screen x charliebrown_au Debian 2 09-21-2008 11:26 PM
RedHat 9 Desktop And Start Menu Modification AshTray900 Red Hat 4 11-16-2005 10:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration